Add a cursor zoom 1:1 gesture
Discussion link
https://github.com/hyprwm/Hyprland/discussions/11633
Description
As title, trackpad gestures could include cursor zoom.
I'm trying to use the dispatcher with exec to emulate it, but have as a builtin would be better.
Maybe, another new gesture live or continuous, that works like dispatcher but while the gesture is happening instead of after it ends would be interesting as well, we would be able to control volume and other "knobs" with gestures.
@ArthurJ were you able to use dispatcher with gestures? I've been trying to do it but it doesn't seems to work,
gesture = 3, pinch,dispatcher, exec quickshell:overviewToggle
I settle for pinch with dispatcher and exec using hypr-zoom. Not a great solution but good enough for what I need.
gesture = 4, pinch, dispatcher, exec, hypr-zoom -duration=600 -steps=150 -easing=OutBack -easingOut=InBack -interp=Log
@ArthurJ were you able to use dispatcher with gestures? I've been trying to do it but it doesn't seems to work,
gesture = 3, pinch,dispatcher, exec quickshell:overviewToggle
You have forgotten a comma after exec, try this gesture = 3, pinch, dispatcher, exec, quickshell:overviewToggle,
Anyway, if you try it with 2 it works, but with 3 I can't get it to work.
I'm using this, in case it's useful to anyone
gesture = 4, up, dispatcher, exec, hyprctl keyword cursor:zoom_factor "$(hyprctl getoption cursor:zoom_factor | awk 'NR==1 {factor = $2; if (factor < 1) {factor = 1}; print factor * 1.5}')"
gesture = 4, down, dispatcher, exec, hyprctl keyword cursor:zoom_factor "$(hyprctl getoption cursor:zoom_factor | awk 'NR==1 {factor = $2; if (factor < 1) {factor = 1}; print factor / 1.5}')"