You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
16 lines
381 B
Bash
16 lines
381 B
Bash
#!/bin/bash
|
|
|
|
#You can move the config .nitrogen-random anywhere, just replace the path here
|
|
. /home/{username}/.config/nitrogen/.nitrogen-random
|
|
|
|
export DISPLAY=:0
|
|
|
|
nPATH="$(ls ${nWALLPAPERS} | shuf -n 1)"
|
|
|
|
echo '[xin_0]' > ${nBGSAVED}
|
|
echo "file=${nWALLPAPERS}/${nPATH}" >> ${nBGSAVED}
|
|
echo "mode=${nMODE}" >> ${nBGSAVED}
|
|
echo 'bgcolor=#000000' >> ${nBGSAVED}
|
|
|
|
nitrogen --restore
|