~sinfallas/+junk/sinfallas-desktop

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#!/usr/bin/env bash
# Made by Sinfallas <sinfallas@yahoo.com>
# Licence: GPL-2
LC_ALL=C
LOCKFILE="/tmp/$(basename $0)_$(whoami)"
source /usr/bin/mivariable
tema=$(cat /home/$yo/mywall.txt)
noroot
lock || exit_error
mignome
mkdir -p /home/$yo/.mywall
if [[ -z $tema ]]; then
    tema="nature,water"
fi
wget -q -O /tmp/wallpaper.jpg https://source.unsplash.com/1600x900/?$tema
mv -f /tmp/wallpaper.jpg /home/$yo/.mywall/mywall.jpg
dconf write /org/gnome/desktop/background/picture-uri "'file:///home/$yo/.mywall/mywall.jpg'"
dconf write /org/gnome/desktop/background/picture-uri-dark "'file:///home/$yo/.mywall/mywall.jpg'"
#crontab -e -u username
#0 * * * * /usr/bin/mywall