[Asahi] Enable gestures to switch workspaces.

Signed-off-by: jmug <u.g.a.mariano@gmail.com>
This commit is contained in:
jmug
2025-06-05 00:27:43 -07:00
parent f124e36c1a
commit 1b5703b2b2
+14 -6
View File
@@ -1,4 +1,9 @@
{ ... } : { { pkgs, ... } : {
home.packages = with pkgs; [
hyprshot
];
# TODO: Move swaync to its own module if it ever gets more complex than just enalbement.
services.swaync.enable = true;
wayland.windowManager.hyprland.enable = true; wayland.windowManager.hyprland.enable = true;
wayland.windowManager.hyprland.settings = { wayland.windowManager.hyprland.settings = {
monitor = [ monitor = [
@@ -81,7 +86,7 @@
disable_hyprland_logo = true; # If true disables the random hyprland logo / anime girl background. :( disable_hyprland_logo = true; # If true disables the random hyprland logo / anime girl background. :(
}; };
# https://wiki.hyprland.org/Configuring/Variables/#input # https://wiki.hyprland.org/Configuring/Variables/#input
input = { input = {
kb_layout = "us"; kb_layout = "us";
@@ -99,7 +104,9 @@
}; };
gestures = { gestures = {
workspace_swipe = false; workspace_swipe = true;
workspace_swipe_fingers = 3;
workspace_swipe_distance = 150;
}; };
"$mainMod" = "SUPER"; # Sets "Windows" key as main modifier "$mainMod" = "SUPER"; # Sets "Windows" key as main modifier
@@ -110,9 +117,10 @@
"$mainMod, Q, killactive," "$mainMod, Q, killactive,"
"$mainMod SHIFT, Q, exit," "$mainMod SHIFT, Q, exit,"
# "$mainMod, E, exec, $fileManager" # "$mainMod, E, exec, $fileManager"
"$mainMod, V, togglefloating," # "$mainMod, V, togglefloating,"
"$mainMod, P, pseudo," # dwindle "$mainMod SHIFT, P, exec, hyprshot -m region"
"$mainMod, J, togglesplit," # dwindle "$mainMod, P, exec, hyprshot -m output"
# "$mainMod, J, togglesplit," # dwindle
# Move focus with mainMod + arrow keys # Move focus with mainMod + arrow keys
"$mainMod, M, movefocus, l" "$mainMod, M, movefocus, l"