diff options
| author | ryukamish <[email protected]> | 2026-07-12 12:32:54 +0530 |
|---|---|---|
| committer | ryukamish <[email protected]> | 2026-07-12 12:32:54 +0530 |
| commit | 213270aef5cb2e7f96cb38f62472ef275f5ecb93 (patch) | |
| tree | e3aa25710380348a7c4d0f21b11878a9b99bb6a1 /.config/waybar/config.jsonc | |
| parent | 11648d9f4accfff82d22aa060e0aa8ba77327593 (diff) | |
add: custom window title module for waybar
Diffstat (limited to '.config/waybar/config.jsonc')
| -rw-r--r-- | .config/waybar/config.jsonc | 15 |
1 files changed, 11 insertions, 4 deletions
diff --git a/.config/waybar/config.jsonc b/.config/waybar/config.jsonc index a5ac16f..3b6dde6 100644 --- a/.config/waybar/config.jsonc +++ b/.config/waybar/config.jsonc @@ -3,7 +3,7 @@ "position": "top", "modules-left": [ "clock", - "sway/window" + "custom/window" ], "modules-center": [ "sway/workspaces" @@ -21,9 +21,16 @@ "all-outputs": true, "format": "{name}" }, - "sway/window": { - "format": "<span color='#aaaaaa'>{app_id} {title}</span>", - "max-length": 40 + "custom/window": { + "exec": "~/.local/bin/waybar-window", + "exec-if": "~/.local/bin/waybar-window", + "format": "<span color='#aaaaaa'>{}</span>", + "return-type": "json", + "max-length": 60, + "tooltip": false, + // titles where special characters are present weren't being shown + // this solves that + "escape": true }, "clock": { "format": "{:%a, %b %d/%m/%y %H:%M}", |
