Files
hyprland-dotfiles/config/input.lua
T
2026-08-12 23:15:12 -07:00

32 lines
799 B
Lua

-- Keyboard, pointer, and touchpad defaults shared by all input devices.
hl.config({
input = {
kb_layout = "us",
kb_variant = "",
kb_model = "",
-- Turn Caps Lock into MOD3, which settings.lua exposes as Hyper.
kb_options = "caps:hyper",
kb_rules = "",
follow_mouse = 1,
sensitivity = 0,
touchpad = {
natural_scroll = false,
},
},
})
-- Three-finger horizontal swipes move between workspaces.
hl.gesture({
fingers = 3,
direction = "horizontal",
action = "workspace",
})
-- Example device-specific override retained from the original configuration.
-- It only applies when Hyprland sees a device with this exact name.
hl.device({
name = "epic-mouse-v1",
sensitivity = -0.5,
})