Added some more scripts

This commit is contained in:
Alexander Rosenberg 2023-04-29 00:16:16 -07:00
parent f51337a774
commit bb654d4718
Signed by: Zander671
GPG Key ID: 5FD0394ADBD72730
2 changed files with 15 additions and 0 deletions

7
lock-screen.sh Executable file
View File

@ -0,0 +1,7 @@
#!/usr/bin/env zsh
dunstctl set-paused true
xset dpms 0 0 15
i3lock -e -n -i "${HOME}/Pictures/Screensavers/Lyza and Riko.png"
xset -dpms
dunstctl set-paused false
mailnag &

8
reset-saver-daemon.sh Executable file
View File

@ -0,0 +1,8 @@
#!/usr/bin/zsh
while true; do
if pactl list sink-inputs | grep -i -B13 'firefox' | grep 'Corked: no' >/dev/null || pactl list sink-inputs | grep -i -B13 'chromium' | grep 'Corked: no' >/dev/null; then
echo reset
xset s reset
fi
sleep 1m
done