feat: move scripts to packages

This commit is contained in:
Ahwx 2025-05-26 16:44:33 +02:00
parent 0a0ebce67a
commit 995a79e600
4 changed files with 12 additions and 19 deletions

View file

@ -19,24 +19,5 @@
done
'';
};
"/home/${username}/.local/bin/setbg" = {
executable = true;
text = ''
#!/usr/bin/env bash
magick convert "$1" ~/.local/share/bg.png
swww img ~/.local/share/bg.png --transition-type fade
'';
};
"/home/${username}/.local/bin/walp" = {
executable = true;
text = ''
#!/usr/bin/env bash
which swiv &>/dev/null && SIV=swiv || SIV=nsxiv # todo: switch to swiv, but that is not packaged for Nix yet.
$SIV -t ~/Pictures/wallpapers/others/*
'';
};
};
}