You are not logged in.

#1 2010-09-10 09:15:35

fizk-jnk
Member
Registered: 2010-09-03
Posts: 22

[SOLVED] problems with feh and awesome wallpaper

Hello smile

I am currently trying to use feh to set my wallpaper because if I set it to scale in the theme.lua the picture (which has slightly smaller resolution) looses aspect ratio.

I tried using the default value for in theme.lua and -u feh, but it still kills the aspect ratio of the image... don't know why...

Also if I try adding os.execute("feh ... and so on") to my rc lua the feh window is fullscreen and nothing else is accesible...


So following a guide on this blog I  did what it says, namely :

"Edit the variable theme.wallpaper_cmd to contain the string "eval `cat ~/.fehbg`""   (in the theme.lua, in the current theme dir)

But when I restarted my machine the wallpaper is just black. sad

I did try the command cat ~/fehbg, and the file contains the command for feh to set an image (feh --bg-scale '<image>').

So am I missing something ?

If this is not the way to do it, how should I go about using feh for my wallpaper ?

Last edited by fizk-jnk (2011-01-10 15:11:14)

Offline

#2 2010-09-10 22:32:35

barto
Member
From: Budapest, Hungary
Registered: 2009-10-22
Posts: 88

Re: [SOLVED] problems with feh and awesome wallpaper

Hello,

fizk-jnk wrote:

if I set it to scale [...] the picture looses aspect ratio.

Actually, ignoring aspect ratio is what scaling means. smile

Try

feh --bg-center '<image>'

and read the Background setting section in the feh man page.


“First principle, Clarice. Simplicity” – Dr. Hannibal Lecter

Offline

#3 2010-09-11 07:48:59

fizk-jnk
Member
Registered: 2010-09-03
Posts: 22

Re: [SOLVED] problems with feh and awesome wallpaper

Thanks for the reply.
I did read the man for feh.... seems like I missed something along the way, because scale really stretches the pic as well.  And you are right sir smile

Is there any ap that I can use to make the image "fit" ? I mean if the image is smaller just to zoom into it in a way ? Just like the gnome "set desktop" to "zoom" option ?

Offline

#4 2010-09-11 12:17:48

barto
Member
From: Budapest, Hungary
Registered: 2009-10-22
Posts: 88

Re: [SOLVED] problems with feh and awesome wallpaper

Oh, I understand. smile
Feh seems not to have the desired function.
I don't know awesome (nor gnome) and don't know any other background setting ap, so I won't be able to provide a "clean" solution. Instead of you I would just work it around.
What about resizing the image to fit your screen's resolution (in my case 1280x1024)?

convert '<image>' -resize 1280x1024 '<newimage>'
feh --bg-center '<newimage>'

“First principle, Clarice. Simplicity” – Dr. Hannibal Lecter

Offline

#5 2010-09-11 12:28:37

Stebalien
Member
Registered: 2010-04-27
Posts: 1,239
Website

Re: [SOLVED] problems with feh and awesome wallpaper

nitrogen


Steven [ web : git ]
GPG:  327B 20CE 21EA 68CF A7748675 7C92 3221 5899 410C

Offline

#6 2010-09-11 15:42:42

fizk-jnk
Member
Registered: 2010-09-03
Posts: 22

Re: [SOLVED] problems with feh and awesome wallpaper

(barto) Thanks for the help.
The convert command seems like better than doing it with Gimp...

But I think I will give nitrogen a go first (thanks Stebalien)

And if I have any problems I will post them here smile

Offline

#7 2012-02-21 06:59:57

jaydoc
Member
From: Chennai/Birmingham,AL
Registered: 2008-12-30
Posts: 89

Re: [SOLVED] problems with feh and awesome wallpaper

hi

not being a necromancer, just to prove that I did do some searching...! Closest answer I found, still not what I wanted though.


how do I use feh to set up the wallpaper awesome...? I tried using "eval `cat ~/.fehbg`"" as theme.wallpaper_cmd in a theme.lua file and also changed rc.lua to replace the default theme, but when I reboot the system, the wallpaper goes back to the theme's default.

thanks

Last edited by jaydoc (2012-02-21 07:10:03)


It takes a very unusual mind to undertake the analysis of the obvious - A N Whitehead

Offline

Board footer

Powered by FluxBB