Lua
This commit is contained in:
@@ -0,0 +1,88 @@
|
||||
-- https://wiki.hyprland.org/Configuring/Variables/#input
|
||||
hl.config({
|
||||
input = {
|
||||
-- Use multiple keyboard layouts and switch between them with Left Alt + Right Alt
|
||||
kb_layout = "gb,ro",
|
||||
-- Use a specific keyboard variant if needed (e.g. intl for international keyboards)
|
||||
-- kb_variant = "intl",
|
||||
-- kb_model =
|
||||
kb_options = "compose:caps",
|
||||
-- kb_rules =
|
||||
|
||||
-- Change speed of keyboard repeat
|
||||
repeat_rate = 40,
|
||||
repeat_delay = 600,
|
||||
|
||||
-- Start with numlock on by default
|
||||
numlock_by_default = true,
|
||||
|
||||
follow_mouse = 1,
|
||||
|
||||
-- Increase sensitivity for mouse/trackpad (default: 0)
|
||||
sensitivity = 0, -- -1.0 - 1.0, 0 means no modification.
|
||||
|
||||
-- Turn off mouse acceleration (default: false)
|
||||
-- force_no_accel = true,
|
||||
|
||||
-- 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,
|
||||
|
||||
touchpad = {
|
||||
-- Use natural (inverse) scrolling
|
||||
natural_scroll = false,
|
||||
|
||||
-- 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,
|
||||
},
|
||||
},
|
||||
|
||||
misc = {
|
||||
key_press_enables_dpms = true, -- key press will trigger wake
|
||||
mouse_move_enables_dpms = true, -- mouse move will trigger wake
|
||||
},
|
||||
})
|
||||
|
||||
-- Scroll nicely in the terminal
|
||||
hl.window_rule({
|
||||
name = "Scroll nicely in the terminal",
|
||||
match = {
|
||||
class = "(Alacritty|kitty)",
|
||||
},
|
||||
scroll_touchpad = 1.5,
|
||||
})
|
||||
hl.window_rule({
|
||||
name = "Scroll nicely in the terminal",
|
||||
match = {
|
||||
class = "com.mitchellh.ghostty",
|
||||
},
|
||||
scroll_touchpad = 0.2,
|
||||
})
|
||||
|
||||
-- Enable touchpad gestures for changing workspaces
|
||||
-- See https://wiki.hyprland.org/Configuring/Gestures/
|
||||
-- hl.gesture({
|
||||
-- fingers = 3,
|
||||
-- direction = "horizontal",
|
||||
-- action = "workspace",
|
||||
-- })
|
||||
Reference in New Issue
Block a user