mirror of
https://gitlab.com/Zaney/zaneyos.git
synced 2025-08-16 00:37:55 +02:00
Removed wallpapers, now pulling them from seperate git repo
This commit is contained in:
@ -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)
|
||||
|
Reference in New Issue
Block a user