remove bloat config setting
This commit is contained in:
parent
b5054673af
commit
2a897f93b7
2 changed files with 100 additions and 105 deletions
|
|
@ -5,9 +5,7 @@ in
|
|||
{
|
||||
options.modules.automapaper = {
|
||||
enable = lib.mkEnableOption "enable automapaper";
|
||||
displays = lib.mkOption {
|
||||
type = with lib.types; listOf str;
|
||||
};
|
||||
hyprland = lib.mkEnableOption "enable hyprland exec-once integration";
|
||||
configurations = lib.mkOption {
|
||||
description = "automapaper configurations per monitor";
|
||||
type = with lib.types; attrsOf (submodule {
|
||||
|
|
@ -17,15 +15,15 @@ in
|
|||
description = "the shader executed to get the state for the initialisation, and re-initialisation steps";
|
||||
};
|
||||
state = lib.mkOption {
|
||||
type = str;
|
||||
type = str; # TODO: make filepath possible as well
|
||||
description = "the shader executed to increment the state to the next generation";
|
||||
};
|
||||
display = lib.mkOption {
|
||||
type = str;
|
||||
type = str; # TODO: make filepath possible as well
|
||||
description = "the shader executed to display the state to the monitor";
|
||||
};
|
||||
horizontal = lib.mkOption {
|
||||
type = int;
|
||||
type = int; # TODO: make filepath possible as well
|
||||
description = "the amount of horizontal cells in the state";
|
||||
};
|
||||
vertical = lib.mkOption {
|
||||
|
|
@ -174,12 +172,14 @@ in
|
|||
"DP-3" = conf;
|
||||
"DP-2" = conf;
|
||||
};
|
||||
modules.automapaper.displays =
|
||||
wayland.windowManager.hyprland.settings.exec-once = lib.mkIf cfg.hyprland (
|
||||
lib.mapAttrsToList (name: config:
|
||||
"${
|
||||
inputs.automapaper.packages.${pkgs.system}.default
|
||||
}/bin/automapaper -C ${
|
||||
builtins.toFile "${name}.toml" config
|
||||
}") displays;
|
||||
});
|
||||
}") displays
|
||||
);
|
||||
}
|
||||
);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -47,11 +47,8 @@ in
|
|||
home.packages = with pkgs; [
|
||||
# I always want these with hyprland anyways
|
||||
libnotify # to enable the notify-send command
|
||||
wl-clipboard
|
||||
wl-clipboard # wl-copy and wl-paste
|
||||
|
||||
inputs.hyprpicker
|
||||
|
||||
hypridle # TODO: remove when fixed with config
|
||||
playerctl
|
||||
];
|
||||
|
||||
|
|
@ -80,9 +77,7 @@ in
|
|||
"${pkgs.dunst}/bin/dunst"
|
||||
"${cfg.package}/bin/hyprctl dispatcher focusmonitor 1"
|
||||
"${pkgs.hypridle}/bin/hypridle"
|
||||
] ++ builtins.map (name:
|
||||
"${inputs.automapaper.packages.${pkgs.system}.default}/bin/automapaper -C ${name}"
|
||||
) config.modules.automapaper.displays;
|
||||
];
|
||||
general = {
|
||||
sensitivity = "1.2";
|
||||
gaps_in = "2";
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue