diff --git a/Droidnix/generated/hyprland/hyprland.nix b/Droidnix/generated/hyprland/hyprland.nix index 93eb432d6..1f2d8e95b 100644 --- a/Droidnix/generated/hyprland/hyprland.nix +++ b/Droidnix/generated/hyprland/hyprland.nix @@ -1,44 +1,23 @@ -{ - config, - pkgs, - lib, - user, - flakeRoot, - ... -}: +source = ./variables.conf +# source = ./behaviour.conf +# source = ./layout.conf +# source = ./animations.conf +# source = ./layer-rules.conf +# source = ./window-rules.conf +# source = ./monitor-rules.conf +# source = ./workspace-rules.conf +source = ./bindings.conf -let - hyprlandConfigDir = "${config.home-manager.users.${user.username}.xdg.configHome}/hypr"; - # Dynamically read all files in assets/hyprland/conf/ - hyprlandConfs = - lib.genAttrs (builtins.attrNames (builtins.readDir "${flakeRoot}/assets/hyprland/conf/hypr")) - (name: { - text = builtins.readFile "${flakeRoot}/assets/hyprland/conf/hypr/${name}"; - }); -in -{ - # NixOS: Enable Hyprland (optional) - programs.hyprland = { - enable = true; - }; +# source = ./exec-once.conf - # Home Manager: Hyprland-specific configurations - home-manager.users.${user.username} = { - # Use config.home-manager.users.${user.username} instead of userConfig - home.stateVersion = config.home-manager.users.${user.username}.stateVersion or "23.11"; # Default fallback - home.username = user.username; # Use the 'user' argument - home.homeDirectory = - config.home-manager.users.${user.username}.homeDirectory or "/home/${user.username}"; - - wayland.windowManager.hyprland = { - enable = true; - }; - - # Ensure the Hyprland config directory exists - xdg.configFile = { - "hypr/.keep" = { - text = ""; - }; - } // hyprlandConfs; - }; +general { + gaps_in = 2 + gaps_out = 4 + border_size = 2 + # Gradient syntax: color color angle (e.g. 45deg). :contentReference[oaicite:5]{index=5} + col.active_border = $blue $green 45deg + col.inactive_border = $inactive + layout = scrolling + resize_on_border = true + extend_border_grab_area = 20 # Makes it easier to "grab" the edge }