diff --git a/home/.config/sway/conf.d/06-keybinds.conf b/home/.config/sway/conf.d/06-keybinds.conf index 81b77ba..ead3eff 100644 --- a/home/.config/sway/conf.d/06-keybinds.conf +++ b/home/.config/sway/conf.d/06-keybinds.conf @@ -122,8 +122,8 @@ bindsym $mod+r mode "resize" bindsym $mod+b exec firefox-nightly # media keys -bindsym --locked XF86AudioRaiseVolume exec pulseaudio-ctl up 1 -bindsym --locked XF86AudioLowerVolume exec pulseaudio-ctl down 1 +bindsym XF86AudioRaiseVolume exec pamixer -ui 2 && pamixer --get-volume > $SWAYSOCK.wob +bindsym XF86AudioLowerVolume exec pamixer -ud 2 && pamixer --get-volume > $SWAYSOCK.wob bindsym --locked XF86AudioMute exec pulseaudio-ctl mute bindsym --locked XF86AudioNext exec playerctl next bindsym --locked XF86AudioPrev exec playerctl previous @@ -138,8 +138,8 @@ bindsym $mod+Control+Down output eDP-1 transform 180 bindsym $mod+Control+Left output eDP-1 transform 270 # display brightness -bindsym --locked XF86MonBrightnessUp exec light -A 5 -bindsym --locked XF86MonBrightnessDown exec light -U 5 +bindsym XF86MonBrightnessUp exec light -A 5 && light -G | cut -d'.' -f1 > $SWAYSOCK.wob +bindsym XF86MonBrightnessDown exec light -U 5 && light -G | cut -d'.' -f1 > $SWAYSOCK.wob # switch to urgent workspace bindsym $mod+u [urgent=latest] focus diff --git a/home/.config/sway/conf.d/08-exec.conf b/home/.config/sway/conf.d/08-exec.conf index b1039b0..99c7c1e 100644 --- a/home/.config/sway/conf.d/08-exec.conf +++ b/home/.config/sway/conf.d/08-exec.conf @@ -23,6 +23,7 @@ exec { $HOME/Scripts/autorotate.sh squeekboard thunderbird + mkfifo $SWAYSOCK.wob && tail -f $SWAYSOCK.wob | wob } exec_always {