Added script for setting wallpaper XFCE

This script sets the wallpaper to a frog on Wednesday.
This commit is contained in:
iAmInAction 2023-11-30 08:58:12 +01:00 committed by GitHub
parent 68cf8165c7
commit 870b6f4ab7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

12
setwallpaperbydate.sh Normal file
View File

@ -0,0 +1,12 @@
#!/bin/bash
cd /home/gregor/Pictures/Wallpapers/
if [[ $(date +%u) == 3 ]];
then
echo "Its wednesday my dudes!";
xfconf-query --channel xfce4-desktop --property /backdrop/screen0/monitorDSI1/workspace0/last-image --set $(pwd)/default-frog.png
else
echo "Not a wednesday :("
xfconf-query --channel xfce4-desktop --property /backdrop/screen0/monitorDSI1/workspace0/last-image --set $(pwd)/default-wallpaper.png
fi