Difference between revisions of "Feh"

From the Linux and Unix Users Group at Virginia Teck Wiki
Jump to: navigation, search
imported>Ackthet
(Created page with ''''feh''' is an image viewer but it is mainly used for setting background images on minimalistic desktop setups. =Ackthets feh script= The following script changes your backgrou…')
 
imported>Ackthet
Line 1: Line 1:
'''feh''' is an image viewer but it is mainly used for setting background images on minimalistic desktop setups.
+
'''feh''' is an image viewer but it is mainly used for setting background images on minimalistic desktop setups. To get it to set your background when X starts, put the line <pre> feh --bg-scale /path/to/image </pre> in your .xinitrc.
  
 
=Ackthets feh script=
 
=Ackthets feh script=
The following script changes your background to a random image in the folder ~/.bg. It should be called in your .xinitrc so that its started with X.
+
The following script changes your background to a random image in the folder ~/.bg every 15 minutes. It should be called in your .xinitrc so that its started with X.
 
<pre>
 
<pre>
 
#!/bin/sh
 
#!/bin/sh

Revision as of 18:48, 17 November 2009

feh is an image viewer but it is mainly used for setting background images on minimalistic desktop setups. To get it to set your background when X starts, put the line

 feh --bg-scale /path/to/image 

in your .xinitrc.

Ackthets feh script

The following script changes your background to a random image in the folder ~/.bg every 15 minutes. It should be called in your .xinitrc so that its started with X.

#!/bin/sh
while true;
do
   find $HOME/.bg -type f -name '*.jpg' -o -name '*.png' | shuf -n 1 | xargs feh --bg-scale
   sleep 15m
done &