2024-07-23 16:04:18 -04:00
|
|
|
{
|
|
|
|
config,
|
2024-07-25 23:24:19 -04:00
|
|
|
lib,
|
2024-07-23 16:04:18 -04:00
|
|
|
pkgs,
|
|
|
|
self,
|
|
|
|
...
|
|
|
|
}: let
|
2024-07-25 23:24:19 -04:00
|
|
|
inherit (lib) mkIf;
|
2024-07-23 16:04:18 -04:00
|
|
|
|
|
|
|
cursorTheme = self.legacyPackages.${pkgs.system}.dracula.hyprcursor;
|
|
|
|
cursorThemeName = "Dracula-cursors";
|
|
|
|
hyprcursorThemeName = "Dracula-hyprcursor";
|
|
|
|
cursorSize = "24";
|
2024-02-05 09:56:42 -05:00
|
|
|
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
|
|
|
];
|
2024-02-05 09:56:42 -05:00
|
|
|
|
2024-07-23 16:04:18 -04:00
|
|
|
home.file.".local/share/icons/${hyprcursorThemeName}".source = cursorTheme;
|
|
|
|
|
2024-02-05 09:56:42 -05:00
|
|
|
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"];
|
|
|
|
}
|
|
|
|
);
|
2024-02-05 09:56:42 -05:00
|
|
|
};
|
|
|
|
}
|