sway/wallpaper-unfree: Do not waifu2x wallpaper

I don’t have a screen wider than 1920 pixels and I only see my wallpaper
when switching to a new (empty) workspace.
This commit is contained in:
Simon Bruder 2021-01-04 12:40:31 +01:00
parent 3d73519a76
commit 2e33f18a3a
Signed by: simon
GPG key ID: 8D3C82F9F309F8EC

View file

@ -3,33 +3,14 @@ let
common = import ./common.nix;
solarized = common.colorschemes.solarized;
wallpaperUnfree = pkgs.stdenvNoCC.mkDerivation {
# Source: “境目” by 3211 on Pixiv: https://www.pixiv.net/en/artworks/39266182
wallpaperUnfree = pkgs.fetchurl {
name = "wallpaper-unfree";
src = pkgs.fetchurl {
url = "https://i.pximg.net/img-original/img/2013/10/22/04/25/37/39266182_p0.jpg";
sha256 = "053gc9jd4cbkkwgcirrhpzbn933dfh83l30p1sz55m5d8zx1lk65";
curlOpts = "--referer https://pixiv.net";
};
url = "https://i.pximg.net/img-original/img/2013/10/22/04/25/37/39266182_p0.jpg";
sha256 = "053gc9jd4cbkkwgcirrhpzbn933dfh83l30p1sz55m5d8zx1lk65";
curlOpts = "--referer https://pixiv.net";
nativeBuildInputs = [
pkgs.unstable.waifu2x-converter-cpp
];
# -o $out does not work (why?)
buildPhase = ''
waifu2x-converter-cpp -i $src -o wallpaper.png
'';
installPhase = ''
cp wallpaper.png $out
'';
dontUnpack = true;
dontConfigure = true;
dontFixup = true;
# Source: “境目” by 3211 on Pixiv: https://www.pixiv.net/en/artworks/39266182
meta.license = lib.licenses.unfree;
};
wallpaperFree = pkgs.fetchurl {