mirror of
https://github.com/Keyitdev/dotfiles.git
synced 2026-09-24 01:52:09 +00:00
New version: created v3
This commit is contained in:
+12
-12
@@ -11,30 +11,30 @@ vol_quiet=33
|
||||
vol_loud=66
|
||||
|
||||
if [ "$MUTE" = "$affirmative" ]; then
|
||||
dunstify -a "Mute" \
|
||||
"Mute" \
|
||||
"Sink is now muted" \
|
||||
dunstify -a "Speakers" \
|
||||
"Speakers" \
|
||||
"Speakers are muted" \
|
||||
-r 100 \
|
||||
-i "$dir"/volume-x.svg
|
||||
elif [ "$MUTE" = "$negative" ]; then
|
||||
if [ "$cur_vol" -le "$vol_quiet" ]; then
|
||||
dunstify -a "Mute" \
|
||||
"Mute" \
|
||||
"Sink is now unmuted" \
|
||||
dunstify -a "Speakers" \
|
||||
"Speakers" \
|
||||
"Speakers are unmuted" \
|
||||
-r 100 \
|
||||
-i "$dir"/volume.svg
|
||||
fi
|
||||
if [ "$cur_vol" -gt "$vol_quiet" ] && [ "$cur_vol" -le "$vol_loud" ]; then
|
||||
dunstify -a "Mute" \
|
||||
"Mute" \
|
||||
"Sink is now unmuted" \
|
||||
dunstify -a "Speakers" \
|
||||
"Speakers" \
|
||||
"Speakers are unmuted" \
|
||||
-r 100 \
|
||||
-i "$dir"/volume-1.svg
|
||||
fi
|
||||
if [ "$cur_vol" -gt "$vol_loud" ]; then
|
||||
dunstify -a "Mute" \
|
||||
"Mute" \
|
||||
"Sink is now unmuted" \
|
||||
dunstify -a "Speakers" \
|
||||
"Speakers" \
|
||||
"Speakers are unmuted" \
|
||||
-r 100 \
|
||||
-i "$dir"/volume-2.svg
|
||||
fi
|
||||
|
||||
Reference in New Issue
Block a user