mirror of
https://github.com/basecamp/omarchy.git
synced 2026-02-17 15:25:37 +00:00
Add icons for additional audio profiles in Waybar (#4100)
* Add icons for additional audio profiles in Waybar * Only keep the headphone icon
This commit is contained in:
committed by
GitHub
parent
4a88ec876b
commit
eb904062f5
@@ -115,6 +115,7 @@
|
|||||||
"scroll-step": 5,
|
"scroll-step": 5,
|
||||||
"format-muted": "",
|
"format-muted": "",
|
||||||
"format-icons": {
|
"format-icons": {
|
||||||
|
"headphone": "",
|
||||||
"default": ["", "", ""]
|
"default": ["", "", ""]
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|||||||
14
migrations/1767716691.sh
Executable file
14
migrations/1767716691.sh
Executable file
@@ -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
|
||||||
Reference in New Issue
Block a user