aboutsummaryrefslogtreecommitdiff
path: root/togglemute
diff options
context:
space:
mode:
authorSebastiano Tronto <sebastiano.tronto@gmail.com>2022-02-09 19:50:38 +0100
committerSebastiano Tronto <sebastiano.tronto@gmail.com>2022-02-09 19:50:38 +0100
commit6f45972265b532365421658f1370742bb82b757b (patch)
treec293262456ba35ae5c1b778684527ed5c70c7ad1 /togglemute
parent547311be5f6d90f36022a6e5e6fdbfb26862fd75 (diff)
downloadscripts-6f45972265b532365421658f1370742bb82b757b.tar.gz
scripts-6f45972265b532365421658f1370742bb82b757b.zip
Changed default notification system to herbe
Diffstat (limited to 'togglemute')
-rwxr-xr-xtogglemute8
1 files changed, 6 insertions, 2 deletions
diff --git a/togglemute b/togglemute
index d952676..b799b02 100755
--- a/togglemute
+++ b/togglemute
@@ -1,7 +1,10 @@
1#!/bin/sh 1#!/bin/sh
2 2
3# Toggle mute state and notify 3# Toggle mute state and notify
4# Requires: pulsemixer, notify-send 4# Requires: pulsemixer, notify-send or similar
5
6#notify=notify-send
7notify=herbe
5 8
6ismute=$(pulsemixer --toggle-mute --get-mute) 9ismute=$(pulsemixer --toggle-mute --get-mute)
7 10
@@ -11,4 +14,5 @@ else
11 m="unmuted" 14 m="unmuted"
12fi 15fi
13 16
14notify-send "Audio $m" 17pkill herbe # comment this line too if not using herbe
18$notify "Audio $m"

Generated with cgit - Back to sebastiano.tronto.net