commit ffd3b312a9d46ec3e749d4d969a04353b7edaebe
parent 3ca871167ef87893c823ec5305682a9cc5ee0431
Author: awy <awy@awy.one>
Date: Sat, 3 Jan 2026 15:59:14 +0300
pipemixer
Diffstat:
3 files changed, 6 insertions(+), 3 deletions(-)
diff --git a/.local/bin/statusbar/sb-microphone b/.local/bin/statusbar/sb-microphone
@@ -1,8 +1,10 @@
#!/bin/sh
+# Prints the current volume or [muted] if muted.
+
case $BLOCK_BUTTON in
1)
- setsid -w -f "$TERMINAL" -e pulsemixer
+ setsid -w -f "$TERMINAL" -e pipemixer
pkill -RTMIN+23 "$STATUSBAR"
;;
2) wpctl set-mute @DEFAULT_SOURCE@ toggle ;;
@@ -13,6 +15,7 @@ esac
vol="$(wpctl get-volume @DEFAULT_AUDIO_SOURCE@)"
+# If muted, print [muted] and exit.
[ "$vol" != "${vol%\[MUTED\]}" ] && echo "<span color='#FF0000'>muted</span>" && exit
vol="${vol#Volume: }"
@@ -20,7 +23,7 @@ vol="${vol#Volume: }"
split() {
# For ommiting the . without calling and external program.
IFS=$2
- set -- "$1"
+ set -- $1
printf '%s' "$@"
}
diff --git a/aurdeps.txt b/aurdeps.txt
@@ -10,3 +10,4 @@ dragon-drop-git
qarma-git
abook
task-spooler
+pipemixer-git
diff --git a/dependencies.txt b/dependencies.txt
@@ -48,7 +48,6 @@ icecat
pipewire
pipewire-pulse
wireplumber
-pulsemixer
# FONTS #
ttf-firacode-nerd