From 8274317473737359070d0873aad4e3415a39ebd5 Mon Sep 17 00:00:00 2001 From: Alexander Leonhardt Date: Sat, 12 Sep 2026 15:37:49 +0200 Subject: Added specific highlighting for tmux window --- dwl.c | 18 ++++++++++++++++-- 1 file changed, 16 insertions(+), 2 deletions(-) (limited to 'dwl.c') diff --git a/dwl.c b/dwl.c index 8983457..f87b05a 100644 --- a/dwl.c +++ b/dwl.c @@ -1824,7 +1824,13 @@ focusclient(Client *c, int lift) * handling a drag operation */ if (!exclusive_focus && !seat->drag) { - client_set_border_color(c, (float[])COLOR(colors[SchemeSel][ColBorder])); + const char *title = client_get_title(c); + if (title && strstr(title,"[tmux]")) { + client_set_border_color(c, tmux_color); + } + else { + client_set_border_color(c, (float[])COLOR(colors[SchemeSel][ColBorder])); + } client_set_dimmer_state(c, 0); } } @@ -3591,8 +3597,16 @@ void updatetitle(struct wl_listener *listener, void *data) { Client *c = wl_container_of(listener, c, set_title); - if (c == focustop(c->mon)) + if (c == focustop(c->mon)) { drawbars(); + const char *title = client_get_title(c); + if (title && strstr(title,"[tmux]")) { + client_set_border_color(c, tmux_color); + } + else { + client_set_border_color(c, (float[])COLOR(colors[SchemeSel][ColBorder])); + } + } } void -- cgit