From 9e99892555f446d2a83ecb86cdbf24eeb1d706a8 Mon Sep 17 00:00:00 2001 From: Steve Beaulac Date: Sun, 31 May 2026 14:07:36 -0400 Subject: [PATCH] fix: updated script to use new lua dispatch command for hyprctl --- script/hyprland-tmux-session | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/script/hyprland-tmux-session b/script/hyprland-tmux-session index 89152e6..4bf1445 100755 --- a/script/hyprland-tmux-session +++ b/script/hyprland-tmux-session @@ -26,16 +26,16 @@ fi client_tty="$( tmux list-clients -F '#{client_tty} #{client_termname}' 2>/dev/null \ - | awk '$2 ~ /ghostty/ { print $1; exit }' || true + | awk '$2 ~ /xterm/ { print $1; exit }' || true )" if [ -n "${client_tty}" ]; then # switch that client to the chosen session - tmux switch-client -c "${client_tty}" -t "${chosen}" - address=$(hyprctl clients -j | jq -r "to_entries | .[] | select(.value.class == \"com.mitchellh.ghostty\") | \"\(.value.address)\"") + address=$(hyprctl clients -j | jq -r "to_entries | .[] | select(.value.class == \"foot\") | \"\(.value.address)\"") workspace=$(hyprctl clients -j | jq -r ".[] | select(.address == \"$address\") | \"(.workspace.id)\"") - hyprctl dispatch focusworkspaceoncurrentmonitor "$workspace" - hyprctl dispatch focuswindow "address:$address" + hyprctl dispatch "hl.dsp.focus({workspace = $workspace , on_current_monitor = true})" + hyprctl dispatch "hl.dsp.focus({ window = \"address:$address\" })" + tmux switch-client -c "${client_tty}" -t "${chosen}" exit 0 fi