diff --git a/sway/.config/sway/config b/sway/.config/sway/config index e96d9bea..782fe38a 100644 --- a/sway/.config/sway/config +++ b/sway/.config/sway/config @@ -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/* diff --git a/swayidle/.config/swayidle/config b/swayidle/.config/swayidle/config new file mode 100644 index 00000000..81eade23 --- /dev/null +++ b/swayidle/.config/swayidle/config @@ -0,0 +1,2 @@ +timeout 300 swaylock +before-sleep swaylock diff --git a/swayidle/README.md b/swayidle/README.md new file mode 100644 index 00000000..9a27047c --- /dev/null +++ b/swayidle/README.md @@ -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