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}%",
|
"tooltip-format-charging": "{power:>1.0f}W↑ {capacity}%",
|
||||||
"interval": 5,
|
"interval": 5,
|
||||||
"on-click": "omarchy-menu power",
|
"on-click": "omarchy-menu power",
|
||||||
|
"on-click-right": "notify-send -u low \"$(omarchy-battery-status)\"",
|
||||||
"states": {
|
"states": {
|
||||||
"warning": 20,
|
"warning": 20,
|
||||||
"critical": 10
|
"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