Files
dotfiles/home-manager/progs/eww/config/scripts/currentWindow.fish
2026-03-03 14:28:04 -05:00

11 lines
285 B
Fish
Executable File

#!/usr/bin/env fish
name=$(niri msg focused-window | rg Title | sed -E "s/[[:space:]]+Title\: //g" | sed "s/\"//g")
proc_name=$(echo "$name" | head -c 55)
# TODO! fix this logic, add a '...' at the end
if ["$name" != "$proc_name"]
proc_name="$proc_name..."
end
echo "$proc_name"