Hide Bluetooth module in waybar if there's no BT controller

This commit is contained in:
David Heinemeier Hansson
2025-11-19 15:03:20 +01:00
parent da8c3d9c64
commit f77f107b7e
2 changed files with 7 additions and 0 deletions

6
migrations/1763560161.sh Normal file
View 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