Files
dotfiles/script/hyprland-focus-client
T
gitadmin 38b77f94a3 chore(dotfiles): add foot window titles, herdr keybinds, fix jq tab escapes
- Add -T window title flags to all SSH/tmux/herdr desktop entries
- Rename nca-ai-01.desktop -> nca-ai-01-tmux.desktop, update mise symlink
- Add herdr reload_config and zoom keybinds, toast delivery config
- Bind Leader+Shift+Return to launch herdr terminal
- Fix jq \t to literal tab in hyprland client scripts
2026-07-30 09:40:14 -04:00

10 lines
585 B
Bash
Executable File

#!/bin/sh
#chooser="walker -d"
chooser="rofi -i -dmenu -display-columns 1"
selected=$(hyprctl clients -j | jq -r 'to_entries | .[] | select(.value.hidden == false) | "\(.value.title) \t\(.value.class)::\(.value.address)"' | $chooser -p 'Client to Focus')
address=$(echo $selected | awk -F'::' '{print $NF}')
json=$(hyprctl clients -j | jq -r ".[] | select(.address == \"$address\")")
workspace=$(echo $json | jq -r '.workspace.id')
hyprctl dispatch "hl.dsp.focus({workspace = $workspace , on_current_monitor = true})"
hyprctl dispatch "hl.dsp.focus({ window = \"address:$address\" })"