mirror of
https://github.com/ksyasuda/dotfiles.git
synced 2026-03-20 06:11:27 -07:00
18 lines
401 B
Bash
Executable File
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
|