Initial Commit
This commit is contained in:
9
.config/sway/scripts/lockman.sh
Executable file
9
.config/sway/scripts/lockman.sh
Executable file
@@ -0,0 +1,9 @@
|
||||
#!/bin/sh
|
||||
# Times the screen off and puts it to background
|
||||
swayidle \
|
||||
timeout 5 'swaymsg "output * dpms off"' \
|
||||
resume 'swaymsg "output * dpms on"' &
|
||||
# Locks the screen immediately
|
||||
swaylock -C ~/.config/sway/swaylock/config
|
||||
# Kills last background task so idle timer doesn't keep running
|
||||
kill %%
|
||||
Reference in New Issue
Block a user