mirror of
https://github.com/prdlk/dotfiles.git
synced 2026-11-02 19:32:43 +00:00
feat(config): add niri-style keybindings and layout adjustments
This commit is contained in:
1 parent
32d4fccb2b
commit
d8f5d10f05
4 files changed
+44
-13
No files matched your search
@@ -18,9 +18,25 @@ hl.config({
|
||||
input = {
|
||||
repeat_delay = 250,
|
||||
repeat_rate = 50,
|
||||
|
||||
-- niri has no focus-follows-mouse: hovering gives a window pointer focus
|
||||
-- (scroll goes there) but keyboard focus moves only on click. Also keeps
|
||||
-- the scrolling tape from jumping when the cursor brushes a neighbour.
|
||||
follow_mouse = 2,
|
||||
|
||||
-- niri: touchpad { natural-scroll; tap; }. Tap-to-click is libinput's
|
||||
-- default already.
|
||||
touchpad = {
|
||||
natural_scroll = true,
|
||||
},
|
||||
},
|
||||
})
|
||||
|
||||
-- niri's built-in touchpad gestures: three fingers sideways scroll the tape,
|
||||
-- up/down switch workspace.
|
||||
hl.gesture({ fingers = 3, direction = "horizontal", action = "scroll_move" })
|
||||
hl.gesture({ fingers = 3, direction = "vertical", action = "workspace" })
|
||||
|
||||
-- Keyboard layout and options.
|
||||
-- See https://wiki.hypr.land/Configuring/Basics/Variables/#input
|
||||
-- hl.config({
|
||||
@@ -68,13 +84,7 @@ hl.config({
|
||||
-- o.window("(Alacritty|kitty|foot)", { scroll_touchpad = 1.5 })
|
||||
-- o.window("com.mitchellh.ghostty", { scroll_touchpad = 0.2 })
|
||||
|
||||
-- Enable touchpad gestures for changing workspaces.
|
||||
-- See https://wiki.hypr.land/Configuring/Advanced-and-Cool/Gestures/
|
||||
-- hl.gesture({ fingers = 3, direction = "horizontal", action = "workspace" })
|
||||
|
||||
-- Enable touchpad gestures for moving focus (helpful on scrolling layout).
|
||||
-- hl.gesture({ fingers = 3, direction = "left", action = function() hl.dispatch(hl.dsp.focus({ direction = "l" })) end })
|
||||
-- hl.gesture({ fingers = 3, direction = "right", action = function() hl.dispatch(hl.dsp.focus({ direction = "r" })) end })
|
||||
-- Touchpad gestures live in the override block at the top of this file.
|
||||
|
||||
-- Tablets / pens.
|
||||
-- Hyprland maps a tablet across the *whole* monitor layout by default
|
||||
|
||||
Reference in new issue
Block a user