Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
fluxbox [SOLVED]
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

 
Reply to topic    Gentoo Forums Forum Index Desktop Environments
View previous topic :: View next topic  
Author Message
Cyberian-ZH
Apprentice
Apprentice


Joined: 24 Jan 2005
Posts: 288

PostPosted: Tue Mar 29, 2005 5:00 am    Post subject: fluxbox [SOLVED] Reply with quote

*newbie alert*

I just finished emerging fluxbox and this is my first time installing Gentoo.

How do I get fluxbox to start when I start X?
_________________
2.6.11-gentoo-r5 // Xorg // Fluxbox
*NEWBIE ALERT!* Please be gentle to this user.


Last edited by Cyberian-ZH on Sun Apr 03, 2005 1:22 am; edited 2 times in total
Back to top
View user's profile Send private message
Given M. Sur
l33t
l33t


Joined: 03 Feb 2004
Posts: 648
Location: No such file or directory

PostPosted: Tue Mar 29, 2005 5:14 am    Post subject: Reply with quote

There's multiple ways
1. edit /etc/rc.conf and set XSESSION to XSESSION="fluxbox"

2. edit (or create) ~/.xinitrc and add the line
Code:
exec /usr/bin/fluxbox


3. when you run startx do it like this
Code:
XSESSION="fluxbox" startx


4. see the next post


Last edited by Given M. Sur on Tue Mar 29, 2005 6:31 am; edited 1 time in total
Back to top
View user's profile Send private message
lamaistres
Apprentice
Apprentice


Joined: 17 Dec 2002
Posts: 268
Location: Seattle

PostPosted: Tue Mar 29, 2005 6:24 am    Post subject: Reply with quote

Add "startfluxbox" to your ~/.xinitrc
Code:
echo startfluxbox > .xinitrc
Back to top
View user's profile Send private message
Cyberian-ZH
Apprentice
Apprentice


Joined: 24 Jan 2005
Posts: 288

PostPosted: Tue Mar 29, 2005 7:54 am    Post subject: Reply with quote

Can someone please copy-and-paste their .xinitrc? I would like to see a full example.

I tried writing my own .xinitrc, and X would not start properly when I add extra programmes; it starts up with 3 Xterm and the analog clock on the upper-right corner.

Speaking of clock, how do I set my clock on the lower-right corner to 4 digits and 24 hours (not AM/PM)?
_________________
2.6.11-gentoo-r5 // Xorg // Fluxbox
*NEWBIE ALERT!* Please be gentle to this user.
Back to top
View user's profile Send private message
Given M. Sur
l33t
l33t


Joined: 03 Feb 2004
Posts: 648
Location: No such file or directory

PostPosted: Tue Mar 29, 2005 6:07 pm    Post subject: Reply with quote

Try it without a .xinitrc. I don't have one. I just have XSESSION="enlightenment" (you'll, of course, want fluxbox not enlightenment). So, try it that way.
Back to top
View user's profile Send private message
JROCK2004
Guru
Guru


Joined: 02 Mar 2004
Posts: 450
Location: PA

PostPosted: Tue Mar 29, 2005 6:10 pm    Post subject: Reply with quote

Code:

exec fluxbox


This is it. that is my .xinitrc

when you type startx what happens? Do you get an error message?

Also did you emerge xorg-x11 and configure it?
Back to top
View user's profile Send private message
lamaistres
Apprentice
Apprentice


Joined: 17 Dec 2002
Posts: 268
Location: Seattle

PostPosted: Tue Mar 29, 2005 7:00 pm    Post subject: Reply with quote

Add applications to ~/.fluxbox/startup if you're using "startfluxbox" in .xinitrc. Example
Code:
gkrellm &
xclock &

Fluxbox Startup Applications How-To

To change to 24 Hrs, open "~/.fluxbox/init" and change this line; (change l to k)
Code:
session.screen0.strftimeFormat:   %l:%M
                    to
