Krolyxon
Commit 1f1d979

Branches

Refs →

aurora.confighyprsourceinput.lua

79 lines · 1.7 KB · Lua

1-- source/input.lua
2
3--------------------------------------------------
4-- Global Input
5--------------------------------------------------
6
7hl.config({
8 input = {
9 kb_layout = "us",
10 kb_variant = "",
11 kb_model = "",
12 kb_options = "",
13 kb_rules = "",
14
15 follow_mouse = 1,
16
17 -- -1.0 .. 1.0
18 sensitivity = 0,
19
20 touchpad = {
21 natural_scroll = false,
22 },
23
24 repeat_delay = 300,
25 repeat_rate = 50,
26 },
27})
28
29--------------------------------------------------
30-- Gestures
31--------------------------------------------------
32
33hl.config({
34 gestures = {
35 -- swiping past the last workspace would create the next monitor's (11, 21, ...)
36 workspace_swipe_create_new = false,
37 },
38})
39
40-- 3-finger horizontal swipe: previous/next workspace on the focused monitor
41hl.gesture({
42 fingers = 3,
43 direction = "horizontal",
44 action = "workspace",
45})
46
47-- 4-finger horizontal swipe: drag the focused window to the previous/next workspace
48hl.gesture({
49 fingers = 4,
50 direction = "horizontal",
51 action = "move",
52})
53
54-- 3-finger up: aurora's workspace overview
55hl.gesture({
56 fingers = 3,
57 direction = "up",
58 action = function()
59 hl.dispatch(hl.dsp.exec_cmd("qs -c aurora ipc call shell overview"))
60 end,
61})
62
63-- 3-finger pinch: zoom around the cursor
64hl.gesture({
65 fingers = 3,
66 direction = "pinch",
67 action = "cursorZoom",
68 zoom_level = 2,
69 mode = "live",
70})
71
72--------------------------------------------------
73-- Per-device Configuration
74--------------------------------------------------
75
76hl.device({
77 name = "epic-mouse-v1",
78 sensitivity = -0.5,
79})