Revert "Add battery identifier to Waybar config" (#5386)

* Revert "Add battery identifier to Waybar config"

* Remove the migration too
This commit is contained in:
David Heinemeier Hansson
2026-04-22 07:52:40 +02:00
committed by GitHub
parent a3b7c41b9b
commit bff5e843e0
2 changed files with 0 additions and 11 deletions
-1
View File
@@ -80,7 +80,6 @@
"on-click": "omarchy-launch-wifi"
},
"battery": {
"bat": "BAT0",
"format": "{capacity}% {icon}",
"format-discharging": "{icon}",
"format-charging": "{icon}",
-10
View File
@@ -1,10 +0,0 @@
echo "Pin waybar battery module to BAT0 to prevent crash on HID battery disconnect"
CONFIG_FILE=~/.config/waybar/config.jsonc
if [[ -f "$CONFIG_FILE" ]] \
&& ! grep -Eq '"bat"[[:space:]]*:' "$CONFIG_FILE" \
&& grep -Eq '"battery"[[:space:]]*:[[:space:]]*\{' "$CONFIG_FILE"; then
sed -i -E '/"battery"[[:space:]]*:[[:space:]]*\{/a\ "bat": "BAT0",' "$CONFIG_FILE"
omarchy-restart-waybar
fi