session.screen0.strftimeFormat:   %k:%M

Read date manual for all options (too many too list)
Code:
man date

HTH
Back to top
View user's profile Send private message
Cyberian-ZH
Apprentice
Apprentice


Joined: 24 Jan 2005
Posts: 288

PostPosted: Wed Mar 30, 2005 5:56 am    Post subject: Reply with quote

I have succesfully edited the time format in the desktop, but failed in the init file.

startup and init failed to take effect. Is there something I have to do to it to make it active?

I have 'startfluxbox' in .xinitrc, and when I 'startx' fluxbox is all I get.

Note that this is my first time getting a Gentoo to work, I may have missed out a few things that newbies are common to miss.

Please further help.
_________________
2.6.11-gentoo-r5 // Xorg // Fluxbox
*NEWBIE ALERT!* Please be gentle to this user.
Back to top
View user's profile Send private message
Cyberian-ZH
Apprentice
Apprentice


Joined: 24 Jan 2005
Posts: 288

PostPosted: Thu Mar 31, 2005 7:22 pm    Post subject: Reply with quote

Hi again. The above have been solved. Thanks all who have helped.

I have some new questions:

1. How do I set up a wallpaper? I did this in startup.

Code:
bsetbg -f ~/cycustom/mars1280.jpg


And it still doesn't work. Location is correct.

2. How do I prevent windows from covering my task bar? I want the taskbar to overlap everything else in the same region.

3. How do I change the font of my current style?
_________________
2.6.11-gentoo-r5 // Xorg // Fluxbox
*NEWBIE ALERT!* Please be gentle to this user.
Back to top
View user's profile Send private message
meozi
n00b
n00b


Joined: 22 Mar 2005
Posts: 20

PostPosted: Thu Mar 31, 2005 9:35 pm    Post subject: Reply with quote

Cyberian-ZH wrote:
Hi again. The above have been solved. Thanks all who have helped.



Code:
bsetbg -f ~/cycustom/mars1280.jpg




I'm a newb myself, but shouldn't it be fbsetbg?
Back to top
View user's profile Send private message
Cyberian-ZH
Apprentice
Apprentice


Joined: 24 Jan 2005
Posts: 288

PostPosted: Fri Apr 01, 2005 6:40 am    Post subject: Reply with quote

Returned with this error:
Code:
fbsetbg: I can't find an app to set the wallpaper with. You can install one in
many many ways but I will give you some simple advice: install Eterm and
you're set. Eterm provides Esetroot and thats a great wallpaper setter. I
recommend you install the package provided by your distro.


According to ~/.fluxbox/startup:
Code:


# You can set your favourite wallpaper here if you don't want
# to do it from your style.
#
# bsetbg -f ~/pictures/wallpaper.png
#
# This sets a black background
bsetbg -f ~/cycustom/mars1280.jpg


I don't know how to do it from styles. So I did it in startup.
_________________
2.6.11-gentoo-r5 // Xorg // Fluxbox
*NEWBIE ALERT!* Please be gentle to this user.
Back to top
View user's profile Send private message
steve_d555
Guru
Guru


Joined: 07 Nov 2004
Posts: 458
Location: Belmont, Massachusetts

PostPosted: Fri Apr 01, 2005 6:48 am    Post subject: Reply with quote

You should try fbsetbg and look at the switches. I think it comes with the fluxbox installation.
_________________
rubyforums | blog | boxwhore
Back to top
View user's profile Send private message
Cyberian-ZH
Apprentice
Apprentice


Joined: 24 Jan 2005
Posts: 288

PostPosted: Fri Apr 01, 2005 10:03 am    Post subject: Reply with quote

What are switches?
_________________
2.6.11-gentoo-r5 // Xorg // Fluxbox
*NEWBIE ALERT!* Please be gentle to this user.
Back to top
View user's profile Send private message
meozi
n00b
n00b


Joined: 22 Mar 2005
Posts: 20

