Removed wallpapers, now pulling them from seperate git repo

This commit is contained in:
Tyler Kelley
2024-01-17 00:50:43 -06:00
parent 6ed3deedfd
commit ad241873c2
14 changed files with 65 additions and 67 deletions

View File

@ -1,24 +1,20 @@
{ pkgs }:
{ pkgs, wallpaperDir, }:
pkgs.writeShellScriptBin "wallsetter" ''
TIMEOUT=120
OSRELEASE=$(cat /etc/os-release | grep nixos | shuf -n 1)
FILETYPE="l"
TIMEOUT=720
TRANSITION1="--transition-type wave --transition-angle 120 --transition-step 30"
TRANSITION2="--transition-type wipe --transition-angle 30 --transition-step 30"
TRANSITION3="--transition-type center --transition-step 30"
TRANSITION4="--transition-type outer --transition-pos 0.3,0.8 --transition-step 30"
TRANSITION5="--transition-type wipe --transition-angle 270 --transition-step 30"
[[ ! -z "$OSRELEASE" ]] && FILETYPE="l" || FILETYPE="f"
WALLPAPER=$(find $HOME/Pictures/Wallpapers -type $FILETYPE | shuf -n 1)
WALLPAPER=$(find ${wallpaperDir}/* -type f | shuf -n 1)
PREVIOUS=$WALLPAPER
while true;
do
if [ $WALLPAPER == $PREVIOUS ]
then
WALLPAPER=$(find $HOME/Pictures/Wallpapers -type $FILETYPE | shuf -n 1)
WALLPAPER=$(find ${wallpaperDir}/* -type f | shuf -n 1)
else
PREVIOUS=$WALLPAPER
NUM=$(shuf -i 1-5 -n 1)