16 lines
381 B
Bash
Executable File
16 lines
381 B
Bash
Executable File
#!/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
|