From 4a3bf6ad649d0b0ad364e4ff40d6fb0176951280 Mon Sep 17 00:00:00 2001 From: hesam-init Date: Wed, 4 Dec 2024 22:54:30 +0330 Subject: [PATCH] feat: laptop touchpad gestures --- .../dotfiles/hypr/configs/devices.conf | 3 --- .../dotfiles/hypr/configs/settings.conf | 18 +++++++++++++++++- hypr-configs/dotfiles/hypr/hyprland.conf | 1 - 3 files changed, 17 insertions(+), 5 deletions(-) delete mode 100644 hypr-configs/dotfiles/hypr/configs/devices.conf diff --git a/hypr-configs/dotfiles/hypr/configs/devices.conf b/hypr-configs/dotfiles/hypr/configs/devices.conf deleted file mode 100644 index f718b68..0000000 --- a/hypr-configs/dotfiles/hypr/configs/devices.conf +++ /dev/null @@ -1,3 +0,0 @@ -# ----------------------------------------------------- -# Mice : hyprctl devices -# ----------------------------------------------------- diff --git a/hypr-configs/dotfiles/hypr/configs/settings.conf b/hypr-configs/dotfiles/hypr/configs/settings.conf index cfd7dc7..536ce5c 100644 --- a/hypr-configs/dotfiles/hypr/configs/settings.conf +++ b/hypr-configs/dotfiles/hypr/configs/settings.conf @@ -18,6 +18,23 @@ general { allow_tearing = false } +gestures { + workspace_swipe = true + workspace_swipe_fingers = 3 + workspace_swipe_distance = 500 + workspace_swipe_invert = true + workspace_swipe_min_speed_to_force = 30 + workspace_swipe_cancel_ratio = 0.5 + workspace_swipe_create_new = true + workspace_swipe_forever = true +} + +binds { + workspace_back_and_forth = true + allow_workspace_cycles = true + pass_mouse_when_bound = false +} + misc { middle_click_paste = false focus_on_activate = false @@ -30,7 +47,6 @@ misc { vfr = false } - debug { overlay = false } \ No newline at end of file diff --git a/hypr-configs/dotfiles/hypr/hyprland.conf b/hypr-configs/dotfiles/hypr/hyprland.conf index 3d6f9ae..54ae3d9 100644 --- a/hypr-configs/dotfiles/hypr/hyprland.conf +++ b/hypr-configs/dotfiles/hypr/hyprland.conf @@ -27,7 +27,6 @@ source = ~/.config/hypr/configs/mouse.conf # ----------------------------------------------------- source = ~/.config/hypr/configs/settings.conf -source = ~/.config/hypr/configs/devices.conf source = ~/.config/hypr/configs/decoration/export.conf source = ~/.config/hypr/configs/keybinds.conf source = ~/.config/hypr/configs/rules.conf