tweak(qtile): specify wallpaper in Nix

This commit is contained in:
Infinidoge 2023-05-22 01:40:13 -04:00
parent 3a4ab51731
commit 8bfd18f4ff
3 changed files with 14 additions and 3 deletions

View file

@ -68,7 +68,18 @@ with lib;
image_size="470px"
'';
} // optionalAttrs main.info.graphical {
"qtile".source = ./qtile;
"qtile".source = pkgs.substituteSubset {
src = ./qtile;
files = [ "config.py" ];
wallpaper = pkgs.fetchurl {
name = "BotanWallpaper.jpg";
# Source: https://www.pixiv.net/en/artworks/86093828
url = "https://safebooru.org//images/3159/6c2d22b1fcac19a679de61f713c56503bca5aad9.jpg";
sha256 = "sha256-3oVx9k+IN8GI8EWx3kPiQWdPGSO645abrEIL8C6sNq8=";
};
wallpaper_mode = "fill";
};
"blugon".source = ./blugon;
};

View file

@ -666,8 +666,8 @@ screens = [
size=20,
opacity=1.0,
),
wallpaper="~/.config/qtile/images/BotanBackground.jpg",
wallpaper_mode="fill",
wallpaper="@wallpaper@",
wallpaper_mode="@wallpaper_mode@",
)
for i in range(
int(run_command("xrandr --listmonitors | grep 'Monitors:' | awk {'print $2'}"))

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.3 MiB