💾 Archived View for hajime.4teri.de › dotfiles › file › scripts › change_wallpaper.sh.gmi captured on 2021-12-03 at 14:04:38. Gemini links have been rewritten to link to archived content

View Raw

More Information

-=-=-=-=-=-=-

change_wallpaper.sh - dotfiles - Collection of my dotfiles

Log

Files

Refs

---

change_wallpaper.sh (386B)

---

1 #! /bin/sh

2 touch /home/zocki/.wallpaper_change

3 date=$(date +%Y-%m-%d)

4 time=$(date +%H:%M:%S)

5 dir="/home/zocki/wallpapers"

6 wallpaper="$dir/$1.png"

7 ln -sf "$wallpaper" /home/zocki/.wallpaper.png

8 num="$(echo "$1 + 1" | calc -p)"

9 name="$(lecho -c -f /home/zocki/.wallpapermap -l "$num" | trim)"

10 echo "[Manual Change] $date @ $time -> $wallpaper ($name)" >> /home/zocki/.config/wallpaperlog

generated w/ stagit-gemini