diff options
| author | littleblack111 <littleblack11111@gmail.com> | 2025-06-14 23:27:07 +0800 |
|---|---|---|
| committer | littleblack111 <littleblack11111@gmail.com> | 2025-06-14 23:27:07 +0800 |
| commit | 5b9cb29bb1b64ce3ebf637c2a0eac9eb7a3ed254 (patch) | |
| tree | cfc9f2ecb664c0e589a05820429bab01bec4e876 | |
| parent | 9bce166d6d8f2e666845705e6bee4651fa1b9e9b (diff) | |
waybar: flipper-ac
| -rw-r--r-- | dot-config/waybar/modules.jsonc | 11 | ||||
| -rw-r--r-- | dot-config/waybar/style.css | 1 |
2 files changed, 12 insertions, 0 deletions
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, |
