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