Feature Request - Hiding the cursor
An application argument to hide the cursor before the screen freezes with (-z)
I made a really bad but kinda functional work around by setting the timeout of the cursor to really small number so it disappears "^^
hyprctl keyword cursor:inactive_timeout=0.3 1 && sleep 0.05 && hyprshot -m output -z -o '~/path/to/screenshots/' && hyprctl keyword cursor:inactive_timeout=3 1
For some reason
hyprctl keyword cursor:inactive_timeout=0.1 1requires two arguments and I'm not sure why.
Now hyprland's latest git have added a new variable called cursor:invisible. It can work with hyprctl keyword cursor:invisible true && hyprshot ... && hyprctl keyword cursor:invisible false
For those who use older versions of hyprland and don't want any lag before freezing, here is my previous solution:
cursor_pos_x=$(hyprctl cursorpos -j | jq -r '.x')
cursor_pos_y=$(hyprctl cursorpos -j | jq -r '.y')
hyprctl dispatch movecursor 10000 10000
hyprshot -m "$1" -o "$OUTPUT_DIR" --freeze &
sleep 0.1
hyprctl dispatch movecursor "$cursor_pos_x" "$cursor_pos_y"
Here $1 can be region, window, etc.
I actually want my cursor to appear but no matter what I do, it always disappears when I take a screenshot. I don't even have invisible set in my hyprland config, I only have hide_on_key_press = true; (which is also a workaround for having it disappear in screenshots), but even when disabled using hyprctl keyword cursor:hide_on_key_press = false it still does not show up in screenshots, it just disappears before it freezes with the -z option.