From 59196846915fd9a49d290294227c8b011abee05d Mon Sep 17 00:00:00 2001 From: Scott Wallace Date: Wed, 9 Nov 2022 14:51:27 +0000 Subject: [PATCH] Remove deprecated file --- bin/mutelock.sh | 21 --------------------- 1 file changed, 21 deletions(-) delete mode 100755 bin/mutelock.sh diff --git a/bin/mutelock.sh b/bin/mutelock.sh deleted file mode 100755 index 4a0cb3f..0000000 --- a/bin/mutelock.sh +++ /dev/null @@ -1,21 +0,0 @@ -#!/bin/bash -# Credit for code: - #https://unix.stackexchange.com/users/14353/cliff-stanford - #https://unix.stackexchange.com/users/231160/nik-gnomic -# Post on stackexchange: https://unix.stackexchange.com/questions/467456/how-to-mute-sound-when-xscreensaver-locks-screen/589614#589614 - -# Do nothing for a bit to ensure gdbus is up and awake, etc. -sleep 300 - -gdbus monitor -e -d org.xfce.ScreenSaver | grep -h ActiveChanged --line-buffered | - while read LINE; do - case "${LINE}" in - *"(true,)"*) - pactl set-sink-mute @DEFAULT_SINK@ on - ;; - *"(false,)"*) - pactl set-sink-mute @DEFAULT_SINK@ off - ;; - esac - done -exit