diff options
| author | Florian Fischer <florian.fl.fischer@fau.de> | 2020-07-19 17:13:52 +0200 |
|---|---|---|
| committer | Florian Fischer <florian.fl.fischer@fau.de> | 2020-07-19 17:13:52 +0200 |
| commit | 102b8e61483511218174cba08027c00dc4088f49 (patch) | |
| tree | 1b22fd27f4725c92b48c6cc2cc612b7ccc47c669 | |
| parent | 30c1fef6ff39488e86c7404537f729625a7de321 (diff) | |
| download | dotfiles-102b8e61483511218174cba08027c00dc4088f49.tar.gz dotfiles-102b8e61483511218174cba08027c00dc4088f49.zip | |
[sway] add blue screen lock image and prevent idle when qutebrowser is in fullscreen
| -rw-r--r-- | config/sway/config | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/config/sway/config b/config/sway/config index 4790d00..16b219e 100644 --- a/config/sway/config +++ b/config/sway/config @@ -46,11 +46,16 @@ output eDP-1 resolution 1920x1080 position 0,0 # This will lock your screen after 300 seconds of inactivity, then turn off # your displays after another 600 seconds, and turn your screens back on when # resumed. It will also lock your screen before your computer goes to sleep. + +set $lock_cmd 'swaylock -i $DOTFILES_LOCATION/wallpapers/blue_screen.png' + exec swayidle \ - timeout 300 'swaylock -c 000000' \ + timeout 300 $lock_cmd \ timeout 600 'swaymsg "output * dpms off"' \ resume 'swaymsg "output * dpms on"' \ - before-sleep 'swaylock -c 000000' + before-sleep $lock_cmd + +for_window [app_id='qutebrowser'] inhibit_idle fullscreen ### Input configuration # |
