From 3f8aa6f00b80f2de7fcad06ce3d740392bdb7912 Mon Sep 17 00:00:00 2001 From: malachi-crain Date: Sat, 7 Dec 2024 16:13:59 -0600 Subject: [PATCH] hide battery popup when mouse exits --- .config/sketchybar/items/widgets/battery.lua | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.config/sketchybar/items/widgets/battery.lua b/.config/sketchybar/items/widgets/battery.lua index 88e74df..589b6e6 100644 --- a/.config/sketchybar/items/widgets/battery.lua +++ b/.config/sketchybar/items/widgets/battery.lua @@ -90,6 +90,10 @@ battery:subscribe("mouse.clicked", function(env) end end) +battery:subscribe("mouse.exited.global", function() + battery:set( { popup = { drawing = "off" } }) +end) + sbar.add("bracket", "widgets.battery.bracket", { battery.name }, { background = { color = colors.bg1 } })