2023-04-20 03:13:20 +08:00
|
|
|
#!/bin/sh
|
|
|
|
# Times the screen off and puts it to background
|
|
|
|
swayidle \
|
2023-11-21 17:29:47 +08:00
|
|
|
timeout 10 'swaymsg "output * dpms off"' \
|
2023-08-02 12:47:33 +08:00
|
|
|
resume 'swaymsg "output * dpms on"; set-primary-monitor' &
|
2023-04-20 03:13:20 +08:00
|
|
|
# Locks the screen immediately
|
|
|
|
swaylock -c 000000
|
|
|
|
# Kills last background task so idle timer doesn't keep running
|
|
|
|
kill %%
|