X-Git-Url: https://iankelling.org/git/?a=blobdiff_plain;f=btrfsmaint;h=f50f5494e2aba068fb68aa2bd51f748b87d358a7;hb=b714b0dde29aaf5e44d628c1d723077465e9c488;hp=85f2f349711dd92584430c059acffd4071d2aa46;hpb=858993fb6c3e9351988b193e6c296e6ea7862501;p=distro-setup diff --git a/btrfsmaint b/btrfsmaint index 85f2f34..f50f549 100755 --- a/btrfsmaint +++ b/btrfsmaint @@ -57,12 +57,10 @@ check-idle() { export XAUTHORITY=/home/iank/.Xauthority export DISPLAY=:0 locked=false - if lock_info=$(xscreensaver-command -time); then + if lock_info=$(xscreensaver-command -time 2>/dev/null); then if [[ $lock_info != *non-blanked* ]]; then locked=true fi - else - locked=true fi }