From 05b82cbee5cc4025e95d7cc9a8c90cb5e44485d0 Mon Sep 17 00:00:00 2001 From: Pierre Olivier Martel Date: Tue, 13 Jan 2026 05:28:04 -0500 Subject: [PATCH] Add headset icon to pulseaudio module in waybar (#4244) --- config/waybar/config.jsonc | 1 + migrations/1768270644.sh | 14 ++++++++++++++ 2 files changed, 15 insertions(+) create mode 100755 migrations/1768270644.sh diff --git a/config/waybar/config.jsonc b/config/waybar/config.jsonc index 9100b4ca..5c28742c 100644 --- a/config/waybar/config.jsonc +++ b/config/waybar/config.jsonc @@ -116,6 +116,7 @@ "format-muted": "", "format-icons": { "headphone": "", + "headset": "", "default": ["", "", ""] } }, diff --git a/migrations/1768270644.sh b/migrations/1768270644.sh new file mode 100755 index 00000000..59083d19 --- /dev/null +++ b/migrations/1768270644.sh @@ -0,0 +1,14 @@ +echo "Add icon for headset audio profile in Waybar" + +if ! grep -q '"headset": ""' "$HOME/.config/waybar/config.jsonc"; then + sed -i ' + /"pulseaudio": {/,/^[ ]*}/{ + /"format-icons": {/,/^[ ]*}/{ + /"default":/i\ +\ "headset": "", + } + } + ' "$HOME/.config/waybar/config.jsonc" + + omarchy-restart-waybar +fi