diff options
Diffstat (limited to '.config/waybar')
| -rw-r--r-- | .config/waybar/config.jsonc | 15 | ||||
| -rw-r--r-- | .config/waybar/style.css | 2 |
2 files changed, 12 insertions, 5 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}", diff --git a/.config/waybar/style.css b/.config/waybar/style.css index 21487b3..58464b9 100644 --- a/.config/waybar/style.css +++ b/.config/waybar/style.css @@ -32,7 +32,7 @@ window#waybar { #clock, #battery, -#window, +#custom-window, #backlight, /* Custom modules */ #custom-vpn, |
