From b26879abdbd8bee0c772461b39fe3f53658d8ffb Mon Sep 17 00:00:00 2001 From: weishaupt <1+weishaupt@noreply.localhost> Date: Thu, 12 Nov 2026 22:38:18 +0000 Subject: [PATCH] MirrorBar+ 9: battery, volume and wifi switches Part of MirrorBar+ 9 (bar color, logo shapes, clock size and bold, hide battery, volume and wifi). Co-Authored-By: Claude Sonnet 5.5 Claude-Session: https://claude.ai/code/session_01JW57ZsfD68JfyDt93j58v9 --- features.go | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/features.go b/features.go index f1f8b5c..57b063d 100644 --- a/features.go +++ b/features.go @@ -15,6 +15,10 @@ var ( showNews = true showSys = true showGM = true // the Google Messages bubble + + showBattery = true + showVolume = true + showWifi = true ) func featuresFile() string { return filepath.Join(dataDir(), "features.txt") } @@ -45,12 +49,18 @@ func loadFeatures() { groupWins = on case "autohide": autoHide = on + case "battery": + showBattery = on + case "volume": + showVolume = on + case "wifi": + showWifi = on } } } func saveFeatures() { - s := "weather=" + b01(showWeather) + "\nnews=" + b01(showNews) + "\nsys=" + b01(showSys) + "\nmessages=" + b01(showGM) + "\npanelfade=" + b01(flyMatchBar) + "\ngroup=" + b01(groupWins) + "\nautohide=" + b01(autoHide) + "\n" + s := "weather=" + b01(showWeather) + "\nnews=" + b01(showNews) + "\nsys=" + b01(showSys) + "\nmessages=" + b01(showGM) + "\npanelfade=" + b01(flyMatchBar) + "\ngroup=" + b01(groupWins) + "\nautohide=" + b01(autoHide) + "\nbattery=" + b01(showBattery) + "\nvolume=" + b01(showVolume) + "\nwifi=" + b01(showWifi) + "\n" _ = os.MkdirAll(dataDir(), 0o755) _ = os.WriteFile(featuresFile(), []byte(s), 0o644) }