nixos-configs/modules/desktop/environment/home/hyprexpo.nix
matt1432 627f9c31f6
All checks were successful
Discord / discord commits (push) Has been skipped
fix(hypr): override stdenv for hyprlandPlugins
2024-12-17 18:14:14 -05:00

38 lines
1.1 KiB
Nix

self: {pkgs, ...}: let
inherit (self.lib.hypr) mkBind;
in {
config = {
wayland.windowManager.hyprland = {
# FIXME: https://pr-tracker.nelim.org/?pr=365776
plugins = [(self.inputs.hyprland-plugins.packages.${pkgs.system}.hyprexpo.override {
hyprlandPlugins = pkgs.hyprlandPlugins;
})];
settings = {
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
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.
};
bind = [
(mkBind {
modifier = "ALT";
key = "tab";
dispatcher = "hyprexpo:expo";
command = "toggle"; # can be: toggle, off/disable or on/enable
})
];
};
};
};
# For accurate stack trace
_file = ./hyprexpo.nix;
}