49 lines
1 KiB
Nix
49 lines
1 KiB
Nix
{
|
|
config,
|
|
pkgs,
|
|
self,
|
|
...
|
|
}: let
|
|
inherit (config.vars) configDir;
|
|
|
|
cursorTheme = self.legacyPackages.${pkgs.system}.dracula.hyprcursor;
|
|
cursorThemeName = "Dracula-cursors";
|
|
hyprcursorThemeName = "Dracula-hyprcursor";
|
|
cursorSize = "24";
|
|
in {
|
|
imports = [
|
|
../../home/theme
|
|
../../home/hyprpaper.nix
|
|
];
|
|
|
|
home.file.".local/share/icons/${hyprcursorThemeName}".source = cursorTheme;
|
|
|
|
wayland.windowManager.hyprland = {
|
|
settings = {
|
|
envd = [
|
|
"XCURSOR_THEME, ${cursorThemeName}"
|
|
"XCURSOR_SIZE, ${cursorSize}"
|
|
];
|
|
|
|
exec-once = [
|
|
"hyprctl setcursor ${hyprcursorThemeName} ${cursorSize}"
|
|
"hyprpaper"
|
|
];
|
|
|
|
windowrule = [
|
|
"size 1231 950,title:^(Open Folder)$"
|
|
"float,title:^(Open Folder)$"
|
|
|
|
"size 1231 950,title:^(Open File)$"
|
|
"float,title:^(Open File)$"
|
|
];
|
|
|
|
layerrule = [
|
|
"noanim, selection"
|
|
];
|
|
|
|
# This file should only be used for theming
|
|
source = ["${configDir}/hypr/main.conf"];
|
|
};
|
|
};
|
|
}
|