add swayidle.sh script

i noticed that after reload, sway doesn't kill previous swayidle,
so i made this script to kill it myself.

Fine, i'll do it myself. As one once said
This commit is contained in:
2022-06-12 17:23:33 +03:00
parent 4976ea6c3a
commit 0065b22955
2 changed files with 8 additions and 5 deletions

7
bin/swayidle.sh Executable file
View File

@@ -0,0 +1,7 @@
#! /bin/bash
killall swayidle
cmd="swaylock"
swayidle before-sleep $cmd