added dunst vol script & moved sb scripts to dwm

This commit is contained in:
Sam 2024-06-14 21:12:38 +01:00
parent f3b506ac81
commit a4815aa56b
10 changed files with 48 additions and 28 deletions

View File

@ -3,12 +3,18 @@
imports = [ imports = [
../common ../common
../status-bar
../x11 ../x11
]; ];
home.packages = [ home.packages = [
pkgs.dwmblocks pkgs.dwmblocks
# Status bar
(pkgs.writeShellScriptBin "sb-cpu-pct" (builtins.readFile ./scripts/sb-cpu-pct.sh))
(pkgs.writeShellScriptBin "sb-mem-pct" (builtins.readFile ./scripts/sb-mem-pct.sh))
(pkgs.writeShellScriptBin "sb-volume" (builtins.readFile ./scripts/sb-volume.sh))
(pkgs.writeShellScriptBin "sb-network-status" (builtins.readFile ./scripts/sb-network-status.sh))
(pkgs.writeShellScriptBin "sb-updates" (builtins.readFile ./scripts/sb-updates.sh))
]; ];
# TODO configure x11 to look in .config/x11 # TODO configure x11 to look in .config/x11

View File

@ -1,10 +0,0 @@
{ pkgs, ... }:
{
home.packages = [
(pkgs.writeShellScriptBin "sb-cpu-pct" (builtins.readFile ./sb-cpu-pct.sh))
(pkgs.writeShellScriptBin "sb-mem-pct" (builtins.readFile ./sb-mem-pct.sh))
(pkgs.writeShellScriptBin "sb-volume" (builtins.readFile ./sb-volume.sh))
(pkgs.writeShellScriptBin "sb-network-status" (builtins.readFile ./sb-network-status.sh))
(pkgs.writeShellScriptBin "sb-updates" (builtins.readFile ./sb-updates.sh))
];
}

View File

@ -11,6 +11,8 @@
pkgs.dmenu pkgs.dmenu
pkgs.picom pkgs.picom
pkgs.xclip pkgs.xclip
(pkgs.writeShellScriptBin "dunstify-volume-notification" (builtins.readFile ./scripts/dunstify-volume-notification.sh))
]; ];
home.file.".Xresources" = { home.file.".Xresources" = {
@ -41,4 +43,20 @@
fade-delta = 50; fade-delta = 50;
''; '';
}; };
home.file.".config/sxhkd/sxhkdrc" = {
recursive = true;
text = ''
vsync = true;
backend = "xrender";
shadow = true;
shadow-radius = 10;
shadow-offset-x = -5;
shadow-offset-y = -5;
fading = true;
fade-in-step = 0.2;
fade-out-step = 0.2;
fade-delta = 50;
'';
};
} }

View File

@ -0,0 +1,23 @@
mute_test=$(pamixer --get-mute)
mic_mute_test=$(pamixer --default-source --get-mute)
mute=""
if [ "$mute_test" == true ];
then
mute="(Speakers Muted)"
fi
if [ "$mic_mute_test" == true ];
then
mute="(Mic Muted)"
fi
if [ "$mute_test" == true ] && [ "$mic_mute_test" == true ];
then
mute="(Speakers Muted & Mic Muted)"
fi
volume=$(pamixer --get-volume)
msgTag="volume-notify"
dunstify -a "changeVolume" -u low -i audio-volume-high -h string:x-dunst-stack-tag:$msgTag "Volume" "${volume} ${mute}" -t 2000

View File

@ -17,21 +17,4 @@
colorScheme = inputs.nix-colors.colorSchemes.kanagawa; colorScheme = inputs.nix-colors.colorSchemes.kanagawa;
monitors = [
{
name = "DP-1";
width = 2560;
height = 1440;
refreshRate = 144;
x = 0;
primary = true;
}
{
name = "DP-2";
width = 2560;
height = 1440;
refreshRate = 75;
x = 2560;
}
];
} }