modified swaylock lines in sway config and lock script

This commit is contained in:
Mike G 2025-06-12 20:16:31 -04:00
parent d06b17333d
commit a1296d9813
2 changed files with 4 additions and 2 deletions

View file

@ -66,7 +66,8 @@ output eDP-1 resolution 1920x1080 position 0,0
# your displays after another 300 seconds, and turn your screens back on when
# resumed. It will also lock your screen before your computer goes to sleep.
set $lock 'swaylock -e -F -i /home/emge/Source/tokyonight-wallpapers/void_upscayl_realesrgan-x4plus_x2.png --indicator-radius 175 --indicator-y-position 525 --inside-color 000000AA'
# set $lock 'swaylock -e -F -i /home/emge/Source/tokyonight-wallpapers/void_upscayl_realesrgan-x4plus_x2.png --indicator-radius 175 --indicator-y-position 525 --inside-color 000000AA'
set $lock 'swaylock'
exec swayidle -w \
timeout 300 $lock \
timeout 310 'swaymsg "output * power off"' resume 'swaymsg "output * power on"' \

View file

@ -2,5 +2,6 @@
swayidle \
timeout 10 'swaymsg "output * power off"' \
resume 'swaymsg "output * power on"' &
swaylock -e -F -i /home/emge/Source/tokyonight-wallpapers/void_upscayl_realesrgan-x4plus_x2.png --indicator-radius 175 --indicator-y-position 525 --inside-color 000000AA
#swaylock -e -F -i /home/emge/Source/tokyonight-wallpapers/void_upscayl_realesrgan-x4plus_x2.png --indicator-radius 175 --indicator-y-position 525 --inside-color 000000AA
swaylock
kill %%