2 finger swipe for back/forward

On macos we use a 2-finger swipe gesture for going back or forward through the application. It works in almost any application. Linux has only Alt+arrow keys. Is there a ‘hyprland’ way of doing so or triggering keyboard shortcut with touchpad gesture is maximum i can get?
P.S. yeah, i use Vivaldi, the only browser that can’t traverse through history with touchpad so the thing is crucial for me

I don’t have a laptop to test his on, but maybe this work?

gesture = 2, left, dispatcher, exec, wtype -k XF86Forward
gesture = 2, right, dispatcher, exec, wtype -k XF86Back

nah, doesn’t work. wtype is installed and set up prior

tried to replicate other combinations with wtype, they work just fine