summary refs log tree commit diff
path: root/.config/sway/config
diff options
context:
space:
mode:
authorRobert Günzler <r@gnzler.io>2021-11-02 18:06:34 +0100
committerRobert Günzler <r@gnzler.io>2021-11-02 19:06:50 +0100
commitea5283a4977f35efaed474f208b05f6442a0f4a4 (patch)
tree19c539334cbac398a869bf2511d116cc9114cd2d /.config/sway/config
parente420cda1fe0d878a0b3f2153b92a29cae1466cca (diff)
sway: misc updates
Diffstat (limited to '.config/sway/config')
-rw-r--r--.config/sway/config9
1 files changed, 9 insertions, 0 deletions
diff --git a/.config/sway/config b/.config/sway/config
index f1a9eec..ada5b4f 100644
--- a/.config/sway/config
+++ b/.config/sway/config
@@ -69,7 +69,16 @@ include colors.conf
 # }}}
 
 exec {
+  dbus-update-activation-environment DISPLAY WAYLAND_DISPLAY SWAYSOCK XDG_CURRENT_DESKTOP
+
 	light -S 80
+  swayidle -w \
+    timeout 540 'lock' \
+    timeout 800 'swaymsg output \* dpms off' \
+        resume 'swaymsg output \* dpms on' \
+    before-sleep 'lock' \
+    lock 'lock'
+
   once -- s6-svscan ${HOME}/.local/share/s6
 }