Files
dotfiles/script/hyprland-fetch-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
661 B
Bash
Executable File

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