nixos-configs/modules/desktop/desktop-environment/home/style.nix

54 lines
1.1 KiB
Nix
Raw Normal View History

{
config,
2024-07-25 23:24:19 -04:00
lib,
pkgs,
self,
...
}: let
2024-07-25 23:24:19 -04:00
inherit (lib) mkIf;
cursorTheme = self.legacyPackages.${pkgs.system}.dracula.hyprcursor;
cursorThemeName = "Dracula-cursors";
hyprcursorThemeName = "Dracula-hyprcursor";
cursorSize = "24";
in {
2024-04-21 14:57:38 -04:00
imports = [
../../home/theme
2024-07-06 03:07:47 -04:00
../../home/hyprpaper.nix
2024-04-21 14:57:38 -04:00
];
home.file.".local/share/icons/${hyprcursorThemeName}".source = cursorTheme;
wayland.windowManager.hyprland = {
2024-07-25 23:24:19 -04:00
settings =
{
envd = [
"XCURSOR_THEME, ${cursorThemeName}"
"XCURSOR_SIZE, ${cursorSize}"
];
exec-once = [
"hyprctl setcursor ${hyprcursorThemeName} ${cursorSize}"
];
windowrule = [
"size 1231 950,title:^(Open Folder)$"
"float,title:^(Open Folder)$"
"size 1231 950,title:^(Open File)$"
"float,title:^(Open File)$"
];
layerrule = [
"noanim, selection"
];
}
// (
mkIf (config.home.username != "greeter") {
# This file should only be used for theming
source = ["${config.vars.configDir}/hypr/main.conf"];
}
);
};
}