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]

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>:

+

'''Remove package.'''

+

<console>

+

###i## emerge -C firefox

+

###i## emerge --unmerge firefox

+

</console>

−

{{file|name=~/.config/openbox/autostart|desc= |body=

+

'''Remove package. Ask for confirmation before performing any changes.'''

−

...

+

<console>

−

~/.fehbg &

+

###i## emerge -aC firefox

−

...

+

</console>

−

}}

+

−

=== Change wallpaper automatically ===

+

'''Remove orphaned packages. Ask for confirmation before performing any changes.'''

−

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:

+

<console>

+

###i## emerge -a --depclean

+

</console>

−

<syntaxhighlight lang="bash"

+

=== Update packages ===

−

#!/bin/bash

+

'''Update all packages.'''

−

</syntaxhighlight>

+

<console>

+

###i## emerge -uDN @world

+

</console>

+

+

'''Update all packages. Ask for confirmation before performing any changes. Show verbose output.'''

+

<console>

+

###i## emerge -uavDN @world

+

</console>

+

+

'''When upgrading to a new version of perl, it is necessary to also run <code>perl-cleaner</code> afterwards:'''

+

<console>

+

###i## emerge -auvDN @world

+

###i## perl-cleaner --all

+

</console>

−

{{PageNeedsUpdates}}

+

{{Note|This requirement of running <code>perl-cleaner</code> will eventually go away, once all perl-related ebuilds are updated to EAPI 5. EAPI 5 is a version of the Ebuild specification that supports smart updating of perl-related bits.}}

Remove packages

Remove orphaned packages. Ask for confirmation before performing any changes.

# emerge -a --depclean

Update packages

Update all packages.

# emerge -uDN @world

Update all packages. Ask for confirmation before performing any changes. Show verbose output.

# emerge -uavDN @world

When upgrading to a new version of perl, it is necessary to also run perl-cleaner afterwards:

# emerge -auvDN @world
# perl-cleaner --all

Note

This requirement of running perl-cleaner will eventually go away, once all perl-related ebuilds are updated to EAPI 5. EAPI 5 is a version of the Ebuild specification that supports smart updating of perl-related bits.