# This is a separate ssh because the command can fail and thatis ok.
if $cron; then
locked=false
- if lock_info=$(timeout -s 9 6 ssh $h DISPLAY=:0 xscreensaver-command -timer); then
+ if lock_info=$(timeout -s 9 6 ssh $h DISPLAY=:0 xscreensaver-command -time); then
if [[ $lock_info != *non-blanked* ]]; then
locked=true
fi
type -p xscreensaver-command &>/dev/null || return 0
export DISPLAY=:0
locked=false
- if lock_info=$(xscreensaver-command -timer); then
+ if lock_info=$(xscreensaver-command -time); then
if [[ $lock_info != *non-blanked* ]]; then
locked=true
fi
trap 'echo "$0:$LINENO:error: \"$BASH_COMMAND\" returned $?. PIPESTATUS: ${PIPESTATUS[*]}" >&2' ERR
locked=false
-if lock_info=$(xscreensaver-command -timer); then
+if lock_info=$(xscreensaver-command -time); then
if [[ $lock_info != *non-blanked* ]]; then
locked=true
fi
local locked
export DISPLAY=:0
locked=false
- if lock_info=$(xscreensaver-command -timer); then
+ if lock_info=$(xscreensaver-command -time); then
if [[ $lock_info != *non-blanked* ]]; then
locked=true
fi