Arch-Node-JS-LemonBar/linux.sh

11 lines
323 B
Bash
Raw Normal View History

# replace this linux.sh with the one packaged with node-active-window
len=$(echo -n "$(xdotool getwindowfocus getwindowname)" | wc -m)
max_len=70
if [ "$len" -gt "$max_len" ];then
echo -n "$(xdotool getwindowfocus getwindowname | cut -c 1-$max_len)..."
else
echo -n "$(xdotool getwindowfocus getwindowname)"
fi