fix(waybar): revert tooltips

This commit is contained in:
Barrett Ruth 2026-02-14 17:35:36 -05:00
parent ee1df8983a
commit 443975fd9b
Signed by: barrett
GPG key ID: A6C96C9349D2FC81
2 changed files with 32 additions and 24 deletions

View file

@ -24,14 +24,14 @@ spawn_or_focus() {
name="${1}@${scope}"
cmd="$2"
if tmux list-windows -F '#{window_name}' | grep -Fx "$name" >/dev/null; then
tmux select-window -t "${name}"
idx=$(tmux list-windows -F '#{window_name} #{window_index}' | awk -F'\t' -v n="$name" '$1 == n { print $2; exit }')
if [ -n "$idx" ]; then
tmux select-window -t ":${idx}"
elif [ -n "$cmd" ]; then
tmux new-window -c '#{pane_current_path}' -n "${name}" "$cmd"
else
if [ -n "$cmd" ]; then
tmux new-window -c '#{pane_current_path}' -n "${name}" "$cmd"
else
tmux new-window -c '#{pane_current_path}' -n "${name}"
fi
tmux new-window -c '#{pane_current_path}' -n "${name}"
fi
}