xprop for Hyprland
hyprlandobviously- hyprevents capture window changed events to rerun slurp
socatto connect hyprevents with hyprprop eventsslurpto select an area on the screenjqto parse hyprctl outputmake
yay -S hyprprop-gitor
sudo make installJust run
hyprpropand select desired window
Currently, there is no event triggered when a special workspace is opened or closed, so the only way to force slurp to redraw automatically is to add keybind for sending the signal to the hyprprop using the same key as togglespecialworkspace:
bind = $mod, <KEY>, togglespecialworkspace,
bind = $mod, <KEY>, exec, kill -USR1 "$(cat /tmp/hyprprop.pid)"
By binding both commands to the same key, Hyprland will execute them sequentially whenever the key is pressed.