Show detailed battery notification on right-click on Waybar battery icon

This commit is contained in:
David Heinemeier Hansson committed 2026-04-24 10:00:41 +02:00
1 parent 40f41a5299
commit 1cf28a9fda
2 files changed
+7

No files matched your search

+6
View File
@@ -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