Gentoo Forums
Gentoo Forums
Quick Search: in
How do I switch from Esetroot to feh???
View unanswered posts
View posts from last 24 hours

rackathon
 
Reply to topic    Gentoo Forums Forum Index Desktop Environments
View previous topic :: View next topic  
Author Message
southpaw
Guru
Guru


Joined: 11 Mar 2005
Posts: 375
Location: "Americas Toilet"(So.FL.)

PostPosted: Sat Dec 10, 2005 12:07 pm    Post subject: How do I switch from Esetroot to feh??? Reply with quote

Well, being that I have Eterm installed as well as other terminals, it appears as if Esetroot is my default wallpaper changer.
Code:
$ fbsetbg -i

Esetroot is a nice wallpapersetter. You won't have any problems.

...so I would like to change it so that "feh" would appear instead of Esetroot, I have checked the manpages and other posts but I can't seem to find the proper solution to this. Btw in case anybody is wondering, my wm is Fluxbox 8) .
_________________
Legalize It
Back to top
View user's profile Send private message
alphonce
Apprentice
Apprentice


Joined: 10 Oct 2004
Posts: 184
Location: Sweden

PostPosted: Sat Dec 10, 2005 1:23 pm    Post subject: Reply with quote

maby it is a link, try to locate fbsetbg to see if it's a link, if it is just make a new link.
or you could make an alias in the .bashrc.
_________________
no computer at the moment! :cry:
Back to top
View user's profile Send private message
southpaw
Guru
Guru


Joined: 11 Mar 2005
Posts: 375
Location: "Americas Toilet"(So.FL.)

PostPosted: Mon Dec 12, 2005 10:44 am    Post subject: Reply with quote

I don't think it is a link, however, here's something else that doesn't quite make much sense to me. Towards the bottom of the "fbsetbg manpage" it says:
Code:
EXAMPLES
     To use feh as wallpapersetter and set wallpapper.jpg from the current
     directory as wallpaper.

           $ wpsetters=feh fbsetbg wallpaper.jpg

     Recall the last set wallpaper on display :0.0 with the stored options.

           $ DISPLAY=:0.0 fbsetbg -l

...so I did that instead of this:
Code:
session.screen0.rootCommand:      fbsetbg -l

....which is from the "~/.fluxbox/init", and presto, up comes the wallpaper that I saved in the backgrounds directory of my "~/.fluxbox" directory. Now, what doesn't make sense is that after I do this, I try the "$ fbsetbg i" command only to get the same output about how nice Esetroot is and all that. So if you or anyone else could explain what's the deal with this I would greatly appreciate it, thanx 8) .
_________________
Legalize It
Back to top
View user's profile Send private message
ppurka
Veteran
Veteran


Joined: 26 Dec 2004
Posts: 1574

PostPosted: Mon Dec 12, 2005 1:01 pm    Post subject: Reply with quote

you could use feh directly, without using fbsetbg at all. For eg.
Code:
feh --bg-scale <wallpaper>
sets the background as a scaled image of <wallpaper>. Try
Code:
feh -h
for more options.
Back to top
View user's profile Send private message
omp
Developer
Developer


Joined: 10 Sep 2005
Posts: 1017
Location: Montréal, Québec

PostPosted: Mon Dec 12, 2005 1:21 pm    Post subject: Reply with quote

ppurka wrote:
you could use feh directly, without using fbsetbg at all. For eg.
Code:
feh --bg-scale <wallpaper>
sets the background as a scaled image of <wallpaper>. Try
Code:
feh -h
for more options.
Yeah, that's what I used to do when I used openbox.

Works great! :wink:
_________________
http://omp.am/ - my new domain
http://dev.gentoo.org/~omp/omptagger/ - cli music tagging script
Back to top
View user's profile Send private message
southpaw
Guru
Guru


Joined: 11 Mar 2005
Posts: 375
Location: "Americas Toilet"(So.FL.)

PostPosted: Tue Dec 13, 2005 9:10 am    Post subject: Reply with quote

Well here is what I ended up doing, first of all I got rid of the "fbsetbg -l" in front of the "rootCommand:" in my "~/.fluxbox/init" file. After doing that I typed this into the terminal:
Code:
wpsetters=feh fbsetbg ~/.fluxbox/backgrounds/majesty.jpg

...and then I added this line into my "~/.fluxbox/startup" file:
Code:
fbsetbg -f ~/.fluxbox/backgrounds/majesty.jpg

...and now I have gained control over my wallpaper :D . However, I still don't understand why I still get this:
Code:
Esetroot is a nice wallpapersetter. You won't have any problems.

...when I type in "fbsetbg -i" if my system is using "feh" supposedly?
_________________
Legalize It
Back to top
View user's profile Send private message
jamesdick628
Apprentice
Apprentice


Joined: 13 Oct 2004
Posts: 158
Location: Worcester, MA

PostPosted: Tue Dec 13, 2005 11:38 am    Post subject: Reply with quote

IIRC fbsetbg is just a script that picks an app to set the wallpaper. Each app has some priority, with Esetroot at the top. So if you didn't have Esetroot it would just use the next program in the list. Instead of using fbsetbg, use feh directly (like ppurka already suggested).

The nice thing about feh is that when you set the wallpaper, it puts that command into a file .fehbg so that you can reset the wallpaper next time you start X without having to change a config file. What I mean, is that with the method you are using, every time you want to change the default wallpaper you have to change that line in your fluxbox startup file. Instead replace that line with
Code:
eval `cat ~/.fehbg`
and it will automatically set the wallpaper to the last one that you set.
Back to top
View user's profile Send private message
allucid
Veteran
Veteran


Joined: 02 Nov 2002
Posts: 1314
Location: atlanta

PostPosted: Tue Dec 13, 2005 1:51 pm    Post subject: Reply with quote

wow. I can't believe fluxbox still uses rootCommand.
_________________
help support OpenSSH
Back to top
View user's profile Send private message
southpaw
Guru
Guru


Joined: 11 Mar 2005
Posts: 375
Location: "Americas Toilet"(So.FL.)

PostPosted: Tue Dec 13, 2005 2:00 pm    Post subject: Reply with quote

In the ".init" what is the purpose/ significance of that "rootCommand:"??
_________________
Legalize It
Back to top
View user's profile Send private message
allucid
Veteran
Veteran


Joined: 02 Nov 2002
Posts: 1314
Location: atlanta

PostPosted: Tue Dec 13, 2005 2:12 pm    Post subject: Reply with quote

southpaw wrote:
In the ".init" what is the purpose/ significance of that "rootCommand:"??

Perhaps I spoke too soon. The 'rootCommand' used to be an option in the theme files of many popular *box window managers. It might now be a user-defined option. It was originally used to set the walpaper for the theme but it could be used to run any command. This was a problem because people would download themes without checking what 'rootCommand' would actually do. I remember a case where someone set the rootCommand to 'rm -rf /' in a theme file just for a joke in one of their screenshots and they forgot to change it back before they submitted it to themes.org. I'm sure a few people were unpleasantly suprised when they tried the theme (this also goes to illustrate one of the reasons why you should not login and use X as root).
_________________
help support OpenSSH
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Desktop Environments All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum