added dunst vol script & moved sb scripts to dwm
This commit is contained in:
parent
f3b506ac81
commit
a4815aa56b
|
@ -3,12 +3,18 @@
|
|||
|
||||
imports = [
|
||||
../common
|
||||
../status-bar
|
||||
../x11
|
||||
];
|
||||
|
||||
home.packages = [
|
||||
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
|
||||
|
|
|
@ -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))
|
||||
];
|
||||
}
|
|
@ -11,6 +11,8 @@
|
|||
pkgs.dmenu
|
||||
pkgs.picom
|
||||
pkgs.xclip
|
||||
|
||||
(pkgs.writeShellScriptBin "dunstify-volume-notification" (builtins.readFile ./scripts/dunstify-volume-notification.sh))
|
||||
];
|
||||
|
||||
home.file.".Xresources" = {
|
||||
|
@ -41,4 +43,20 @@
|
|||
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;
|
||||
'';
|
||||
};
|
||||
}
|
||||
|
|
|
@ -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
|
|
@ -17,21 +17,4 @@
|
|||
|
||||
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;
|
||||
}
|
||||
];
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue