Adds new keys & better window management

This commit is contained in:
Michel Fedde 2025-06-09 00:04:45 +02:00
parent 244eff89e9
commit 7cb5091c0b
6 changed files with 19 additions and 4 deletions

View file

@ -0,0 +1,12 @@
#!/bin/env sh
options=$(hyprctl -j clients | jq 'map({"\(.title)": .pid}) | add')
result=$(echo $options | jq 'keys | map("\(.)\n") | add' -r | anyrun --plugins libstdin.so)
pid=$(echo $options | jq ".[\"$result\"]")
if [[ $pid == "null" ]]; then
exit 0
fi
hyprctl dispatch focuswindow pid:$pid