mirror of
https://github.com/arthur-pbty/arthur-os.git
synced 2026-08-01 20:28:16 +02:00
Show detailed battery notification on right-click on Waybar battery icon
This commit is contained in:
@@ -93,6 +93,7 @@
|
||||
"tooltip-format-charging": "{power:>1.0f}W↑ {capacity}%",
|
||||
"interval": 5,
|
||||
"on-click": "omarchy-menu power",
|
||||
"on-click-right": "notify-send -u low \"$(omarchy-battery-status)\"",
|
||||
"states": {
|
||||
"warning": 20,
|
||||
"critical": 10
|
||||
|
||||
@@ -0,0 +1,6 @@
|
||||
echo "Show battery status notification on right-click of the waybar battery icon"
|
||||
|
||||
if ! grep -q 'omarchy-battery-status' ~/.config/waybar/config.jsonc; then
|
||||
sed -i '/"on-click": "omarchy-menu power",/a\ "on-click-right": "notify-send -u low \\"$(omarchy-battery-status)\\"",' ~/.config/waybar/config.jsonc
|
||||
omarchy-restart-waybar
|
||||
fi
|
||||
Reference in New Issue
Block a user