Adds new keys & better window management
This commit is contained in:
parent
244eff89e9
commit
7cb5091c0b
6 changed files with 19 additions and 4 deletions
12
.config/scripts/anyrun/Windows.sh
Executable file
12
.config/scripts/anyrun/Windows.sh
Executable 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
|
||||
Loading…
Add table
Add a link
Reference in a new issue