From 81161bf2495521616988ca2158b4a8dca0a71a2c Mon Sep 17 00:00:00 2001 From: David Runge Date: Mon, 15 Apr 2019 23:53:52 +0200 Subject: .config/sway/config: Adding keyboard shortcuts for audio. Adding nextcloud to session. Adding more useful flags to swaylock. --- .config/sway/config | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/.config/sway/config b/.config/sway/config index ef2ba54..cc76e60 100644 --- a/.config/sway/config +++ b/.config/sway/config @@ -81,6 +81,15 @@ output * bg /usr/share/backgrounds/sway/Sway_Wallpaper_Blue_1920x1080.png fill # brightness bindsym XF86MonBrightnessDown exec $brightness_down bindsym XF86MonBrightnessUp exec $brightness_up + # sound + bindsym XF86AudioRaiseVolume exec set_volume increase + bindsym XF86AudioLowerVolume exec set_volume decrease + bindsym XF86AudioMute exec set_volume toggle + bindsym XF86AudioPrev exec notify_mpd prev + bindsym XF86AudioNext exec notify_mpd next + bindsym XF86AudioPlay exec notify_mpd toggle + bindsym XF86AudioStop exec notify_mpd stop + # # Moving around: # @@ -213,10 +222,11 @@ bar { # Execs exec [ -x /usr/bin/swayidle ] && [ -x /usr/bin/swaylock ] && swayidle -w \ - timeout 300 'swaylock -f -c 000000' \ + timeout 300 'swaylock -F -f -e -c 000000' \ timeout 600 'swaymsg "output * dpms off"' \ resume 'swaymsg "output * dpms on"' \ before-sleep 'swaylock -f -c 000000' exec [ -x /usr/bin/lxpolkit ] && /usr/bin/lxpolkit +exec [ -x /usr/bin/nextcloud ] && /usr/bin/nextcloud include /etc/sway/config.d/* -- cgit v1.2.3-70-g09d2