add scripts

This commit is contained in:
cho
2023-05-03 21:19:35 +07:00
parent 52a68ee195
commit 27722d1154
24 changed files with 717 additions and 0 deletions

14
home/default/.local/bin/idle Executable file
View File

@ -0,0 +1,14 @@
#!/bin/zsh
if [[ -z "$1" ]]; then
swayidle -w \
timeout 310 'swaylock' \
timeout 300 'swaymsg "output * dpms off"' resume 'swaymsg "output * dpms on"' \
before-sleep "swaylock"
fi
if [[ $1 == "-k" ]]; then
killall swayidle
exit 0
fi
if [[ $1 != "-k" ]]; then
echo 'wrong syntax, do idle or idle -k'
fi