PostPosted: Fri Apr 01, 2005 1:00 pm    Post subject: Reply with quote

I got that error yesterday. I emerged feh and it worked. So you would do

Code:

emerge feh


and it should work.
Back to top
View user's profile Send private message
meozi
n00b
n00b


Joined: 22 Mar 2005
Posts: 20

PostPosted: Fri Apr 01, 2005 1:05 pm    Post subject: Reply with quote

Cyberian-ZH wrote:

According to ~/.fluxbox/startup:
Code:


# You can set your favourite wallpaper here if you don't want
# to do it from your style.
#
# bsetbg -f ~/pictures/wallpaper.png
#
# This sets a black background
bsetbg -f ~/cycustom/mars1280.jpg


I don't know how to do it from styles. So I did it in startup.


after you emerge feh you should put
Code:

fbsetbg -f ~/cycustome/mars1280.jpg &


with your other startup applications. At least that is what worked for me. If you check out that link that lamaistres posted it will help you a bunch. That is how I got mine to work.
Back to top
View user's profile Send private message
steve_d555
Guru
Guru


Joined: 07 Nov 2004
Posts: 458
Location: Belmont, Massachusetts

PostPosted: Fri Apr 01, 2005 9:51 pm    Post subject: Reply with quote

Cyberian-ZH wrote:
What are switches?


Like when you run a program i.e. fbsetbg -f (--fullscreen) are switches, telling the program what to do.
_________________
rubyforums | blog | boxwhore
Back to top
View user's profile Send private message
dswissmiss
Guru
Guru


Joined: 23 May 2004
Posts: 498
Location: New York

PostPosted: Fri Apr 01, 2005 10:14 pm    Post subject: Reply with quote

If you're going to go with feh, make sure you put this in your .xinitrc so it will load your last used wallpaper on startup:

Code:
exec `cat ~/.fehbg` &

_________________
screenshots
Back to top
View user's profile Send private message
Cyberian-ZH
Apprentice
Apprentice


Joined: 24 Jan 2005
Posts: 288

PostPosted: Sun Apr 03, 2005 12:04 am    Post subject: Reply with quote

Okay, thanks. I got my wallpaper working.

But the below questions remains. I would greatly appreciate it if anyone would continue to help me.

2. How do I prevent windows from covering my task bar? I want the taskbar to overlap everything else in the same region.

3. How do I change the font of my current style?
_________________
2.6.11-gentoo-r5 // Xorg // Fluxbox
*NEWBIE ALERT!* Please be gentle to this user.
Back to top
View user's profile Send private message
dswissmiss
Guru
Guru


Joined: 23 May 2004
Posts: 498
Location: New York

PostPosted: Sun Apr 03, 2005 12:10 am    Post subject: Reply with quote

Not sure about the first one, it kind of played around with the settings and it just worked.
I do have Layer = Desktop in my menu options, but I'm not sure if that is the one.

As for your second question, it gets a bit annoying. You have to go into your styles folder and look for a theme.cfg file and edit that. I installed my themes in ~/.fluxbox/styles, so I would do nano ~/.fluxbox/styles/themename/theme.cfg

The lines to look for in most styles I use are:

Code:
menu.title.font:                                       
menu.frame.font:                                       
toolbar.clock.font:                                     
toolbar.workspace.font:                                 
toolbar.iconbar.focused.font:                         
toolbar.iconbar.unfocused.font:                       
window.font:     

_________________
screenshots
Back to top
View user's profile Send private message
Cyberian-ZH
Apprentice
Apprentice


Joined: 24 Jan 2005
Posts: 288

PostPosted: Sun Apr 03, 2005 1:08 am    Post subject: Reply with quote

Silly me, I thought 'Dock Above' meant dock on top of the screen.

Thanks! All questions solved.
_________________
2.6.11-gentoo-r5 // Xorg // Fluxbox
*NEWBIE ALERT!* Please be gentle to this user.
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
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