diff --git a/home/.config/sway/conf.d/06-keybinds.conf b/home/.config/sway/conf.d/06-keybinds.conf index 034e5cc..1bee5b4 100644 --- a/home/.config/sway/conf.d/06-keybinds.conf +++ b/home/.config/sway/conf.d/06-keybinds.conf @@ -23,8 +23,7 @@ bindsym $mod+Shift+r reload bindsym $mod+Shift+o exec mimeo "$(wl-paste)" # turn on and off internal screen -bindsym --locked XF86Search output eDP-1 enable -bindsym --locked Shift+XF86Search output eDP-1 disable +bindsym --locked XF86Search output eDP-1 toggle # FZF # exit menu @@ -115,9 +114,9 @@ bindsym $mod+r mode "resize" bindsym $mod+b exec firefox-nightly # media keys -bindsym XF86AudioRaiseVolume exec pamixer -ui 2 && pamixer --get-volume > /tmp/sway.wob -bindsym XF86AudioLowerVolume exec pamixer -ud 2 && pamixer --get-volume > /tmp/sway.wob -bindsym --locked XF86AudioMute exec pulseaudio-ctl mute +bindsym XF86AudioRaiseVolume exec pamixer -ui 2 && pamixer --get-volume > $SWAYSOCK.wob +bindsym XF86AudioLowerVolume exec pamixer -ud 2 && pamixer --get-volume > $SWAYSOCK.wob +bindsym XF86AudioMute exec pamixer --toggle-mute && ( pamixer --get-mute && echo 0 > $SWAYSOCK.wob ) || pamixer --get-volume > $SWAYSOCK.wob bindsym --locked XF86AudioNext exec playerctl next bindsym --locked XF86AudioPrev exec playerctl previous bindsym --locked XF86AudioPlay exec playerctl play-pause @@ -135,8 +134,8 @@ bindsym $mod+m+l output eDP-1 transform 90 bindsym $mod+m+k output eDP-1 transform 0 # display brightness -bindsym XF86MonBrightnessUp exec light -A 5 && light -G | cut -d'.' -f1 > /tmp/sway.wob -bindsym XF86MonBrightnessDown exec light -U 5 && light -G | cut -d'.' -f1 > /tmp/sway.wob +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 94996c8..76d6203 100644 --- a/home/.config/sway/conf.d/08-exec.conf +++ b/home/.config/sway/conf.d/08-exec.conf @@ -7,8 +7,8 @@ exec { telegram-desktop kdeconnect-indicator thunderbird - mkfifo /tmp/sway.wob && tail -f /tmp/sway.wob | wob mako + mkfifo $SWAYSOCK.wob && tail -f $SWAYSOCK.wob | wob } exec_always {