diff options
author | Mattias Eriksson <snaggen@mayam.com> | 2018-04-17 09:54:02 +0200 |
---|---|---|
committer | Mattias Eriksson <snaggen@mayam.com> | 2018-05-13 00:30:09 +0200 |
commit | 8fbafbfab5671d56dd469f2205b7906c4a7f7c7c (patch) | |
tree | ab4eab0020d97dc5091b72479c383989ccc84729 /config.in | |
parent | Merge pull request #1967 from emersion/remove-xdg-popup-unmap (diff) | |
download | sway-8fbafbfab5671d56dd469f2205b7906c4a7f7c7c.tar.gz sway-8fbafbfab5671d56dd469f2205b7906c4a7f7c7c.tar.zst sway-8fbafbfab5671d56dd469f2205b7906c4a7f7c7c.zip |
Idle handling for dpms/lockscreen et al
Swayidle handles idle events and allows
for dpms and lockscreen handling. It also
handles systemd sleep events, and can
raise a lockscreen on sleep
Fixes #541
Diffstat (limited to 'config.in')
-rw-r--r-- | config.in | 14 |
1 files changed, 14 insertions, 0 deletions
@@ -29,6 +29,20 @@ output * bg @datadir@/backgrounds/sway/Sway_Wallpaper_Blue_1920x1080.png fill | |||
29 | # | 29 | # |
30 | # You can get the names of your outputs by running: swaymsg -t get_outputs | 30 | # You can get the names of your outputs by running: swaymsg -t get_outputs |
31 | 31 | ||
32 | ### Idle configuration | ||
33 | # | ||
34 | # Example configuration: | ||
35 | # | ||
36 | #exec swayidle \ | ||
37 | # timeout 300 'swaylock -c 000000' \ | ||
38 | # timeout 600 'swaymsg "output * dpms off"' \ | ||
39 | # resume 'swaymsg "output * dpms on"' \ | ||
40 | # before-sleep 'swaylock -c 000000' | ||
41 | # | ||
42 | # This will lock your screen after 300 seconds of inactivity, then turn off | ||
43 | # your displays after another 600 seconds, and turn your screens back on when | ||
44 | # resumed. It will also lock your screen before your computer goes to sleep. | ||
45 | |||
32 | ### Input configuration | 46 | ### Input configuration |
33 | # | 47 | # |
34 | # Example configuration: | 48 | # Example configuration: |