From a8d4188f4ce67ddd7c5b5d16d4362409785201d7 Mon Sep 17 00:00:00 2001 From: tslil Date: Sun, 5 Apr 2026 09:50:55 +0100 Subject: machi_status: add trailing ellipses if window title truncated --- machi_status | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/machi_status b/machi_status index 9da5fa3..9354635 100755 --- a/machi_status +++ b/machi_status @@ -1,3 +1,3 @@ #!/usr/bin/env sh -machictl -watch $WAYBAR_OUTPUT_NAME | jq --unbuffered -r '"W: \(.current_workspace_index + 1)/\(.total_workspaces) | P: \(.workspace_info.current_panel_index + 1)/\(.workspace_info.total_panels) | F: \(.panel_info.total_windows) | \(.window_info.title | .[0:32])"' | sed -u 's/&/\&/g; s//\>/g; s/"/\"/g; s/'"'"'/\'/g' +machictl -watch $WAYBAR_OUTPUT_NAME | jq --unbuffered -r '"W: \(.current_workspace_index + 1)/\(.total_workspaces) | P: \(.workspace_info.current_panel_index + 1)/\(.workspace_info.total_panels) | F: \(.panel_info.total_windows) | \(.window_info.title | if length > 48 then .[0:48] + "..." else . end)"' | sed -u 's/&/\&/g; s//\>/g; s/"/\"/g; s/'"'"'/\'/g' -- cgit v1.2.3