kunsis-dotfiles/.config/i3pystatus/screensaver-status.sh

11 lines
131 B
Bash
Raw Normal View History

2018-08-24 09:26:15 +00:00
#!/bin/bash
OUT="$(xset q | grep timeout | awk '{print $2}')"
2018-08-24 09:26:15 +00:00
if [ "$OUT" = "0" ]
2018-08-24 09:26:15 +00:00
then
echo "OFF"
else
echo "${OUT}s"
fi