dotfiles

commit c531e4e24c2c042f3860acf73debd662904cbe77

Author: Honza Pokorny <me@honza.ca>

Add swayidle

 i3/config | 6 +++++-


diff --git a/i3/config b/i3/config
index 507f88ba90d5996069aae3c21c16c473d410dafd..f6e10323c8def8134736e466f7c069d104312c16 100644
--- a/i3/config
+++ b/i3/config
@@ -183,4 +183,8 @@
 # For the built-in laptop keyboard, turn capslock into ctrl
 input 1:1:AT_Translated_Set_2_keyboard {
   xkb_options ctrl:nocaps
-}
\ No newline at end of file
+}
+
+exec swayidle -w \
+    timeout 600 'swaymsg "output * dpms off"' \
+    resume 'swaymsg "output * dpms on"'
\ No newline at end of file