From 60052659b98832c78c902e4f27ecee2663d8e913 Mon Sep 17 00:00:00 2001 From: Sebastiano Tronto Date: Wed, 6 May 2026 08:30:49 +0200 Subject: Added scripts --- scripts/old/togglemute | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100755 scripts/old/togglemute (limited to 'scripts/old/togglemute') diff --git a/scripts/old/togglemute b/scripts/old/togglemute new file mode 100755 index 0000000..b799b02 --- /dev/null +++ b/scripts/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