2024-11-20 20:12:24 -05:00
|
|
|
self: {pkgs, ...}: let
|
|
|
|
inherit (self.lib.hypr) mkBind;
|
|
|
|
in {
|
2024-08-02 22:32:29 -04:00
|
|
|
config = {
|
|
|
|
wayland.windowManager.hyprland = {
|
2024-12-22 16:23:18 -05:00
|
|
|
plugins = [self.inputs.hyprland-plugins.packages.${pkgs.system}.hyprexpo];
|
2024-08-02 22:32:29 -04:00
|
|
|
|
|
|
|
settings = {
|
2024-11-20 20:12:24 -05:00
|
|
|
plugin.hyprexpo = {
|
|
|
|
columns = 3;
|
|
|
|
gap_size = 5;
|
|
|
|
bg_col = "rgb(111111)";
|
|
|
|
workspace_method = "center current"; # [center/first] [workspace] e.g. first 1 or center m+1
|
2024-08-02 22:32:29 -04:00
|
|
|
|
2024-11-20 20:12:24 -05:00
|
|
|
enable_gesture = true; # laptop touchpad
|
|
|
|
gesture_fingers = 3;
|
|
|
|
gesture_distance = 300; # how far is the "max"
|
|
|
|
gesture_positive = true; # positive = swipe down. Negative = swipe up.
|
2024-08-02 22:32:29 -04:00
|
|
|
};
|
|
|
|
|
|
|
|
bind = [
|
2024-11-20 20:12:24 -05:00
|
|
|
(mkBind {
|
|
|
|
modifier = "ALT";
|
|
|
|
key = "tab";
|
|
|
|
dispatcher = "hyprexpo:expo";
|
|
|
|
command = "toggle"; # can be: toggle, off/disable or on/enable
|
|
|
|
})
|
2024-08-02 22:32:29 -04:00
|
|
|
];
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
# For accurate stack trace
|
|
|
|
_file = ./hyprexpo.nix;
|
|
|
|
}
|