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
Plaintext
16 lines
381 B
Plaintext
3 years ago
|
#!/bin/bash
|
||
|
|
||
2 years ago
|
#You can move the config .nitrogen-random anywhere, just replace the path here
|
||
|
. /home/{username}/.config/nitrogen/.nitrogen-random
|
||
3 years ago
|
|
||
|
export DISPLAY=:0
|
||
|
|
||
3 years ago
|
nPATH="$(ls ${nWALLPAPERS} | shuf -n 1)"
|
||
3 years ago
|
|
||
3 years ago
|
echo '[xin_0]' > ${nBGSAVED}
|
||
|
echo "file=${nWALLPAPERS}/${nPATH}" >> ${nBGSAVED}
|
||
|
echo "mode=${nMODE}" >> ${nBGSAVED}
|
||
|
echo 'bgcolor=#000000' >> ${nBGSAVED}
|
||
3 years ago
|
|
||
2 years ago
|
nitrogen --restore
|