diff options
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}", |
