From 2da8360edea627e4a33caf3ceba2f28e3892457d Mon Sep 17 00:00:00 2001 From: Ingolf Wagner Date: Thu, 15 Apr 2021 06:50:16 +0200 Subject: [PATCH] use polygon-art/asteroids for background --- pkgs/polygon-art/default.nix | 9 ++++----- system/desktop/home-manager/xmonad.nix | 4 ++-- 2 files changed, 6 insertions(+), 7 deletions(-) diff --git a/pkgs/polygon-art/default.nix b/pkgs/polygon-art/default.nix index 190dd5b..6b88d2f 100644 --- a/pkgs/polygon-art/default.nix +++ b/pkgs/polygon-art/default.nix @@ -24,12 +24,11 @@ rustPlatform.buildRustPackage rec { [ cmake llvmPackages.clang llvmPackages.libclang pkg-config ]; meta = with stdenv.lib; { - description = - "An image generator unsing entropy and a JSON as configuration."; - homepage = "https://git.ingolf-wagner.de/palo/image-generator2"; - license = licenses.gpl3; + description = "Framework with examples to generate plotter friendly SVGs"; + homepage = "https://git.ingolf-wagner.de/palo/polygon-art.git"; + license = licenses.gpl3Plus; maintainers = [ maintainers.mrVanDalo ]; - platforms = platforms.all; + #platforms = platforms.all; }; } diff --git a/system/desktop/home-manager/xmonad.nix b/system/desktop/home-manager/xmonad.nix index e25c03e..6ff467d 100644 --- a/system/desktop/home-manager/xmonad.nix +++ b/system/desktop/home-manager/xmonad.nix @@ -19,11 +19,11 @@ let nixStartRedshift = "${pkgs.redshift}/bin/redshift -O 6100 -g 0.9:0.9:0.9 -b 0.9" nixResetRedshift = "${pkgs.redshift}/bin/redshift -x" nixSetCursorImage = "${pkgs.xorg.xsetroot}/bin/xsetroot -cursor_name left_ptr" - nixSetBackground = "${pkgs.image-generator}/bin/image-generator --line-size 2.0 ${background-repo}/e.json --height ${ + nixSetBackground = "${pkgs.polygon-art}/bin/asteroids --height ${ toString height } --width ${ toString width - } --output /dev/shm/background.png && ${pkgs.feh}/bin/feh --bg-scale /dev/shm/background.png" + } /dev/shm/background.png && ${pkgs.feh}/bin/feh --bg-scale /dev/shm/background.png" nixStartAlbert = "${pkgs.albert}/bin/albert" nixStartCopyq = "${pkgs.copyq}/bin/copyq" nixShowCopyq = "${pkgs.copyq}/bin/copyq show"