mirror of
https://github.com/basecamp/omarchy.git
synced 2026-02-17 15:25:37 +00:00
Rely on a later restart of waybar
So we don't do it over and over again on a regular upgrade
This commit is contained in:
@@ -4,5 +4,4 @@ WAYBAR_CONFIG="$HOME/.config/waybar/config.jsonc"
|
||||
|
||||
if [[ -f "$WAYBAR_CONFIG" ]] && ! grep -A5 '"custom/omarchy"' "$WAYBAR_CONFIG" | grep -q '"on-click-right"'; then
|
||||
sed -i '/"on-click": "omarchy-menu",/a\ "on-click-right": "omarchy-launch-terminal",' "$WAYBAR_CONFIG"
|
||||
omarchy-state set restart-waybar-required
|
||||
fi
|
||||
|
||||
@@ -5,5 +5,4 @@ omarchy-pkg-drop blueberry
|
||||
|
||||
if ! grep -q "omarchy-launch-bluetooth" ~/.config/waybar/config.jsonc; then
|
||||
sed -i 's/blueberry/omarchy-launch-bluetooth/' ~/.config/waybar/config.jsonc
|
||||
omarchy-restart-waybar
|
||||
fi
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
echo "Hide Bluetooth module in waybar if there's no BT controller"
|
||||
|
||||
sed -i '/format-connected": "",/a\ "format-no-controller": "",' ~/.config/waybar/config.jsonc
|
||||
omarchy-restart-waybar
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
echo "Using icon for bluetooth when connected"
|
||||
|
||||
sed -i 's/"format-connected": "",/"format-connected": "",/' ~/.config/waybar/config.jsonc
|
||||
omarchy-restart-waybar
|
||||
|
||||
Reference in New Issue
Block a user