From dc98cba24cb5f1f3e260c49fc61add4a113a1df0 Mon Sep 17 00:00:00 2001 From: Sebastiano Tronto Date: Mon, 19 Jun 2023 08:25:41 +0200 Subject: Update to status (now I use a statusbar) --- old/togglemute | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100755 old/togglemute (limited to 'old/togglemute') diff --git a/old/togglemute b/old/togglemute new file mode 100755 index 0000000..b799b02 --- /dev/null +++ b/old/togglemute @@ -0,0 +1,18 @@ +#!/bin/sh + +# Toggle mute state and notify +# Requires: pulsemixer, notify-send or similar + +#notify=notify-send +notify=herbe + +ismute=$(pulsemixer --toggle-mute --get-mute) + +if [ "$ismute" = "1" ]; then + m="muted" +else + m="unmuted" +fi + +pkill herbe # comment this line too if not using herbe +$notify "Audio $m" -- cgit v1.3