aboutsummaryrefslogtreecommitdiff
path: root/services/sxhkd.nix
diff options
context:
space:
mode:
Diffstat (limited to 'services/sxhkd.nix')
-rw-r--r--services/sxhkd.nix4
1 files changed, 2 insertions, 2 deletions
diff --git a/services/sxhkd.nix b/services/sxhkd.nix
index 58b8340..fab1316 100644
--- a/services/sxhkd.nix
+++ b/services/sxhkd.nix
@@ -10,8 +10,8 @@ let
10 ${pkgs.libnotify}/bin/notify-send ${text} -h int:value:${value} -h string:synchronous:volume -h string:hlcolor:"${theme.base0C}" 10 ${pkgs.libnotify}/bin/notify-send ${text} -h int:value:${value} -h string:synchronous:volume -h string:hlcolor:"${theme.base0C}"
11 ''; 11 '';
12 volume = pkgs.writeScriptBin "volume" '' 12 volume = pkgs.writeScriptBin "volume" ''
13 ${pkgs.alsaUtils}/bin/amixer $@ 13 ${pkgs.alsa-utils}/bin/amixer $@
14 v=$(${pkgs.alsaUtils}/bin/amixer sget Master | ${pkgs.gawk}/bin/awk -F"[][%]" '/Left:/ {print $2}') 14 v=$(${pkgs.alsa-utils}/bin/amixer sget Master | ${pkgs.gawk}/bin/awk -F"[][%]" '/Left:/ {print $2}')
15 ${progress "volume" "$v"} 15 ${progress "volume" "$v"}
16 ''; 16 '';
17 17