LinuxQuestions.org
Go Job Hunting at the LQ Job Marketplace
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices

Reply
 
Search this Thread
Old 01-23-2012, 04:13 PM   #1
lonesoac0
Member
 
Registered: Jan 2010
Distribution: Ubuntu
Posts: 88

Rep: Reputation: 4
Feh Options


Hello all,

I am interested in making an options file for the application of Feh. The options that I would like to include are at: http://linux.die.net/man/1/feh I got this idea from the adduser command the adduser command uses the file /etc/adduser.conf. All I needed to do was simply adjust the contents of the adduser.conf file and the adduser command acts like I want now. That is what I want to do with the feh application.
 
Old 01-23-2012, 04:44 PM   #2
Didier Spaier
Senior Member
 
Registered: Nov 2008
Location: Paris, France
Distribution: Slackware{,64}-{14.1,current} on a Lenovo Thinkpad T61 6457-4XG
Posts: 4,025

Rep: Reputation: 966Reputation: 966Reputation: 966Reputation: 966Reputation: 966Reputation: 966Reputation: 966Reputation: 966
Not sure I understand you question.

If I understand well all these otions are readily available as soon as feh is installed. Or not ???
 
Old 01-23-2012, 06:53 PM   #3
Dark_Helmet
Senior Member
 
Registered: Jan 2003
Posts: 2,786

Rep: Reputation: 369Reputation: 369Reputation: 369Reputation: 369
Generally speaking, a command will support reading configuration information from a file only if the developer(s) included code to support it. The developers for feh did that in a manner of speaking--see next paragraph. If the developers did not include that support, you would need to write a wrapper around the command to automate the process (e.g. read the contents of the config file, translate the settings to command line options, and then launch the command with the appropriate command line options). In essence, you would be adding the config file support yourself.

For feh, the man page says:
Code:
CONFIG FILE SYNTAX
     The config file allows the naming of option groups, called themes.  If ~/.fehrc or /etc/fehrc
     exist, feh will look in them for name/options pairs.  If neither of them exist, feh will create
     a default one in ~/.fehrc.

     It takes entries of the form "theme options ...", where theme is the name of the entry and
     options are the options which will be applied when the theme is used.

     An example entry would be "imagemap -rVq --thumb-width 40 --thumb-height 30".

     You cane use this theme in two ways.  Either call "feh -Timagemap *.jpg" or create a symbolic
     link to feh with the name of the theme you want it to use.  So from the example above: "ln -s
     `which feh ` ~/bin/imagemap".  Now just run "imagemap *.jpg" to use these options.

     Note that you can split a theme over several lines by placing a backslash at the end of a line,
     like in the shell.

     You can combine these themes with commandline options.  An example .fehrc is provided with a
     couple of cool example themes.
So, if I am reading that correctly, you will need to pick a name--a theme name--to represent a specific combination of options you want feh to use. Place the appropriate theme-name-plus-options entries in ~/.fehrc. Then launch feh with the theme name appropriate for the group of options you wish to use.

Last edited by Dark_Helmet; 01-23-2012 at 06:54 PM.
 
Old 01-23-2012, 08:44 PM   #4
lonesoac0
Member
 
Registered: Jan 2010
Distribution: Ubuntu
Posts: 88

Original Poster
Rep: Reputation: 4
I feel kind of silly for NOT checking the man pages first. I guess I underestimated them this time. I will have to definitely give this a try!
 
  


Reply

Tags
application, programing


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
feh image viewer vijayavel Linux - Newbie 7 08-25-2011 07:47 AM
cronjob + feh alphisb0t Linux - Software 7 08-21-2010 06:25 PM
[SOLVED] Problem installing feh cola Slackware 4 12-19-2009 01:46 AM
feh problems Th3_J3st3R Slackware 12 06-08-2009 01:44 AM
fbsetbg and feh soldan Linux - Newbie 3 11-27-2006 06:20 AM


All times are GMT -5. The time now is 04:28 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration