X-Git-Url: https://iankelling.org/git/?a=blobdiff_plain;f=system-status;h=87d8cf9d7939df5b2b55175e10015cca1d0f0f4f;hb=d4a62c18b666ac9673181ab76f3e3d28fc784da6;hp=9d9049ef93a30bd59a9d64bae545dcbb7e49b9f2;hpb=65d1dda5c1e79aa9c85a2d16bdd1a12413f163af;p=distro-setup diff --git a/system-status b/system-status index 9d9049e..87d8cf9 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 @@ -400,6 +400,8 @@ mute() { if $locked && (( mdiff < 6 || mdiff > 21 )); then case $(pactl get-sink-mute @DEFAULT_SINK@ | awk '{print $2}') in no) + # for log purposes + echo unmuted pactl set-sink-mute @DEFAULT_SINK@ true ;; esac @@ -407,6 +409,8 @@ mute() { if ! $locked && (( mdiff > 6 || mdiff < 12 )) && [[ ! -e /tmp/ianknap ]]; then case $(pactl get-sink-mute @DEFAULT_SINK@ | awk '{print $2}') in yes) + # for log purposes + echo muted pactl set-sink-mute @DEFAULT_SINK@ false ;; esac