changed wallpaper to fetchurl

This commit is contained in:
Bryan Ramos 2024-11-05 05:50:34 -05:00
parent 92869f833a
commit edaffee627
Signed by: bryan
GPG key ID: 6ABDCD144D6643C8
5 changed files with 12 additions and 14 deletions

View file

@ -3,10 +3,10 @@
with lib;
let
cfg = config.modules.user.gui.wm.hyprland;
wallpapers = builtins.path {
path = ./config/wallpapers;
name = "wallpapers";
wallpaper = builtins.fetchurl {
url = "https://images6.alphacoders.com/117/1174033.png";
sha256 = "1ph5m9s57076jx6042iipqx2ifzadmd5z4lf5l49wgq4jb92mp16";
};
in
@ -169,10 +169,10 @@ in
splash_offset = 2.0;
preload =
[ "${wallpapers}/${config.user.wallpaper}" ];
[ "${wallpaper}" ];
wallpaper = [
",${wallpapers}/${config.user.wallpaper}"
",${wallpaper}"
];
};
};

View file

@ -2,9 +2,10 @@
let
modifier = config.wayland.windowManager.sway.config.modifier;
wallpapers = builtins.path {
path = ./wallpapers;
name = "wallpapers";
wallpaper = builtins.fetchurl {
url = "https://images6.alphacoders.com/117/1174033.png";
sha256 = "1ph5m9s57076jx6042iipqx2ifzadmd5z4lf5l49wgq4jb92mp16";
};
in
@ -25,12 +26,12 @@ in
HDMI-A-1 = {
resolution = "1920x1080";
position = "0,0";
bg = "${wallpapers}/${config.user.wallpaper} fill";
bg = "${wallpaper} fill";
};
DP-1 = {
resolution = "1920x1080";
position = "1920,0";
bg = "${wallpapers}/${config.user.wallpaper} fill";
bg = "${wallpaper} fill";
};
};
modifier = "Mod1";