From 7c822b4689514e497c3a97a10ddadb538ec393ad Mon Sep 17 00:00:00 2001 From: ryukamish Date: Tue, 14 Jul 2026 23:01:34 +0530 Subject: add(module): screen recording indicator module --- .config/waybar/config.jsonc | 17 +++++++++++++++++ .local/bin/waybar-record | Bin 0 -> 301976 bytes 2 files changed, 17 insertions(+) create mode 100755 .local/bin/waybar-record diff --git a/.config/waybar/config.jsonc b/.config/waybar/config.jsonc index 3bf9249..f3a8c0b 100644 --- a/.config/waybar/config.jsonc +++ b/.config/waybar/config.jsonc @@ -9,6 +9,7 @@ "sway/workspaces" ], "modules-right": [ + "custom/gsr", "group/tray-group", "group/brightness-group", "network", @@ -157,6 +158,22 @@ "on-click-right": "~/.local/bin/waybar-brightness right_click", "tooltip-format": "HDMI: {}%" }, + "custom/window": { + "exec": "~/.local/bin/waybar-window", + "exec-if": "~/.local/bin/waybar-window", + "format": "{}", + "return-type": "json", + "max-length": 60, + "tooltip": false, + // titles where special characters are present weren't being shown + // this solves that + "escape": true + }, + "custom/gsr": { + "exec": "~/.local/bin/waybar-record", + "return-type": "json", + "tooltip": false + }, // Tray drawer group "group/tray-group": { "orientation": "horizontal", diff --git a/.local/bin/waybar-record b/.local/bin/waybar-record new file mode 100755 index 0000000..6871112 Binary files /dev/null and b/.local/bin/waybar-record differ -- cgit v1.3