nitrogen-random/nitrogen-random.sh

16 lines
357 B
Bash
Raw Normal View History

2021-08-14 12:20:49 -04:00
#!/bin/bash
nBGSAVED=/home/naiji/.config/nitrogen/bg-saved.cfg
nWALLPAPERS=/home/naiji/Pictures/wallpapers/lewd/
nMODE=4
2021-08-14 12:20:49 -04:00
export DISPLAY=:0
nPATH="$(ls ${nWALLPAPERS} | shuf -n 1)"
2021-08-14 12:20:49 -04:00
echo '[xin_0]' > ${nBGSAVED}
echo "file=${nWALLPAPERS}/${nPATH}" >> ${nBGSAVED}
echo "mode=${nMODE}" >> ${nBGSAVED}
echo 'bgcolor=#000000' >> ${nBGSAVED}
2021-08-14 12:20:49 -04:00
nitrogen --restore