features
[distro-setup] / system-status
index 9d9049ef93a30bd59a9d64bae545dcbb7e49b9f2..87d8cf9d7939df5b2b55175e10015cca1d0f0f4f 100755 (executable)
@@ -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