This commit is contained in:
2026-03-17 22:02:18 -07:00
parent ac41c90066
commit 15d31864db
5 changed files with 441 additions and 0 deletions

View File

@@ -0,0 +1,17 @@
#!/bin/bash
HOME=/home/$USER
CURRENT="$(cat ~/.wallpaper)"
CURRENT="${CURRENT/\/\///}"
OUTPUT_DIR="/truenas/sudacode/pictures/wallpapers/"
cp "$CURRENT" "$HOME/Pictures/wallpapers/favorites/"
if cp "$CURRENT" "$OUTPUT_DIR"; then
notify-send "favorite-wallpaper" "Wallpaper saved to $OUTPUT_DIR"
else
notify-send "favorite-wallpaper" "Failed to saved wallpaper to $OUTPUT_DIR"
fi
# ft: sh