You are not logged in.
Hello
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.
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
Hello,
if I set it to scale [...] the picture looses aspect ratio.
Actually, ignoring aspect ratio is what scaling means.
Try
feh --bg-center '<image>'
and read the Background setting section in the feh man page.
“First principle, Clarice. Simplicity” – Dr. Hannibal Lecter
Offline
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
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
Oh, I understand.
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
(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
Offline
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