init (podpierdolenie)

This commit is contained in:
installer
2024-10-31 20:28:32 +01:00
commit 3224ea75aa
91 changed files with 15003 additions and 0 deletions

14
scripts/wallsetter.nix Normal file
View File

@@ -0,0 +1,14 @@
{pkgs, ...}:
pkgs.writeShellScriptBin "wallsetter" ''
for pid in $(pidof -o %PPID -x wallsetter); do
kill $pid
done
if ! [ -d ~/Pictures/Wallpapers ]; then notify-send -t 5000 "~/Pictures/Wallpapers does not exist" && exit 1; fi
if [ $(ls -1 ~/Pictures/Wallpapers | wc -l) -lt 1 ]; then notify-send -t 9000 "The wallpaper folder is expected to have more than 1 image. Exiting Wallsetter." && exit 1; fi
WALLPAPER=$(find ~/Pictures/Wallpapers -name '*' | awk '!/.git/' | tail -n +2 | shuf -n 1)
${pkgs.swww}/bin/swww img "$WALLPAPER" --transition-type random --transition-step 1 --transition-fps 60
''