hypr dots
This commit is contained in:
parent
98d71e0170
commit
7bca3bbe77
10 changed files with 560 additions and 471 deletions
34
dots/.config/hypr/hyprpaper.conf.nix
Normal file
34
dots/.config/hypr/hyprpaper.conf.nix
Normal file
|
|
@ -0,0 +1,34 @@
|
|||
{
|
||||
lib,
|
||||
config,
|
||||
...
|
||||
}: let
|
||||
inherit (lib) mkIf mkEnableOption;
|
||||
inherit (builtins) concatStringsSep;
|
||||
|
||||
cfg = config.horseman.dots.hypr.hyprpaper;
|
||||
username = config.horseman.username;
|
||||
hypr = config.horseman.wm.hyprland.config;
|
||||
in {
|
||||
options = {
|
||||
horseman.dots.hypr.hyprpaper = {
|
||||
enable = mkEnableOption "~/.config/hypr/hyprpaper.conf";
|
||||
};
|
||||
};
|
||||
|
||||
config = mkIf cfg.enable {
|
||||
home-manager.users.${username}.xdg.configFile."hypr/hyprpaper.conf".text = ''
|
||||
${concatStringsSep "\n" (map (dis:
|
||||
if dis.wallpaper != null
|
||||
then ''
|
||||
preload = ${dis.wallpaper}
|
||||
wallpaper = ${dis.output}, ${dis.wallpaper}
|
||||
''
|
||||
else "")
|
||||
hypr.monitors.displays)}
|
||||
|
||||
preload = /home/${username}/nix-config/misc/wallpaper.jpg
|
||||
wallpaper = , /home/${username}/nix-config/misc/wallpaper.jpg
|
||||
'';
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue