💾 Archived View for hajime.4teri.de › dotfiles › file › scripts › wallpaper.sh.gmi captured on 2021-12-03 at 14:04:38. Gemini links have been rewritten to link to archived content
-=-=-=-=-=-=-
wallpaper.sh - dotfiles - Collection of my dotfiles
---
wallpaper.sh (427B)
---
1 #! /bin/sh
2 date=$(date +%Y-%m-%d)
3 time=$(date +%H:%M:%S)
4 dir="/home/zocki/wallpapers"
5 lim="$(/usr/bin/ls $dir | grep -c png)"
6 num="$(rnum -p -r "$lim")"
7 rep="$(echo "$num + 1" | calc -p)"
8 wallpaper="$num.png"
9 name="$(lecho -c -f /home/zocki/.wallpapermap -l $rep | trim)"
10 ln -sf "$dir/$wallpaper" /home/zocki/.wallpaper.png
11 echo "[Automatic Change] $date @ $time -> $dir/$wallpaper ($name)" >> /home/zocki/.config/wallpaperlog
generated w/ stagit-gemini