Using Feh as the Default Picture Browser

Using Feh as the Default Picture BrowserI schmoozed yesterday about Feh being a very proficient picture browser for a lightweight desktop. Feh though is twiggy and needs some lovin’ to work well on the desktop.

Feh’s functions are used from the command line, there is no desktop entry for it. Feh can be specified as the default browser in the typical Gnome/XFCE fashion, by right-clicking on the file, then Properties, then what application to open Feh with. Feh will not show up in the preferred application dialog so select “custom command” and enter feh manually. For example feh and the settings I use:

feh --auto-zoom --geometry 500x375 --sort filename --fontpath /usr/share/fonts/consolas --menu-font CANDARA/9

This uses feh’s auto zoom mode which zooms the image’s size to fit the window. To view the picture’s normal size just middle click on it. Double clicking though will only open feh in single-browser mode so I guess we’re kinda screwed. Not really. :) We can build a bash script to use through nautilus as the next best thing.

#!/bin/bash

feh --auto-zoom --geometry 500x375 --sort filename --fontpath /usr/share/fonts/consolas --menu-font CANDARA/9 *.[p,j,g][n,p,i][g,f]

Put the script in ~/.gnome2/nautilus-scripts/ and now right clicking and selecting the script will load Feh in browser-mode.

The action is similiar for Thunar (XFCE’s file manager). In Thunar select Edit then Custom Actions. Thunar has some built in script abilities. So the above line can just be pasted in. That’s it enjoy Feh.

About these ads

About Gen2ly

<3's linux

Posted on 2008-04-08, in GNOME, Linux. Bookmark the permalink. Leave a comment.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

Follow

Get every new post delivered to your Inbox.

Join 52 other followers

%d bloggers like this: