remove imagemagick dependency

This commit is contained in:
Adithya 2024-05-15 00:58:51 +05:30
parent 943b9cf2a6
commit c13dc7c2bf
Signed by: adtya
GPG key ID: B8857BFBA2C47B9C
2 changed files with 14 additions and 11 deletions

View file

@ -16,5 +16,9 @@ random_paper() {
fi 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)"

View file

@ -1,18 +1,17 @@
{ lib { lib
, stdenvNoCC , stdenvNoCC
, makeWrapper , makeWrapper
, libnotify
, rofi-wayland
, tmux
, kitty
, imagemagick
, hyprland
, swww
, jq
, curl , curl
, ytfzf , hyprland
, jq
, kitty
, libnotify
, libsecret , libsecret
, rofi-wayland
, swww
, tmux
, ueberzugpp , ueberzugpp
, ytfzf
, ,
}: }:
stdenvNoCC.mkDerivation { stdenvNoCC.mkDerivation {
@ -48,7 +47,7 @@ stdenvNoCC.mkDerivation {
postInstall = '' postInstall = ''
wrapProgram $out/bin/power-menu --prefix PATH : ${lib.makeBinPath [libnotify rofi-wayland hyprland]} 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/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/wallhaven --prefix PATH : ${lib.makeBinPath [jq curl libsecret]}
wrapProgram $out/bin/youtube --prefix PATH : ${lib.makeBinPath [kitty ytfzf rofi-wayland ueberzugpp]} wrapProgram $out/bin/youtube --prefix PATH : ${lib.makeBinPath [kitty ytfzf rofi-wayland ueberzugpp]}
''; '';