Add selecthover script
This commit is contained in:
10
scripts/selecthover
Executable file
10
scripts/selecthover
Executable file
@@ -0,0 +1,10 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
CURSORPOS=$(hyprctl cursorpos -j)
|
||||
|
||||
ACTIVE_WORKSPACE=$(hyprctl activeworkspace -j | jq '.id')
|
||||
|
||||
hyprctl clients -j | jq ".[] | \
|
||||
select(.workspace.id == $ACTIVE_WORKSPACE) | \
|
||||
select(.at[0] <= $(jq '.x' <<< $CURSORPOS) and .at[1] <= $(jq '.y' <<< $CURSORPOS) and (.at[0] + .size[0] >= $(jq '.x' <<< $CURSORPOS)) and (.at[1] + .size[1] >= $(jq '.y' <<< $CURSORPOS))) | .pid \
|
||||
"
|
||||
Reference in New Issue
Block a user