forked from kunsi/dotfiles
13 lines
149 B
Bash
13 lines
149 B
Bash
|
#!/bin/bash
|
||
|
|
||
|
OUT=$(xset q | grep timeout | awk '{print $2}')
|
||
|
|
||
|
if [ $OUT -eq 0 ]
|
||
|
then
|
||
|
echo "OFF"
|
||
|
exit 1
|
||
|
else
|
||
|
echo "${OUT}s"
|
||
|
exit 0
|
||
|
fi
|