diff --git a/config/waybar/config.jsonc b/config/waybar/config.jsonc index 1b9f5ba2..71b41f54 100644 --- a/config/waybar/config.jsonc +++ b/config/waybar/config.jsonc @@ -115,6 +115,7 @@ "scroll-step": 5, "format-muted": "", "format-icons": { + "headphone": "", "default": ["", "", ""] } }, diff --git a/migrations/1767716691.sh b/migrations/1767716691.sh new file mode 100755 index 00000000..c98ebfb6 --- /dev/null +++ b/migrations/1767716691.sh @@ -0,0 +1,14 @@ +echo "Add icons for additional audio profiles in Waybar" + +if ! grep -q '"headphone": ""' "$HOME/.config/waybar/config.jsonc"; then + sed -i ' + /"pulseaudio": {/,/^[ ]*}/{ + /"format-icons": {/,/^[ ]*}/{ + /"default":/i\ +\ "headphone": "", + } + } + ' "$HOME/.config/waybar/config.jsonc" + + omarchy-restart-waybar +fi