From d381bd4bb86f554db95a22c4d41bb6acf3e2fdad Mon Sep 17 00:00:00 2001 From: Joel Mathew Thomas <90510078+joelmathewthomas@users.noreply.github.com> Date: Thu, 11 Apr 2024 01:01:50 +0530 Subject: [PATCH] added fan module in waybar --- .config/waybar/config.jsonc | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/.config/waybar/config.jsonc b/.config/waybar/config.jsonc index d70b2f7..6cdd967 100644 --- a/.config/waybar/config.jsonc +++ b/.config/waybar/config.jsonc @@ -108,6 +108,7 @@ }, "modules": [ "user", + "custom/fan", "idle_inhibitor", "custom/quit", "custom/sleep", @@ -116,6 +117,16 @@ "custom/power" ] }, + "custom/fan": { + "format": " 󰈐 ", + "tooltip": true, + "return-type": "json", + "exec": "~/.local/bin/fanstat", + "interval": 1, + "on-click": "~/.local/bin/fanctl min", + "on-click-right": "~/.local/bin/fanctl max", + "on-click-middle": "~/.local/bin/fanctl auto" + }, "custom/quit": { "format": " 󰗼 ", "tooltip": false,