#!/bin/bash nBGSAVED=/home/naiji/.config/nitrogen/bg-saved.cfg nWALLPAPERS=/home/naiji/Pictures/wallpapers/lewd/ nMODE=4 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