mirror of
https://github.com/arthur-pbty/arthur-os.git
synced 2026-08-03 20:28:21 +02:00
Compare commits
2
Commits
dev
...
revert-4918-dev
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
2924278be5 | ||
|
|
ca8e3c24de |
@@ -80,7 +80,6 @@
|
|||||||
"on-click": "omarchy-launch-wifi"
|
"on-click": "omarchy-launch-wifi"
|
||||||
},
|
},
|
||||||
"battery": {
|
"battery": {
|
||||||
"bat": "BAT0",
|
|
||||||
"format": "{capacity}% {icon}",
|
"format": "{capacity}% {icon}",
|
||||||
"format-discharging": "{icon}",
|
"format-discharging": "{icon}",
|
||||||
"format-charging": "{icon}",
|
"format-charging": "{icon}",
|
||||||
|
|||||||
@@ -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
|
|
||||||
Reference in New Issue
Block a user