feat(wayland): more sway conf

This commit is contained in:
Patrick Großmann 2023-10-17 12:15:31 +02:00
parent 59a76c7ff3
commit f24c21b787
Signed by: patrick
GPG key ID: 451F95EFB8BECD0F
2 changed files with 11 additions and 1 deletions

View file

@ -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 (

View file

@ -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 = {