mirror of
https://github.com/basecamp/omarchy.git
synced 2026-02-17 15:25:37 +00:00
Hide Bluetooth module in waybar if there's no BT controller
This commit is contained in:
@@ -101,6 +101,7 @@
|
|||||||
"format": "",
|
"format": "",
|
||||||
"format-disabled": "",
|
"format-disabled": "",
|
||||||
"format-connected": "",
|
"format-connected": "",
|
||||||
|
"format-no-controller": "",
|
||||||
"tooltip-format": "Devices connected: {num_connections}",
|
"tooltip-format": "Devices connected: {num_connections}",
|
||||||
"on-click": "omarchy-launch-bluetooth"
|
"on-click": "omarchy-launch-bluetooth"
|
||||||
},
|
},
|
||||||
|
|||||||
6
migrations/1763560161.sh
Normal file
6
migrations/1763560161.sh
Normal file
@@ -0,0 +1,6 @@
|
|||||||
|
echo "Hide Bluetooth module in waybar if there's no BT controller"
|
||||||
|
|
||||||
|
if ! grep -q "format-no-controller" ~/.config/waybar/config.jsonc; then
|
||||||
|
sed -i '/format-connected": "",/a\ "format-no-controller": "",' ~/.config/waybar/config.jsonc
|
||||||
|
omarchy-restart-waybar
|
||||||
|
fi
|
||||||
Reference in New Issue
Block a user