From 5b9cb29bb1b64ce3ebf637c2a0eac9eb7a3ed254 Mon Sep 17 00:00:00 2001 From: littleblack111 Date: Sat, 14 Jun 2025 23:27:07 +0800 Subject: waybar: flipper-ac --- dot-config/waybar/modules.jsonc | 11 +++++++++++ dot-config/waybar/style.css | 1 + 2 files changed, 12 insertions(+) diff --git a/dot-config/waybar/modules.jsonc b/dot-config/waybar/modules.jsonc index 9b451780..59b4d5bb 100644 --- a/dot-config/waybar/modules.jsonc +++ b/dot-config/waybar/modules.jsonc @@ -237,6 +237,7 @@ // }, "group/small-utils": { "modules": [ + "custom/ac", "custom/gpu-screen-recorder", "custom/toggle-mic", "custom/toggle-cam", @@ -302,6 +303,16 @@ "on-click-right": "$HOME/scripts/rec.sh pause", "signal": 3 }, + "custom/ac": { + "format": "{}", + "interval": "once", + "exec": "$HOME/scripts/flipper-ac.py status", + "tooltip": false, + "on-click": "$HOME/scripts/flipper-ac.py toggle", + "on-click-middle": "$HOME/scripts/flipper-ac.py on", + "on-click-right": "$HOME/scripts/flipper-ac.py off", + "signal": 6 + }, "group/misc": { "orientation": "horizontal", "modules": [ diff --git a/dot-config/waybar/style.css b/dot-config/waybar/style.css index 3a6ec9d8..a00b9942 100644 --- a/dot-config/waybar/style.css +++ b/dot-config/waybar/style.css @@ -68,6 +68,7 @@ #clock, #custom-gpu-screen-recorder, +#custom-ac, #custom-toggle-mic, #custom-toggle-cam, #custom-warp-vpn, -- cgit v1.2.3