From 617685753231f1d7d5be59f3bd422a7e879c450d Mon Sep 17 00:00:00 2001 From: timoxa0 Date: Wed, 20 Nov 2024 22:08:23 +0500 Subject: [PATCH] hyprland: move input to devices.conf --- dot-config/hypr/decorations.conf | 12 ------------ dot-config/hypr/devices.conf | 26 ++++++++++++++++++++++++++ dot-config/hypr/hyprland.conf | 1 + 3 files changed, 27 insertions(+), 12 deletions(-) create mode 100644 dot-config/hypr/devices.conf diff --git a/dot-config/hypr/decorations.conf b/dot-config/hypr/decorations.conf index cb89e04..342f77f 100644 --- a/dot-config/hypr/decorations.conf +++ b/dot-config/hypr/decorations.conf @@ -59,15 +59,3 @@ misc { disable_hyprland_logo = true } -input { - kb_layout = us, ru - kb_variant = - kb_model = - kb_options = grp:caps_toggle - kb_rules = - follow_mouse = 1 - sensitivity = 0 - touchpad { - natural_scroll = false - } -} diff --git a/dot-config/hypr/devices.conf b/dot-config/hypr/devices.conf new file mode 100644 index 0000000..6b9459b --- /dev/null +++ b/dot-config/hypr/devices.conf @@ -0,0 +1,26 @@ +input { + kb_layout = us, ru + kb_variant = + kb_model = + kb_options = grp:caps_toggle + kb_rules = + follow_mouse = 1 + sensitivity = 0 +} + +gestures { + workspace_swipe_touch = true + workspace_swipe_cancel_ratio = 0.1 +} + +device { + name = nvtcapacitivetouchscreen + transform = 3 + output = DSI-1 +} + +device { + name = nvtcapacitivepen + transform = 3 + output = DSI-1 +} diff --git a/dot-config/hypr/hyprland.conf b/dot-config/hypr/hyprland.conf index 8b25716..ecba932 100644 --- a/dot-config/hypr/hyprland.conf +++ b/dot-config/hypr/hyprland.conf @@ -18,4 +18,5 @@ source = decorations.conf source = env.conf source = binds.conf source = rules.conf +source = devices.conf exec-once = ~/.config/hypr/bin/autostart