2024-10-21 12:31:30 +07:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
unstable,
|
|
|
|
config,
|
|
|
|
...
|
|
|
|
}:
|
2024-06-12 09:54:11 +07:00
|
|
|
let
|
|
|
|
cfg = config.profile.hyprland;
|
|
|
|
in
|
|
|
|
{
|
|
|
|
config = lib.mkIf cfg.enable {
|
2024-10-21 12:31:30 +07:00
|
|
|
home.packages = [ unstable.hyprpaper ];
|
2024-06-12 09:54:11 +07:00
|
|
|
|
|
|
|
home.file.".config/hypr/hyprpaper.conf".text =
|
|
|
|
let
|
|
|
|
recent_wallpaper = "${config.home.homeDirectory}/.cache/wallpaper/current";
|
|
|
|
in
|
2024-10-21 12:31:30 +07:00
|
|
|
# hyprlang
|
2024-06-12 09:54:11 +07:00
|
|
|
''
|
|
|
|
preload = ${recent_wallpaper}
|
|
|
|
wallpaper = ,${recent_wallpaper}
|
|
|
|
spash = false
|
|
|
|
ipc = on
|
|
|
|
'';
|
|
|
|
};
|
|
|
|
}
|