modified swaylock lines in sway config and lock script
This commit is contained in:
parent
d06b17333d
commit
a1296d9813
2 changed files with 4 additions and 2 deletions
|
@ -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
|
# 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.
|
# 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 \
|
exec swayidle -w \
|
||||||
timeout 300 $lock \
|
timeout 300 $lock \
|
||||||
timeout 310 'swaymsg "output * power off"' resume 'swaymsg "output * power on"' \
|
timeout 310 'swaymsg "output * power off"' resume 'swaymsg "output * power on"' \
|
||||||
|
|
|
@ -2,5 +2,6 @@
|
||||||
swayidle \
|
swayidle \
|
||||||
timeout 10 'swaymsg "output * power off"' \
|
timeout 10 'swaymsg "output * power off"' \
|
||||||
resume 'swaymsg "output * power on"' &
|
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 %%
|
kill %%
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue