Added lockscreens script
This commit is contained in:
parent
5b02adfa88
commit
f814325966
1
.config/scripts/bin/lockscreen
Symbolic link
1
.config/scripts/bin/lockscreen
Symbolic link
@ -0,0 +1 @@
|
||||
../sway/lockscreen
|
9
.config/scripts/sway/lockscreen
Executable file
9
.config/scripts/sway/lockscreen
Executable file
@ -0,0 +1,9 @@
|
||||
#!/bin/sh
|
||||
# Times the screen off and puts it to background
|
||||
swayidle \
|
||||
timeout 1 'swaymsg "output * dpms off"' \
|
||||
resume 'swaymsg "output * dpms on"' &
|
||||
# Locks the screen immediately
|
||||
swaylock -c 000000
|
||||
# Kills last background task so idle timer doesn't keep running
|
||||
kill %%
|
Loading…
Reference in New Issue
Block a user