2024-07-23 16:04:18 -04:00
|
|
|
{
|
|
|
|
config,
|
|
|
|
pkgs,
|
|
|
|
self,
|
|
|
|
...
|
|
|
|
}: let
|
2024-02-05 09:56:42 -05:00
|
|
|
inherit (config.vars) configDir;
|
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 = {
|
|
|
|
settings = {
|
2024-07-23 16:04:18 -04:00
|
|
|
envd = [
|
|
|
|
"XCURSOR_THEME, ${cursorThemeName}"
|
|
|
|
"XCURSOR_SIZE, ${cursorSize}"
|
|
|
|
];
|
2024-02-05 09:56:42 -05:00
|
|
|
|
|
|
|
exec-once = [
|
2024-07-23 16:04:18 -04:00
|
|
|
"hyprctl setcursor ${hyprcursorThemeName} ${cursorSize}"
|
2024-07-06 03:07:47 -04:00
|
|
|
"hyprpaper"
|
2024-02-05 09:56:42 -05:00
|
|
|
];
|
|
|
|
|
|
|
|
windowrule = [
|
|
|
|
"size 1231 950,title:^(Open Folder)$"
|
|
|
|
"float,title:^(Open Folder)$"
|
|
|
|
|
|
|
|
"size 1231 950,title:^(Open File)$"
|
|
|
|
"float,title:^(Open File)$"
|
|
|
|
];
|
|
|
|
|
2024-02-23 15:59:43 -05:00
|
|
|
layerrule = [
|
|
|
|
"noanim, selection"
|
|
|
|
];
|
|
|
|
|
2024-02-05 09:56:42 -05:00
|
|
|
# This file should only be used for theming
|
|
|
|
source = ["${configDir}/hypr/main.conf"];
|
|
|
|
};
|
|
|
|
};
|
|
|
|
}
|