Polybar and sxhkd keybindings for volume

This commit is contained in:
Filippo Berto 2022-05-12 14:27:52 +02:00
parent f96a22326c
commit 268e53fdf7
3 changed files with 8 additions and 3 deletions

View file

@ -22,6 +22,10 @@ in
focused_border_color = strPalette.bright.blue;
};
# monitors = builtins.foldl' (acc: monitor: acc // { ${monitor} = monitorPages; }) { } monitors;
rules = {
"*" = { follow = true; };
"Zathura" = { state = "tiled"; };
};
extraConfig = ''
for monitor in $(${xrandr} --listactivemonitors | cut -d " " -f 6); do
bspc monitor $monitor -d ${monitorPagesString}

View file

@ -216,6 +216,7 @@ in
};
"module/pulseaudio" = {
interval = 2;
bar.volume = {
empty = {
font = "2";

View file

@ -43,7 +43,7 @@
"alt + Tab" = "rofi -show window";
"super + {t,shift + t,s,f}" = "bspc node -t {tiled,pseudo_tiled,floating,fullscreen}";
"super + y" = "bspc node newest.marked.local -n newest.!automatic.local";
"{XF86AudioLowerVolume,XF86AudioMute,XF86AudioRaiseVolume}" = "${pamixer} {-d 5,-t,-i 5}";
"{XF86AudioLowerVolume,XF86AudioMute,XF86AudioRaiseVolume}" = "${pamixer} {-d 2,-t,-i 2}";
"XF86Audio{Next,Play,Prev}" = "${playerctl} {next,play-pause,previous}";
"XF86MonBrightness{Up,Down}" = "${xbacklight} {+,-}10%";
};