mirror of
https://github.com/AvengeMedia/DankMaterialShell.git
synced 2026-06-07 19:59:14 -04:00
feat(Hyprland): add touchpad gesture support via DMS default configs
This commit is contained in:
@@ -112,6 +112,9 @@ hl.bind("SUPER + mouse_up", hl.dsp.focus({ workspace = "e-1" }))
|
||||
hl.bind("SUPER + CTRL + mouse_down", hl.dsp.window.move({ workspace = "e+1" }))
|
||||
hl.bind("SUPER + CTRL + mouse_up", hl.dsp.window.move({ workspace = "e-1" }))
|
||||
|
||||
-- === Touchpad Gestures ===
|
||||
hl.gesture({ fingers = 3, direction = "horizontal", action = "workspace" })
|
||||
|
||||
-- === Numbered Workspaces ===
|
||||
hl.bind("SUPER + 1", hl.dsp.focus({ workspace = "1" }))
|
||||
hl.bind("SUPER + 2", hl.dsp.focus({ workspace = "2" }))
|
||||
|
||||
@@ -13,6 +13,10 @@ hl.config({
|
||||
input = {
|
||||
kb_layout = "us",
|
||||
numlock_by_default = true,
|
||||
touchpad = {
|
||||
tap_to_click = true,
|
||||
natural_scroll = true,
|
||||
},
|
||||
},
|
||||
general = {
|
||||
gaps_in = 5,
|
||||
|
||||
@@ -48,6 +48,13 @@ fragments.
|
||||
keyboard shortcuts in `dms/binds-user.lua`, or use the Keyboard Shortcuts page in
|
||||
DMS Settings.
|
||||
|
||||
Stock configs include a 3-finger horizontal touchpad gesture for workspace
|
||||
switching (`hl.gesture` in `dms/binds.lua`) and basic touchpad settings
|
||||
(`tap_to_click`, `natural_scroll` in `hyprland.lua`). To customize or disable
|
||||
gestures, add your own `hl.gesture(...)` lines to `dms/binds-user.lua`, or unset
|
||||
a stock gesture with `action = "unset"` matching the original fingers,
|
||||
direction, and modifiers.
|
||||
|
||||
Most other existing non-empty Lua fragments are preserved.
|
||||
|
||||
## Legacy Config Migration
|
||||
|
||||
Reference in New Issue
Block a user