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