1
0
Fork 0
forked from foxora/nix
flake-foxora/homes/modules/wm/hyprland/hypr/keybinds/virtual.conf
2026-02-12 18:53:24 +00:00

43 lines
1.4 KiB
Text

# a submap for emulating keys/buttons/functions on the keyboard or mouse
bind = $mod+shift+alt, a, submap, virtual
submap = virtual
# exit submap
bind = , escape, submap, reset
# emulates mouse buttons
bind = , z, exec, wlrctl pointer click left
bind = , x, exec, wlrctl pointer click right
bind = , s, exec, wlrctl pointer click middle
bind = , i, exec, wlrctl pointer click forward
bind = , o, exec, wlrctl pointer click back
# emulates the arrow keys using hjkl
#binde = , h, exec, wtype -k Left
#binde = , j, exec, wtype -k Down
#binde = , k, exec, wtype -k Up
#binde = , l, exec, wtype -k Right
# moves the mouse pointer
binde = , h, exec, wlrctl pointer move -30 0
binde = , j, exec, wlrctl pointer move 0 30
binde = , k, exec, wlrctl pointer move 0 -30
binde = , l, exec, wlrctl pointer move 30 0
# moves the mouse pointer in little steps
binde = alt, h, exec, wlrctl pointer move -15 0
binde = alt, j, exec, wlrctl pointer move 0 15
binde = alt, k, exec, wlrctl pointer move 0 -15
binde = alt, l, exec, wlrctl pointer move 15 0
# emulates scrolling with mouse
binde = , e, exec, wlrctl pointer scroll 0 -15 # scroll up
binde = , y, exec, wlrctl pointer scroll 0 15 # scroll down
binde = alt, e, exec, wlrctl pointer scroll -15 0 # scroll left
binde = alt, y, exec, wlrctl pointer scroll 0 15 # scroll right
# catches all other keys and keeps us in the submap
bind = , catchall, submap, virtual
submap = reset