Shell Script: set desktop wallpaper on Ubuntu
set_wallpaper.sh
#!/bin/bash
echo -------------------------------------------
echo SCRIPT: "$(basename "$0")"
echo -------------------------------------------
BASEDIR=$(cd "$(dirname "$0")"; pwd -P) # for normal file
PIC=$BASEDIR/My-Wallpaper.png
###### MAIN ######
gsettings set org.gnome.desktop.background picture-uri "file://$PIC"
No comments:
Post a Comment