add idle script

This commit is contained in:
Luis 2024-03-14 05:54:50 +01:00
parent b5d358c042
commit cf6971b88b
1 changed files with 6 additions and 0 deletions

6
home/laptop/.local/bin/idle Executable file
View File

@ -0,0 +1,6 @@
#!/bin/sh
swayidle \
timeout 1 'swaymsg "output * power off"' \
resume 'swaymsg "output * power on"' &
swaylock -i $HOME/.icons/locked.jpg
killall swayidle 2>/dev/null