Files
dotfiles/projects/scripts/favorite-wallpaper.sh
2026-03-17 22:02:18 -07:00

18 lines
401 B
Bash
Executable File

#!/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