Difference between pages "Package:Feh" and "Template:ArticleFooter"

From Funtoo
(Difference between pages)
Jump to navigation Jump to search
 
 
Line 1: Line 1:
{{Ebuild
{{#vardefine:Next|{{#show:{{FULLPAGENAME}}|?Next in Series|link=none}}}}
|Summary=A fast, lightweight imageviewer using imlib2
{{#if:{{#var:Next|}}|'''Read the next article in this series: [[{{#var:Next}}]]'''}}
|CatPkg=media-gfx/feh
{{Tip|[[Support Funtoo]] and help us grow! '''Donate $15 per month and get a free SSD-based [[Funtoo Hosting|Funtoo Virtual Container]].'''}}
|Maintainer=
</div><div class="col-xs-12 col-md-3">{{#vardefine:Summary|{{#show:{{FULLPAGENAME}}|?Summary}}}}
|Homepage=http://feh.finalrewind.org/
{{#vardefine:Author|{{#show:{{FULLPAGENAME}}|?Author|link=none}}}}
{{#vardefine:Icon|{{#show:{{FULLPAGENAME}}|?Icon}}}}
{{#if:{{#var:Author|}}|{{#widget:ArticleBio|body={{#show: {{#var:Author}} | ?Bio }}|user={{#var:Author|}}|icon_url={{#if:{{#var:Icon|}}|{{filepath:{{#sub:{{#var:Icon}}|5}}|80}}|http://www.gravatar.com/avatar/{{#show: {{FULLPAGENAME}} | ?Gravatar MD5}}/?s=80&d=retro&r=g}}}}}}
<div class="bs-head" style="text-decoration: underline; margin-bottom: 15px;">Got Funtoo?</div>
Have you installed Funtoo Linux yet? Discover the power of a from-source meta-distribution optimized for your hardware! See our [[Funtoo Linux Installation|installation instructions]] and [[Subarches|browse our CPU-optimized builds]].
<div class="bs-head" style="text-decoration: underline; margin-bottom: 15px;">More Articles</div>
Browse all our Linux-related articles, below:
{{#ask:[[Category:Articles]]
|format=category
|link=all
|headers=show
|searchlabel=... further results
|columns=1
}}
}}
=== What is feh? ===
__NOEDITSECTION__
 
</div></div></div>
<blockquote>
[[Category:Articles]]
feh is an X11 image viewer aimed mostly at console users. Unlike most other viewers, it does not have a fancy GUI, but simply displays images. It is controlled via commandline arguments and configurable key/mouse actions.[http://feh.finalrewind.org/ Feh homepage]
</blockquote>
 
== USE-Flags ==
 
;<code>curl</code>: Add support for the Client-Side URL transfer library.
;<code>debug</code>: Enable extra debug codepaths, like asserts and extra output. If you want to get meaningful backtraces, see http://www.gentoo.org/proj/en/qa/backtraces.xml.
;<code>exif</code>: Add support for reading EXIF headers from JPEG and TIFF images.
;<code>xinerama</code>: Add support for the xinerama X11 extension, which is mandator if you work in a multiple monitor setup.
 
== Installing feh ==
After adding your USE flags (or not) to <tt>/etc/portage/package.use/feh</tt>, you can emerge feh:
<console>
###i## emerge feh
</console>
 
== Using feh ==
=== Set desktop background ===
<tt>feh</tt> has several options for setting your desktop background:
* <tt>--bg-center</tt>: Center the image file on the background. If the image file is smaller in resolution than the screen resolution, it will have black borders around it.
* <tt>--bg-scale</tt>: Fit the image to the background without repeating it, cutting parts of the image off, or using black borders. Because of these changes, the aspect ratio is not preserved.
* <tt>--bg-fill</tt>: Similar to <tt>--bg-scale</tt> except that it tries to fill the image to the screen while maintaining its aspect ratio. This may result in parts of the image being cut off.
* <tt>--bg-max</tt>: Similar to <tt>--bg-fill</tt>, except that scales the image to the maximum size that fits the screen. This leads to black borders on one side.
* <tt>--bg-tile</tt>: Tile the image across the screen.
 
Here is an example:
<console>
###i## feh --bg-scale ~/path/to/picture.jpg
</console>
 
=== Source fehbg to set your wallpaper in Openbox ===
After you have run <tt>feh</tt> one time, the directory of the image file is stored in <tt>~/.fehbg</tt>. This file can be sourced in your <tt>.config/openbox/autostart</tt> to load the picture instead of typing out <tt>feh --bg-scale /picture/location.jpg</tt>:
 
{{file|name=~/.config/openbox/autostart|desc= |body=
...
~/.fehbg &
...
}}
 
=== Change wallpaper automatically ===
With the help of a simple bash script, feh can be configured to automatically change the desktop background. To accomplish this task, we have to create the bash script. Open up your favorite editor and create a script that looks something like the following, where <code>sleep 1m</code> can be configured to any time interval that you want. Name the script whatever you want. Something like <code>WallpaperShuffle</code> will work just fine:
 
<syntaxhighlight lang="bash"
#!/bin/bash
</syntaxhighlight>
 
{{PageNeedsUpdates}}
{{EbuildFooter}}

Revision as of 01:09, January 2, 2015

Read the next article in this series: [[{{#show:Template:ArticleFooter|?Next in Series|link=none}}]]

   Tip

Support Funtoo and help us grow! Donate $15 per month and get a free SSD-based Funtoo Virtual Container.


About the Author

{{#show: {{#show:Template:ArticleFooter|?Author|link=none}} | ?Bio }}

Got Funtoo?

Have you installed Funtoo Linux yet? Discover the power of a from-source meta-distribution optimized for your hardware! See our installation instructions and browse our CPU-optimized builds.

More Articles

Browse all our Linux-related articles, below: {{#ask: |format=category |link=all |headers=show |searchlabel=... further results |columns=1 }}