forked from extern/nix-config
meta: Add swayidle
This lets us automatically start swaylock on lid close, useful when on the go, although not a replacement for turning off a computer fully.
This commit is contained in:
parent
9ae4f4442e
commit
eeeaa82bc5
@ -178,4 +178,7 @@ bindsym XF86MonBrightnessUp exec brightnessctl set +5%
|
||||
# bindsym XF86WLAN exec
|
||||
# bindsym XF86Favorites exec
|
||||
|
||||
# Lock the screen after a certain amount of time
|
||||
exec swayidle -w
|
||||
|
||||
include /etc/sway/config.d/*
|
||||
|
2
swayidle/.config/swayidle/config
Normal file
2
swayidle/.config/swayidle/config
Normal file
@ -0,0 +1,2 @@
|
||||
timeout 300 swaylock
|
||||
before-sleep swaylock
|
16
swayidle/README.md
Normal file
16
swayidle/README.md
Normal file
@ -0,0 +1,16 @@
|
||||
# swayidle
|
||||
|
||||
[swayidle][swayidle] is an idle management daemon for Wayland.
|
||||
|
||||
## Use Cases
|
||||
|
||||
swayidle can be used to:
|
||||
|
||||
- Automatically lock the screen after a period of inactivity
|
||||
- Automatically lock the screen on lid close (e.g. on a laptop)
|
||||
|
||||
You should not use swayidle if:
|
||||
|
||||
- You don't want to automatically lock the screen.
|
||||
|
||||
[swayidle]: https://github.com/swaywm/swayidle
|
Loading…
Reference in New Issue
Block a user