omarchy-config/configs/hypr/input.conf

61 lines
1.7 KiB
Plaintext

# Control your input devices
# See https://wiki.hypr.land/Configuring/Basics/Variables/#input
input {
# Use multiple keyboard layouts and switch between them with Left Alt + Right Alt
# kb_layout = us,dk,eu
# Use a specific keyboard variant if needed (e.g. intl for international keyboards)
# kb_variant = intl
kb_layout = dk
kb_options = compose:caps # ,grp:alts_toggle
# Change speed of keyboard repeat
repeat_rate = 40
repeat_delay = 250
# Start with numlock on by default
numlock_by_default = true
# Increase sensitivity for mouse/trackpad (default: 0)
# sensitivity = 0.35
# Turn off mouse acceleration (default: adaptive)
# accel_profile = flat
touchpad {
# Use natural (inverse) scrolling
# natural_scroll = true
# Use two-finger clicks for right-click instead of lower-right corner
clickfinger_behavior = true
# Control the speed of your scrolling
scroll_factor = 0.4
# Enable the touchpad while typing
# disable_while_typing = false
# Left-click-and-drag with three fingers
# drag_3fg = 1
}
}
# Scroll nicely in the terminal
windowrule = match:class (Alacritty|kitty|foot), scroll_touchpad 1.5
windowrule = match:class com.mitchellh.ghostty, scroll_touchpad 0.2
# Natural scroll for mouse only
device {
name = logitech-lenovo-usb-optical-mouse
natural_scroll = false
}
# 4-finger swipe: left → next workspace, right → previous workspace
gesture = 4, left, dispatcher, workspace, e+1
gesture = 4, right, dispatcher, workspace, e-1
# 3-finger swipe: left → next window, right → previous window
gesture = 3, left, dispatcher, cyclenext
gesture = 3, right, dispatcher, cyclenext, prev