random-scripts/reset-saver-daemon.sh

9 lines
270 B
Bash
Raw Normal View History

2023-04-29 00:16:16 -07:00
#!/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