Add headset icon to pulseaudio module in waybar (#4244)

This commit is contained in:
Pierre Olivier Martel
2026-01-13 05:28:04 -05:00
committed by GitHub
parent 1ff31cfe41
commit 05b82cbee5
2 changed files with 15 additions and 0 deletions

14
migrations/1768270644.sh Executable file
View File

@@ -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