This commit is contained in:
Lilith 2026-06-21 14:34:07 +02:00
parent 2c6495ed52
commit 0057730958
No known key found for this signature in database
GPG key ID: 272C807BD91F8446
2 changed files with 30 additions and 24 deletions

View file

@ -8,38 +8,38 @@
{
options.desktop.touchSupport = lib.mkEnableOption "Enables touch-related features";
config.wayland.windowManager.hyprland = lib.mkIf config.desktop.touchSupport {
plugins = [ hyprgrass.packages.${pkgs.stdenv.hostPlatform.system}.default ];
# plugins = [ hyprgrass.packages.${pkgs.stdenv.hostPlatform.system}.default ];
settings.plugin.touch_gestures = {
sensitivity = 4.0;
workspace_swipe = true;
workspace_swipe_fingers = 3;
workspace_swipe_cancel_ratio = 0.9;
# settings.plugin.touch_gestures = {
# sensitivity = 4.0;
# workspace_swipe = true;
# workspace_swipe_fingers = 3;
# workspace_swipe_cancel_ratio = 0.9;
long_press_delay = 400;
resize_on_border_long_press = true;
edge_margin = 30;
# long_press_delay = 400;
# resize_on_border_long_press = true;
# edge_margin = 30;
experimental.send_cancel = true;
# experimental.send_cancel = true;
hyprgrass-bind = [
# weird hack, because there is no explicit way to only show or hide special workplaces
", swipe:3:u, togglespecialworkspace, _tmp"
", swipe:3:u, togglespecialworkspace, keepass"
", swipe:3:u, exec, if (( $(pgrep keepassxc -c) < 2 )); then keepassxc; fi"
# hyprgrass-bind = [
# # weird hack, because there is no explicit way to only show or hide special workplaces
# ", swipe:3:u, togglespecialworkspace, _tmp"
# ", swipe:3:u, togglespecialworkspace, keepass"
# ", swipe:3:u, exec, if (( $(pgrep keepassxc -c) < 2 )); then keepassxc; fi"
", swipe:3:d, togglespecialworkspace, _tmp"
", swipe:3:d, togglespecialworkspace, _tmp"
# ", swipe:3:d, togglespecialworkspace, _tmp"
# ", swipe:3:d, togglespecialworkspace, _tmp"
", swipe:3:ru, sendshortcut, CONTROL, C,"
", swipe:3:rd, sendshortcut, CONTROL, V,"
# ", swipe:3:ru, sendshortcut, CONTROL, C,"
# ", swipe:3:rd, sendshortcut, CONTROL, V,"
", longpress:4, killactive"
# ", longpress:4, killactive"
", longpress:3, sendshortcut, , F,"
];
# ", longpress:3, sendshortcut, , F,"
# ];
hyprgrass-bindm = [ ", longpress:2, movewindow" ];
};
# hyprgrass-bindm = [ ", longpress:2, movewindow" ];
# };
};
}