to add new layout (in this case farsi) for keyborad you can add below lines to ~/.config/hypr/hyprland.conf
input { kb_layout=us,ir # kb_options=grp:ctrl_semi_toggle # kb_options=grp:toggle kb_options=grp:shifts_toggle }
and also for swap workspace by swapping on touchpad you can add these lines to that file
gestures { workspace_swipe = true workspace_swipe_fingers = 3 # workspace_swipe_invert = true #workspace_swipe_min_speed_to_force=5 }