#!/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