remove bloat config setting

This commit is contained in:
Noa Aarts 2024-05-31 16:01:44 +02:00
parent b5054673af
commit 2a897f93b7
2 changed files with 100 additions and 105 deletions

View file

@ -5,9 +5,7 @@ in
{ {
options.modules.automapaper = { options.modules.automapaper = {
enable = lib.mkEnableOption "enable automapaper"; enable = lib.mkEnableOption "enable automapaper";
displays = lib.mkOption { hyprland = lib.mkEnableOption "enable hyprland exec-once integration";
type = with lib.types; listOf str;
};
configurations = lib.mkOption { configurations = lib.mkOption {
description = "automapaper configurations per monitor"; description = "automapaper configurations per monitor";
type = with lib.types; attrsOf (submodule { 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"; description = "the shader executed to get the state for the initialisation, and re-initialisation steps";
}; };
state = lib.mkOption { 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"; description = "the shader executed to increment the state to the next generation";
}; };
display = lib.mkOption { display = lib.mkOption {
type = str; type = str; # TODO: make filepath possible as well
description = "the shader executed to display the state to the monitor"; description = "the shader executed to display the state to the monitor";
}; };
horizontal = lib.mkOption { horizontal = lib.mkOption {
type = int; type = int; # TODO: make filepath possible as well
description = "the amount of horizontal cells in the state"; description = "the amount of horizontal cells in the state";
}; };
vertical = lib.mkOption { vertical = lib.mkOption {
@ -174,12 +172,14 @@ in
"DP-3" = conf; "DP-3" = conf;
"DP-2" = conf; "DP-2" = conf;
}; };
modules.automapaper.displays = wayland.windowManager.hyprland.settings.exec-once = lib.mkIf cfg.hyprland (
lib.mapAttrsToList (name: config: lib.mapAttrsToList (name: config:
"${ "${
inputs.automapaper.packages.${pkgs.system}.default inputs.automapaper.packages.${pkgs.system}.default
}/bin/automapaper -C ${ }/bin/automapaper -C ${
builtins.toFile "${name}.toml" config builtins.toFile "${name}.toml" config
}") displays; }") displays
}); );
}
);
} }

View file

@ -47,11 +47,8 @@ in
home.packages = with pkgs; [ home.packages = with pkgs; [
# I always want these with hyprland anyways # I always want these with hyprland anyways
libnotify # to enable the notify-send command 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 playerctl
]; ];
@ -80,9 +77,7 @@ in
"${pkgs.dunst}/bin/dunst" "${pkgs.dunst}/bin/dunst"
"${cfg.package}/bin/hyprctl dispatcher focusmonitor 1" "${cfg.package}/bin/hyprctl dispatcher focusmonitor 1"
"${pkgs.hypridle}/bin/hypridle" "${pkgs.hypridle}/bin/hypridle"
] ++ builtins.map (name: ];
"${inputs.automapaper.packages.${pkgs.system}.default}/bin/automapaper -C ${name}"
) config.modules.automapaper.displays;
general = { general = {
sensitivity = "1.2"; sensitivity = "1.2";
gaps_in = "2"; gaps_in = "2";