diff options
| author | tslil <tslil@posteo.de> | 2026-04-05 09:50:55 +0100 |
|---|---|---|
| committer | tslil <tslil@posteo.de> | 2026-04-05 09:50:57 +0100 |
| commit | a8d4188f4ce67ddd7c5b5d16d4362409785201d7 (patch) | |
| tree | 7d4eff38136775a3c988299660320e0d8083367f | |
| parent | cd8f6249d34d4a750d77c185c7e856c04a5bdf9d (diff) | |
machi_status: add trailing ellipses if window title truncated
| -rwxr-xr-x | machi_status | 2 |
1 files changed, 1 insertions, 1 deletions
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; 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; s/'"'"'/\'/g' |
