diff options
author | David Runge <david.runge@native-instruments.de> | 2019-04-12 15:53:59 +0200 |
---|---|---|
committer | David Runge <david.runge@native-instruments.de> | 2019-04-12 15:53:59 +0200 |
commit | c3de4f5d2de07031cb4a81e0e8520ca45726f85f (patch) | |
tree | 36851238c4df30a7045cd9b215e3ab015bb05ada | |
parent | 3becb367d1e6b489a78642c45e77f03a2b3ef334 (diff) | |
download | dotfiles-c3de4f5d2de07031cb4a81e0e8520ca45726f85f.tar.gz dotfiles-c3de4f5d2de07031cb4a81e0e8520ca45726f85f.tar.bz2 dotfiles-c3de4f5d2de07031cb4a81e0e8520ca45726f85f.tar.xz dotfiles-c3de4f5d2de07031cb4a81e0e8520ca45726f85f.zip |
.config/sway/config: Adding execution of swayidle (with swaylock) and lxpolkit, if it's available.
-rw-r--r-- | .config/sway/config | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/.config/sway/config b/.config/sway/config index aca9c6f..ef2ba54 100644 --- a/.config/sway/config +++ b/.config/sway/config @@ -211,5 +211,12 @@ bar { } } +# Execs +exec [ -x /usr/bin/swayidle ] && [ -x /usr/bin/swaylock ] && swayidle -w \ + timeout 300 'swaylock -f -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 include /etc/sway/config.d/* |