From: Ian Kelling Date: Wed, 10 May 2023 12:50:45 +0000 (-0400) Subject: fix typo X-Git-Url: https://iankelling.org/git/?a=commitdiff_plain;h=541688fb965b26a16cda0801591df64551c51115;p=distro-setup fix typo --- diff --git a/btrbk-run b/btrbk-run index cec50f1..f768ad4 100644 --- a/btrbk-run +++ b/btrbk-run @@ -503,7 +503,7 @@ else # 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 diff --git a/btrfsmaint b/btrfsmaint index 7b2dabe..4b851a1 100755 --- a/btrfsmaint +++ b/btrfsmaint @@ -35,7 +35,7 @@ check-idle() { 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 diff --git a/laptop-btrbk b/laptop-btrbk index c069f12..6fdd09f 100755 --- a/laptop-btrbk +++ b/laptop-btrbk @@ -8,7 +8,7 @@ set -eE -o pipefail 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 diff --git a/system-status b/system-status index 9d9049e..b2e3b16 100755 --- a/system-status +++ b/system-status @@ -388,7 +388,7 @@ mute() { 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