From 06240ac1f6b302f67c3c451dc5cba3db9a6fb659 Mon Sep 17 00:00:00 2001 From: ryukamish Date: Sat, 11 Apr 2026 23:58:52 +0530 Subject: add: workspace number on the left of the indicator --- src/main.rs | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/main.rs b/src/main.rs index 7eb4a5e..642b2dc 100644 --- a/src/main.rs +++ b/src/main.rs @@ -134,10 +134,16 @@ fn output_status(workspaces: &[Workspace], windows: &[Window]) { let ws_output = if win_count == 0 { // Empty but focused - just show a dot, no name - "·".to_string() + // "·".to_string() + format!("{} .", ws.idx) } else { let mut output = String::new(); + // Always show the workspace number on the left + if ws.is_focused { + output.push_str(&format!("{} ", ws.idx)); + } + // Show workspace name only when focused if has_custom_name && ws.is_focused { output.push_str(&format!("{} ", ws_name)); @@ -154,7 +160,7 @@ fn output_status(workspaces: &[Workspace], windows: &[Window]) { } let mut bar = if win.is_focused { - "█" + "" } else if !ws.is_focused && ws.active_window_id == Some(win.id) { "▌" } else { @@ -166,6 +172,7 @@ fn output_status(workspaces: &[Workspace], windows: &[Window]) { bar = "¦"; } + // output.push_str(&format!("{}", color, bar)); output.push_str(&format!("{}", color, bar)); } output -- cgit v1.3