Results 1 to 4 of 4

Thread: HOWTO: Set wallpaper with Thunar and feh

  1. #1
    Join Date
    Aug 2006
    Location
    US
    Beans
    1,681

    HOWTO: Set wallpaper with Thunar and feh

    I've seen a couple tutorials on this forum that describe various ways that you can set the background from a file manager, but none quite as simple as this (no shell scripting whatsoever).

    1. You must install thunar and feh, both of which are in the Ubuntu repositories.

    2. Open Thunar. Go to Edit > Configure custom actions.

    3. Click the + to add a new custom action.

    4. "Basic" Tab. Set the name, description, and icon to anything you want.

    5. Command !!! - Important - !!!

    For Centered backgrounds:
    Code:
    feh --bg-center %f
    For Scaled backgrounds:
    Code:
    feh --bg-scale %f
    For Tiled backgrounds:
    Code:
    feh --bg-tile %f
    I recommend adding 3 separate custom actions, one for each type of wallpaper.

    6. "Appearance Condition" Tab. In the "file pattern" field, just put *

    7. Check "Image files" under "Appears if selection contains:"

    8. Right-click on an image file in Thunar, and you can now set it as the background.



    *** NOTES ***

    You cannot use feh to set the background if your desktop environment is already managing the desktop.

    You can have the background set automatically to the last image that feh used as the background by putting this in your start-up programs:

    Code:
    eval `cat $HOME/.fehbg` &
    (Thanks to urukrama for this tip.)
    Last edited by dbbolton; April 10th, 2008 at 02:42 PM.

  2. #2
    Join Date
    Feb 2008
    Location
    Melbourne
    Beans
    Hidden!
    Distro
    Ubuntu 8.04 Hardy Heron

    Re: HOWTO: Set wallpaper with Thunar and feh

    Those who use Gnome can use this in the Command field:

    gconftool-2 --type str --set /desktop/gnome/background/picture_filename %f

    (no feh required)

  3. #3
    Join Date
    Jun 2005
    Beans
    259

    Re: HOWTO: Set wallpaper with Thunar and feh

    just found your post today, thanks

  4. #4
    Join Date
    Jan 2009
    Location
    $PATH
    Beans
    585

    Re: HOWTO: Set wallpaper with Thunar and feh

    Thumbs up dude!

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •