aboutsummaryrefslogtreecommitdiff
path: root/swayidle
diff options
context:
space:
mode:
authoreric.marin <maarin.eric@gmail.com>2025-06-08 15:35:14 +0200
committereric.marin <maarin.eric@gmail.com>2025-09-07 21:27:34 +0200
commite958146735f214509d3996a21a1adfb950e415b8 (patch)
tree75b6317af09b8563ddde3d9b4c6af304622a6a48 /swayidle
parent8f8d9c06935758e218bbc88faaef6d2d2bd60df1 (diff)
downloaddotfiles-e958146735f214509d3996a21a1adfb950e415b8.tar.gz
dotfiles-e958146735f214509d3996a21a1adfb950e415b8.zip
swaylock and swayidle
Diffstat (limited to 'swayidle')
-rw-r--r--swayidle/config5
1 files changed, 5 insertions, 0 deletions
diff --git a/swayidle/config b/swayidle/config
new file mode 100644
index 0000000..bd1d8a0
--- /dev/null
+++ b/swayidle/config
@@ -0,0 +1,5 @@
+lock 'swaylock -fe'
+before-sleep 'loginctl lock-session ; niri msg eDP-1 off'
+after-resume 'niri msg eDP-1 on'
+timeout 300 'brightnessctl -se set 10%' resume 'brightnessctl -r'
+timeout 360 'systemctl suspend'