sway: Add shortcut for toggling DPMS

This commit is contained in:
Simon Bruder 2020-08-30 19:57:51 +02:00
parent 252acc0a54
commit 54f6d6ad15
No known key found for this signature in database
GPG key ID: 6F03E0000CC5B62F

View file

@ -147,6 +147,7 @@ bindsym XF86AudioRaiseVolume exec pactl set-sink-volume @DEFAULT_SINK@ +5%
bindsym XF86AudioLowerVolume exec pactl set-sink-volume @DEFAULT_SINK@ -5%
bindsym $mod+y exec "swaylock -f -i $wallpaper"
bindsym --locked $mod+q exec 'test $(swaymsg -t get_outputs | jq "[.[].dpms] | any") = "true" && swaymsg "output * dpms off" || swaymsg "output * dpms on"'
# Status Bar
bar {