dotfiles/scripts/watch_xscreensaver.sh

14 lines
152 B
Bash
Raw Permalink Normal View History

2024-04-26 17:38:35 +00:00
#!/bin/bash
ACTIVE=false
xscreensaver-command --watch | while read -r STATE
do
if condition; then
command ...
else
command ...
fi
done