Difference between revisions of "Feh"

From the Linux and Unix Users Group at Virginia Teck Wiki
Jump to: navigation, search
imported>Ackthet
m (Ackthets feh script)
(Undo revision 1173 by [[Special:Contributions/imported>Pew|imported>Pew]] ([[User talk:imported>Pew|talk]]))
(Tag: Undo)
 
(5 intermediate revisions by 2 users not shown)
Line 1: Line 1:
'''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.
+
'''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 following line in your [[.xinitrc]].
 +
<pre>
 +
feh --bg-scale /path/to/image
 +
</pre>
 +
 
 +
=Ackthet's Rotating Background Image Script=
 +
The following script changes your background to a random image in the folder <code>~/.bg</code> every 15 minutes. It should be called in your [[.xinitrc]] so that it is started with X.
  
=Ackthet's 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.
 
 
<pre>
 
<pre>
 
#!/bin/sh
 
#!/bin/sh
Line 10: Line 14:
 
   sleep 15m
 
   sleep 15m
 
done &
 
done &
 +
</pre>
  
</pre>
+
[[Category:Software]]
[[Category:Howtos]]
 
[[Category:Linux desktop]]
 
[[Category:Scripts]]
 

Latest revision as of 20:32, 3 January 2019

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 following line in your .xinitrc.

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

Ackthet's Rotating Background Image 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 it is 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 &