From f24c21b7871a070f033d60882dafcbdf473584bc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Patrick=20Gro=C3=9Fmann?= Date: Tue, 17 Oct 2023 12:15:31 +0200 Subject: [PATCH] feat(wayland): more sway conf --- users/common/graphical/Xorg/i3.nix | 1 - users/common/graphical/wayland/sway.nix | 11 +++++++++++ 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/users/common/graphical/Xorg/i3.nix b/users/common/graphical/Xorg/i3.nix index 93937fe..c77e541 100644 --- a/users/common/graphical/Xorg/i3.nix +++ b/users/common/graphical/Xorg/i3.nix @@ -29,7 +29,6 @@ maim = "${pkgs.maim}/bin/maim -qs -b 1 --hidecursor"; in { "Menu" = "exec ${cfg.menu}"; - "${cfg.modifier}+c" = "exec ${cfg.menu}"; "${cfg.modifier}+F12" = "exec " + toString ( diff --git a/users/common/graphical/wayland/sway.nix b/users/common/graphical/wayland/sway.nix index a03af94..d32c8ee 100644 --- a/users/common/graphical/wayland/sway.nix +++ b/users/common/graphical/wayland/sway.nix @@ -33,11 +33,15 @@ repeat_rate = "60"; accel_profile = "flat"; pointer_accel = "0.3"; + tap = "enabled"; }; "type:touchpad" = { pointer_accel = "0.5"; natural_scroll = "enabled"; }; + "type:touch" = { + map_to_output = "eDP-1"; + }; }; keybindings = let cfg = config.wayland.windowManager.sway.config; @@ -79,6 +83,13 @@ } .${nixosConfig.node.name} or {}; + extraConfig = let + cfg = config.wayland.windowManager.sway.config; + in '' + bindgesture swipe:3:left workpace next + bindgesture swipe:3:right workpace prev + bindgesture pinch:4:outward exec ${cfg.menu} + ''; }; # Cursor invisible home.sessionVariables = {