Custom Images for Backgrounds?
#11
RE: Custom Images for Backgrounds?
(08-28-2018, 12:12 PM)Trippynet Wrote:  
(08-27-2018, 09:47 PM)dasos Wrote:  

Oh it does? Yea, im running 6.5.22, is the config string like the other or is it different?

Syntax is:

Code:
background "[display name]"
default "-image [filename with path]"

There was also a script someone had written (forget who) to populate the backgrounds file.

Copy the following to a shell script, save it and make it executable:

Code:
#!/bin/sh
BGDIR=$HOME/Backgrounds
#cp /usr/lib/X11/system.backgrounds $HOME/.backgrounds
chmod 644 $HOME/.backgrounds
cd ${BGDIR}
for x in *.jpg *.xpm *.png *.bmp; do
case ${x} in
'*.jpg'|'*.xpm'|'*.png'|'*.bmp') ;;
*)
NAME=`echo ${x} | tr '.' ' ' | awk '{print $1}' | tr '_' ' '`
echo "" >> $HOME/.backgrounds
echo "background \""${NAME}"\"" >> $HOME/.backgrounds
echo "default \""-image ${BGDIR}/${x}"\"" >> $HOME/.backgrounds
;;
esac
done

Copy your images into ~\Backgrounds, run the script and it will populate the .backgrounds file with all the images.

Hmmm, I might be missing something with my install. Any entry I make with flag "-image" will not populate in the backgrounds app. If I were to change to something like "-xpm" it will show up (of course, won't load). I was sure to create the image on my other machine with Photoshop with the exact resolution as the display, too, not sure if that matters or not but figured might help. Thanks for y'all help Smile
dasos
O2

Trade Count: (0)
Posts: 6
Threads: 1
Joined: Aug 2018
Find Reply
08-29-2018, 10:22 PM


Messages In This Thread

Forum Jump:


Users browsing this thread: 2 Guest(s)