2026-06-07 19:03:11 +01:00
|
|
|
-- 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 = "com.mitchellh.ghostty",
|
|
|
|
|
},
|
2026-06-12 19:30:03 +01:00
|
|
|
scroll_mouse = 1.5,
|
2026-06-07 19:03:11 +01:00
|
|
|
})
|
|
|
|
|
|
|
|
|
|
-- Enable touchpad gestures for changing workspaces
|
|
|
|
|
-- See https://wiki.hyprland.org/Configuring/Gestures/
|
|
|
|
|
-- hl.gesture({
|
|
|
|
|
-- fingers = 3,
|
|
|
|
|
-- direction = "horizontal",
|
|
|
|
|
-- action = "workspace",
|
|
|
|
|
-- })
|
2026-06-09 21:53:08 +01:00
|
|
|
|
2026-06-09 22:15:47 +01:00
|
|
|
-- for _, tablet in ipairs({ "wacom-intuos-pro-s-pen", "wacom-intuos-pro-s-(wl)-pen" }) do
|
|
|
|
|
-- local monitor_id = "DP-1"
|
|
|
|
|
-- local monitor = hl.get_monitor(monitor_id)
|
|
|
|
|
-- local ratio = monitor.width / monitor.height
|
|
|
|
|
-- local tablet_size = { width = 157.48, height = 98.425 }
|
|
|
|
|
-- local new_tablet_height = tablet_size.width / ratio
|
|
|
|
|
--
|
|
|
|
|
-- hl.device({
|
|
|
|
|
-- name = tablet,
|
|
|
|
|
-- output = monitor_id,
|
|
|
|
|
-- active_area_size = { tablet_size.width, new_tablet_height },
|
|
|
|
|
-- active_area_position = { 0.0, (tablet_size.height - new_tablet_height) / 2 },
|
|
|
|
|
-- })
|
|
|
|
|
-- end
|