From 9c369a66d38d2ccde9cdc879250071bda61e8e26 Mon Sep 17 00:00:00 2001 From: Alan Orth Date: Mon, 10 Feb 2020 10:03:08 +0200 Subject: [PATCH] sway/config: Set lockscreen backgroud picture Andrew Shiva / Wikipedia / CC BY-SA 4.0 From: https://commons.wikimedia.org/wiki/File:Jerusalem-2013-Temple_Mount-Dome_of_the_Rock-Detail_01.jpg --- sway/config | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/sway/config b/sway/config index e6b6c6d..50692f0 100644 --- a/sway/config +++ b/sway/config @@ -78,11 +78,13 @@ bindswitch --reload lid:off output $laptop enable # # Example configuration: # +set $lock_bg ~/Downloads/3121px-Jerusalem-2013-Temple_Mount-Dome_of_the_Rock-Detail_01.jpg + exec swayidle \ - timeout 300 'swaylock -c 000000' \ + timeout 300 'swaylock -c 000000 -i $lock_bg' \ timeout 600 'swaymsg "output * dpms off"' \ resume 'swaymsg "output * dpms on"' \ - before-sleep 'swaylock -c 000000' + before-sleep 'swaylock -c 000000 -i $lock_bg' # # 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