X-Git-Url: https://iankelling.org/git/?a=blobdiff_plain;f=btrfsmaint;h=f50f5494e2aba068fb68aa2bd51f748b87d358a7;hb=dab96f8fa4c701db13ba734fa0c07b5d12fc8fae;hp=85f2f349711dd92584430c059acffd4071d2aa46;hpb=50f25d1eec109c4596cfc638c9a7c98da0f0b5d0;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 }