mirror of
https://github.com/basecamp/omarchy.git
synced 2026-02-17 15:25:37 +00:00
Add headset icon to pulseaudio module in waybar (#4244)
This commit is contained in:
committed by
GitHub
parent
1ff31cfe41
commit
05b82cbee5
14
migrations/1768270644.sh
Executable file
14
migrations/1768270644.sh
Executable 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
|
||||
Reference in New Issue
Block a user