From 102b8e61483511218174cba08027c00dc4088f49 Mon Sep 17 00:00:00 2001 From: Florian Fischer Date: Sun, 19 Jul 2020 17:13:52 +0200 Subject: [sway] add blue screen lock image and prevent idle when qutebrowser is in fullscreen --- config/sway/config | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'config/sway') 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 # -- cgit v1.2.3