check-idle() {
type -p xscreensaver-command &>/dev/null || return 0
+ export XAUTHORITY=/home/iank/.Xauthority
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