refactor code structure
This commit is contained in:
@@ -0,0 +1,31 @@
|
||||
-- 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,
|
||||
})
|
||||
Reference in New Issue
Block a user