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

10 lines
131 B
Bash
Executable file

#!/bin/bash
OUT="$(xset q | grep timeout | awk '{print $2}')"
if [ "$OUT" = "0" ]
then
echo "OFF"
else
echo "${OUT}s"
fi