From c3de4f5d2de07031cb4a81e0e8520ca45726f85f Mon Sep 17 00:00:00 2001 From: David Runge Date: Fri, 12 Apr 2019 15:53:59 +0200 Subject: .config/sway/config: Adding execution of swayidle (with swaylock) and lxpolkit, if it's available. --- .config/sway/config | 7 +++++++ 1 file changed, 7 insertions(+) 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/* -- cgit v1.2.3-70-g09d2