mirror of
https://github.com/ksyasuda/dotfiles.git
synced 2026-03-20 06:11:27 -07:00
update
This commit is contained in:
17
projects/scripts/favorite-wallpaper.sh
Executable file
17
projects/scripts/favorite-wallpaper.sh
Executable 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
|
||||
Reference in New Issue
Block a user