diff --git a/packages/scripts/chpaper.sh b/packages/scripts/chpaper.sh index 242cb40..6ad1257 100755 --- a/packages/scripts/chpaper.sh +++ b/packages/scripts/chpaper.sh @@ -16,5 +16,9 @@ random_paper() { fi } -convert "$(random_paper)" /tmp/wallpaper.jpg && swww img --transition-step 2 --transition-type random --transition-duration 1 "/tmp/wallpaper.jpg" +swww img \ + --transition-type any \ + --transition-step 2 \ + --transition-duration 2 \ + "$(random_paper)" diff --git a/packages/scripts/default.nix b/packages/scripts/default.nix index 9d7ea25..0a4c581 100644 --- a/packages/scripts/default.nix +++ b/packages/scripts/default.nix @@ -1,18 +1,17 @@ { lib , stdenvNoCC , makeWrapper -, libnotify -, rofi-wayland -, tmux -, kitty -, imagemagick -, hyprland -, swww -, jq , curl -, ytfzf +, hyprland +, jq +, kitty +, libnotify , libsecret +, rofi-wayland +, swww +, tmux , ueberzugpp +, ytfzf , }: stdenvNoCC.mkDerivation { @@ -48,7 +47,7 @@ stdenvNoCC.mkDerivation { postInstall = '' wrapProgram $out/bin/power-menu --prefix PATH : ${lib.makeBinPath [libnotify rofi-wayland hyprland]} wrapProgram $out/bin/tmux-sessions --prefix PATH : ${lib.makeBinPath [tmux kitty rofi-wayland]} - wrapProgram $out/bin/chpaper --prefix PATH : ${lib.makeBinPath [imagemagick swww]} + wrapProgram $out/bin/chpaper --prefix PATH : ${lib.makeBinPath [swww]} wrapProgram $out/bin/wallhaven --prefix PATH : ${lib.makeBinPath [jq curl libsecret]} wrapProgram $out/bin/youtube --prefix PATH : ${lib.makeBinPath [kitty ytfzf rofi-wayland ueberzugpp]} '';