This commit is contained in:
Marko Korhonen 2020-03-03 13:29:23 +02:00
parent 45577ddd37
commit d3de793962
2 changed files with 7 additions and 8 deletions

View file

@ -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

View file

@ -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 {