This is an automated email from the git hooks/post-receive script.
git pushed a commit to reference refs/pull/36/head
in repository terminology.
View the commit online.
commit 161004530111164462f8029a40386c2c800cdc12
Author: [email protected] <[email protected]>
AuthorDate: Thu Mar 19 09:25:05 2026 -0600
feat: add visual indicator for active tymux sessions
Adds a 1px green bar on the left edge of the terminal window to
visually indicate when the pane is connected to a tymux session.
Follows the existing signal/state pattern used by other indicators
(bell, tabcount, miniview). Theme inheritance ensures themes without
the tymux_indicator part continue to work without any breakage.
Changes:
- colors.edc: Define :tymux-indicator color class (green)
- background.edc: Add tymux_indicator RECT part with on/off states
- background.edc: Add signal programs for tymux,on/tymux,off
- win.c: Emit tymux,on signal when session_name is set during init
Co-Authored-By: Claude Opus 4.6 (1M context) <[email protected]>
---
data/themes/default/background.edc | 23 +++++++++++++++++++++++
data/themes/default/colors.edc | 1 +
src/bin/win.c | 4 ++++
3 files changed, 28 insertions(+)
diff --git a/data/themes/default/background.edc b/data/themes/default/background.edc
index ef532f15..9b9df265 100644
--- a/data/themes/default/background.edc
+++ b/data/themes/default/background.edc
@@ -66,6 +66,21 @@ group { name: "terminology/background";
}
}
////////////////////////////////////////////////////////////////////
+ // tymux session indicator — 1px green bar on left edge
+ part { name: "tymux_indicator"; type: RECT; mouse_events: 0;
+ description { state: "default" 0.0;
+ rel1 { relative: 0.0 0.0; }
+ rel2 { relative: 0.0 1.0; offset: 0 -1; }
+ color: 0 0 0 0;
+ visible: 0;
+ }
+ description { state: "on" 0.0;
+ inherit: "default" 0.0;
+ color_class: ":tymux-indicator";
+ visible: 1;
+ }
+ }
+ ////////////////////////////////////////////////////////////////////
// indicator of other tabs and control {{{
part { name: "tabcount_clip"; type: RECT;
description { state: "default" 0.0;
@@ -436,6 +451,14 @@ group { name: "terminology/background";
action: STATE_SET "on" 0.0;
target: "terminology.miniview";
}
+ program { signal: "tymux,on"; source: "terminology";
+ action: STATE_SET "on" 0.0;
+ target: "tymux_indicator";
+ }
+ program { signal: "tymux,off"; source: "terminology";
+ action: STATE_SET "default" 0.0;
+ target: "tymux_indicator";
+ }
// }}}
////////////////////////////////////////////////////////////////////
diff --git a/data/themes/default/colors.edc b/data/themes/default/colors.edc
index 4edfb558..45506be1 100644
--- a/data/themes/default/colors.edc
+++ b/data/themes/default/colors.edc
@@ -19,3 +19,4 @@ color_class { name: ":selected"; color: 51 153 255 255; }
color_class { name: ":selected-alt"; color: 255 153 51 255; }
color_class { name: ":shadow"; color: 0 0 0 128; }
color_class { name: ":shadow-selected"; color: 0 0 0 255; }
+color_class { name: ":tymux-indicator"; color: 0 200 0 255; }
diff --git a/src/bin/win.c b/src/bin/win.c
index 15955c2e..ba832f74 100644
--- a/src/bin/win.c
+++ b/src/bin/win.c
@@ -7468,6 +7468,10 @@ term_new(Win *wn, Config *config, const char *cmd,
elm_layout_content_set(term->bg, "terminology.content", term->core);
elm_layout_content_set(term->bg, "terminology.miniview", term->miniview);
+#ifdef HAVE_TYMUX
+ if (session_name && *session_name)
+ elm_layout_signal_emit(term->bg, "tymux,on", "terminology");
+#endif
evas_object_smart_callback_add(o, "options", _cb_options, term);
evas_object_smart_callback_add(o, "bell", _cb_bell, term);
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.