user/eww-wayland: fix title script to truncate properly
This commit is contained in:
parent
88196824f6
commit
91a993a8f7
1 changed files with 3 additions and 2 deletions
|
|
@ -9,9 +9,10 @@ out () {
|
|||
}
|
||||
|
||||
init=$(hyprctl activewindow -j | jq --raw-output .title)
|
||||
out "$init"
|
||||
trunc=$(echo $init | cut -c-60)
|
||||
out "$trunc"
|
||||
|
||||
socat -u UNIX-CONNECT:$XDG_RUNTIME_DIR/hypr/$HYPRLAND_INSTANCE_SIGNATURE/.socket2.sock - | stdbuf -o0 awk -F '>>|,' '/^activewindow>>/{print $3}' | while read -r line ; do
|
||||
trunc=$(echo $line | cut -c-85)
|
||||
trunc=$(echo $line | cut -c-60)
|
||||
out "$trunc"
|
||||
done
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue