Skip to content

Commit

Permalink
[hypr] expose paper config
Browse files Browse the repository at this point in the history
  • Loading branch information
ejiek committed Nov 8, 2023
1 parent ef55afa commit 0f25538
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 5 deletions.
7 changes: 7 additions & 0 deletions hosts/ePower/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,13 @@
"9, monitor:HDMI-A-1"
"10, monitor:HDMI-A-1, default:true"
];
paperConfig = ''
ipc = off
preload = /home/ejiek/pictures/bg.jpg
preload = /home/ejiek/pictures/bg-right.jpg
wallpaper = DP-2,contain:/home/ejiek/pictures/bg.jpg
wallpaper = HDMI-A-1,contain:/home/ejiek/pictures/bg-right.jpg
'';
};
joshuto.enable = true;
nvim.enable = true;
Expand Down
15 changes: 10 additions & 5 deletions modules/hyprland/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,15 @@ in {
type = types.str;
default = "";
};
hypr.paperConfig = mkOption {
description = "Wallpapers setup";
type = types.str;
default = ''
ipc = off
preload = /home/ejiek/pictures/bg.jpg
wallpaper = ,contain:/home/ejiek/pictures/bg.jpg
'';
};
};

# if my-config.template.desktop.gnome.enable is set to true
Expand Down Expand Up @@ -318,11 +327,7 @@ in {
};

home.file = {
"./.config/hypr/hyprpaper.conf".text = ''
ipc = off
preload = /home/ejiek/pictures/bg.jpg
wallpaper = ,contain:/home/ejiek/pictures/bg.jpg
'';
"./.config/hypr/hyprpaper.conf".text = config.my-config.hypr.paperConfig;
};

};
Expand Down

0 comments on commit 0f25538

Please sign in to comment.