summary refs log tree commit diff
path: root/.config/sway
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
parente420cda1fe0d878a0b3f2153b92a29cae1466cca (diff)
sway: misc updates
Diffstat (limited to '.config/sway')
-rw-r--r--.config/sway/binds.conf2
-rw-r--r--.config/sway/config9
-rw-r--r--.config/sway/env3
-rw-r--r--.config/sway/input.conf2
4 files changed, 11 insertions, 5 deletions
diff --git a/.config/sway/binds.conf b/.config/sway/binds.conf
index 008a201..230fd25 100644
--- a/.config/sway/binds.conf
+++ b/.config/sway/binds.conf
@@ -256,7 +256,7 @@ bindsym XF86AudioPrev exec playerctl -p playerctld previous
 
 bindsym XF86WakeUp exec true
 # switch video mode
-bindsym XF86Display exec kanshictl reload
+bindsym XF86Display exec kanshictl reload; output * dpms on
 # config
 bindsym XF86Tools exec true
 # keyboard
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
 }
 
diff --git a/.config/sway/env b/.config/sway/env
index 79d03c1..d091809 100644
--- a/.config/sway/env
+++ b/.config/sway/env
@@ -27,6 +27,3 @@ export XDG_SESSION_DESKTOP=sway
 export XDG_CURRENT_DESKTOP=sway
 
 export BEMENU_BACKEND=wayland
-
-# export WLR_DRM_DEVICES="/dev/dri/card1:/dev/dri/card0"
-# export WLR_DRM_DEVICES="/dev/dri/card0"
diff --git a/.config/sway/input.conf b/.config/sway/input.conf
index 2f5028a..0d0a335 100644
--- a/.config/sway/input.conf
+++ b/.config/sway/input.conf
@@ -20,7 +20,7 @@ input type:touchpad {
 	tap enabled
 	natural_scroll enabled
 
-  events disabled
+  #events disabled
 }
 #input type:tablet_tool {
 #	accel_profile flat