aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--.config/sway/config7
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/*