Forums

Skip to content

Advanced search
  • Quick links
    • Unanswered topics
    • Active topics
    • Search
  • FAQ
  • Login
  • Register
  • Board index Assistance Desktop Environments
  • Search

tips for fluxbox [Part 1]

Problems with GUI applications? Questions about X, KDE, Gnome, Fluxbox, etc.? Come on in. NOTE: For multimedia, go up one forum
Locked
Advanced search
301 posts
  • Page 10 of 13
    • Jump to page:
  • Previous
  • 1
  • …
  • 8
  • 9
  • 10
  • 11
  • 12
  • 13
  • Next
Author
Message
bakreule
Apprentice
Apprentice
User avatar
Posts: 233
Joined: Wed Aug 27, 2003 8:06 pm
Location: Paris, France

Post by bakreule » Mon Sep 26, 2005 8:26 am

MeatHead wrote:Direct linking doesn't seem to work but if you follow this link and do a search for 'relapse' you'll find what you're looking for.
http://browse.deviantart.com/
Thanks, I found it.... Beautiful image....
Buses stop at a bus station.
Trains stop at a train station.
On my desk there's a workstation.....
Top
feminista
Apprentice
Apprentice
User avatar
Posts: 182
Joined: Fri Mar 25, 2005 6:56 am

Post by feminista » Mon Sep 26, 2005 2:11 pm

Aterm also controls its own scrollbar, separate from any libraries/toolkits/etc. Check out the man page for configuration tips.

And, of course, if you're running any Qt apps, you'll have to change that theme too, but I wouldn't know anything about such dirtiness. ^_~
Top
Gentree
Watchman
Watchman
User avatar
Posts: 5350
Joined: Tue Jul 01, 2003 12:51 am
Location: France, Old Europe

Post by Gentree » Mon Sep 26, 2005 10:26 pm

seems like gtk-chtheme broke the scollbars but at least I dont have to look at them any more :D

I can live without them better than I could live with them for terms anyway. Other progs seem OK.


Still trying to find out what the Mod? keys are , here's half the answer:
http://fluxbox.sourceforge.net/docs/en/ ... hp#special

Oddly , since it seems to be the official doc it only says what mod1 and mod4 are.

I guess after that you have to define a key bind and experiment until you find how to trigger it.

Anyway , now I can edit my key file for my true blue IBM , non-M$ keyboard. Ha! I spit on your silly, bed-wetting window-keys. :twisted:

The only things I'm not too keen on now is one-cornered resize (senselessly restrictive , it cant be that hard to code!) and that I cant find a theme with rounded corners on fluxbox.

Silly detail but I've become a bit attached to soft corners on xfce4 and sharp rectangles seem a bit austere and basic now.

Many thanks for all the tips, I've done all ten pages now and have learnt enought to get a good hold of how fluxbox works, and I like it.

8)
Linux, because I'd rather own a free OS than steal one that's not worth paying for.
Gentoo because I'm a masochist
AthlonXP-M on A7N8X. Portage ~x86
Top
Gentree
Watchman
Watchman
User avatar
Posts: 5350
Joined: Tue Jul 01, 2003 12:51 am
Location: France, Old Europe

Post by Gentree » Mon Sep 26, 2005 11:30 pm

OK found a bit more: http://fluxbox.org/version-0.9.php

window.roundCorners:TopRight TopLeft BottomLeft BottomRight



more like window.missingCorners to my eye :wink: but I suppose it is being looked at.

Code: Select all

!menu.roundCorners:BottomLeft BottomRight
!toolbar.shaped: true
best left commented ! :x

very pleasing how configurable all this is tho' , once you've found the doc.

coming together nicely.
8)
Linux, because I'd rather own a free OS than steal one that's not worth paying for.
Gentoo because I'm a masochist
AthlonXP-M on A7N8X. Portage ~x86
Top
feminista
Apprentice
Apprentice
User avatar
Posts: 182
Joined: Fri Mar 25, 2005 6:56 am

Post by feminista » Mon Sep 26, 2005 11:56 pm

very pleasing how configurable all this is tho' , once you've found the doc.

coming together nicely.
Glad to hear it. That's why we love the flux.
Last edited by feminista on Sun Oct 23, 2005 12:28 am, edited 1 time in total.
Top
Gentree
Watchman
Watchman
User avatar
Posts: 5350
Joined: Tue Jul 01, 2003 12:51 am
Location: France, Old Europe

Post by Gentree » Tue Sep 27, 2005 12:24 am

One thing I cant figure out , if I try to run any X progs from a term it cant connect to the display.

In xfce for ex. I can open an xterm and issue :

Code: Select all

su prof && opera
in flux even if I su first then use fbrun to start opera it comes up as the user under which I start flux.

This is not what I need , I have a user with very ristricted rights for things like browser amule etc.

Anyone advise on what I need to do here?

TIA 8)
Linux, because I'd rather own a free OS than steal one that's not worth paying for.
Gentoo because I'm a masochist
AthlonXP-M on A7N8X. Portage ~x86
Top
yabbadabbadont
Advocate
Advocate
User avatar
Posts: 4791
Joined: Fri Mar 14, 2003 12:02 am
Location: 2 exits past crazy

Post by yabbadabbadont » Tue Sep 27, 2005 1:46 am

You might try using

Code: Select all

su - prof && opera
instead and see if it helps.
Top
jaanu141
n00b
n00b
Posts: 2
Joined: Wed Oct 05, 2005 10:14 pm
Location: Estonia

Post by jaanu141 » Wed Oct 05, 2005 10:19 pm

Anybody knows how ta add the same program more than once into /.fluxbox/apps ?
Top
Gentree
Watchman
Watchman
User avatar
Posts: 5350
Joined: Tue Jul 01, 2003 12:51 am
Location: France, Old Europe

Post by Gentree » Mon Oct 10, 2005 10:08 am

yabbadabbadont wrote:You might try using

Code: Select all

su - prof && opera
instead and see if it helps.
No, that will change me to su shell and execute opera when I return. If you meant su - prof opera that just does the same as I posted above.

Anyone know how to drive this damn thing ? Looks light the super-light weight approach extends to the doc as well. :?
Linux, because I'd rather own a free OS than steal one that's not worth paying for.
Gentoo because I'm a masochist
AthlonXP-M on A7N8X. Portage ~x86
Top
revertex
l33t
l33t
User avatar
Posts: 806
Joined: Wed Apr 23, 2003 9:21 am

Post by revertex » Mon Oct 17, 2005 10:45 am

Gentree wrote:
yabbadabbadont wrote:You might try using

Code: Select all

su - prof && opera
instead and see if it helps.
No, that will change me to su shell and execute opera when I return. If you meant su - prof opera that just does the same as I posted above.

Anyone know how to drive this damn thing ? Looks light the super-light weight approach extends to the doc as well. :?
you may consider sudo.

due to security restrictions root cannot access X (at least he wouldn't).

but with "sux" you can.

first of all emerge sux it's pretty small, and have a very few dependencies,
then run what-you-want issuing "sux -e progname", like "sux -e opera"

This should work, but sudo IMHO is a lot better, you can even setup a list of apps that your user can run as sudo.

cheers
Top
revertex
l33t
l33t
User avatar
Posts: 806
Joined: Wed Apr 23, 2003 9:21 am

Post by revertex » Mon Oct 17, 2005 10:59 am

jaanu141 wrote:Anybody knows how ta add the same program more than once into /.fluxbox/apps ?
Yes, you just need to figure how to make the program identify itself with diferent n when running more than one instance.

use

Code: Select all

xprop |awk '/WM_CLASS/{print $3 $4}'
to identify the progname

Actually i can only do it with *terms.
Top
Gentree
Watchman
Watchman
User avatar
Posts: 5350
Joined: Tue Jul 01, 2003 12:51 am
Location: France, Old Europe

Post by Gentree » Mon Oct 17, 2005 12:36 pm

revertex wrote:
Gentree wrote:
yabbadabbadont wrote:You might try using

Code: Select all

su - prof && opera
instead and see if it helps.
No, that will change me to su shell and execute opera when I return. If you meant su - prof opera that just does the same as I posted above.

Anyone know how to drive this damn thing ? Looks light the super-light weight approach extends to the doc as well. :?
you may consider sudo.

due to security restrictions root cannot access X (at least he wouldn't).

but with "sux" you can.

first of all emerge sux it's pretty small, and have a very few dependencies,
then run what-you-want issuing "sux -e progname", like "sux -e opera"

This should work, but sudo IMHO is a lot better, you can even setup a list of apps that your user can run as sudo.

cheers
thanks for you suggestions but what I dont get is this:

under xfce is can open a xterm ; su prof and enter opera.

Opera then starts as the user prof , end of story.

Now what is so complicated about that and why does that "fail to find the display" under flux?

It's not a kernel issue but I agree it sux. :wink:

Opera will only run as root in flux and that is definately not what I require.

Sadly the doc seems to concentrate mainly on creating menus not basic function like this.

regards 8)
Linux, because I'd rather own a free OS than steal one that's not worth paying for.
Gentoo because I'm a masochist
AthlonXP-M on A7N8X. Portage ~x86
Top
revertex
l33t
l33t
User avatar
Posts: 806
Joined: Wed Apr 23, 2003 9:21 am

Post by revertex » Wed Oct 19, 2005 7:57 am

oh! i' m sorry, i misunderstand you!
now i see, all that you want is run opera as user " prof".
didn' t figure that " prof" is a user, stupid me.

try

Code: Select all

su prof -c opera
Top
Gentree
Watchman
Watchman
User avatar
Posts: 5350
Joined: Tue Jul 01, 2003 12:51 am
Location: France, Old Europe

Post by Gentree » Thu Oct 20, 2005 6:01 am

Well thanks again for the reply.

this works fine un xfce but I get the same issue on flux, something about cant connect to display.

There must be something in flux that does not have the right permissions. In xfce gnome or kde I can just open a term, su to prof and run anything that use can access.

For the moment flux is useless to me. Any ideas where I should look to fix this?

TIA 8)
Linux, because I'd rather own a free OS than steal one that's not worth paying for.
Gentoo because I'm a masochist
AthlonXP-M on A7N8X. Portage ~x86
Top
revertex
l33t
l33t
User avatar
Posts: 806
Joined: Wed Apr 23, 2003 9:21 am

Post by revertex » Thu Oct 20, 2005 11:46 pm

Gentree,

i was the only user in my box, but i created another user called lam3_us3r, just to test it, and can launch opera as lam3_us3r under my account perfectly.

i just did "su lam3_us3r -c opera" then in opera >help > about opera it seems all paths poit to lam3_us3r homedir.
i don't believe it's fluxbox fault, but maybe b0rked with your setup.
if i can help you with some extra info get in touch please.
Top
Gentree
Watchman
Watchman
User avatar
Posts: 5350
Joined: Tue Jul 01, 2003 12:51 am
Location: France, Old Europe

Post by Gentree » Fri Oct 21, 2005 12:29 am

Many thanks for sticking with this.

I am now running opera as root under flux to post the message I get from the user account

Code: Select all

bash-3.00#su prof
prof@newsys /root $ opera
Xlib: connection to ":0.0" refused by server
Xlib: No protocol specified

opera: cannot connect to X server :0.0
prof@newsys /root $ 
ie I startx as root and but cant run anything X once I do an su .

I can still do things like ls, cd , etc.

Does that make any more sense to you.

TIA.
Linux, because I'd rather own a free OS than steal one that's not worth paying for.
Gentoo because I'm a masochist
AthlonXP-M on A7N8X. Portage ~x86
Top
stahlsau
Guru
Guru
User avatar
Posts: 584
Joined: Fri Jan 09, 2004 8:16 am
Location: WildWestwoods

Post by stahlsau » Fri Oct 21, 2005 5:47 am

hi,
you can do

Code: Select all

su - prof -c opera
That works for me at least.
Top
Gentree
Watchman
Watchman
User avatar
Posts: 5350
Joined: Tue Jul 01, 2003 12:51 am
Location: France, Old Europe

Post by Gentree » Fri Oct 21, 2005 9:12 am

No.

"cannot connect to X server"

there seems to be something more fundemental that is not configured here.

Whatever route I take to run something as a user it fails to connect. :?

Thx.
Linux, because I'd rather own a free OS than steal one that's not worth paying for.
Gentoo because I'm a masochist
AthlonXP-M on A7N8X. Portage ~x86
Top
jlowe
n00b
n00b
User avatar
Posts: 25
Joined: Mon Jan 31, 2005 11:13 pm
Location: Louisiana
Contact:
Contact jlowe
Website

Post by jlowe » Sat Oct 22, 2005 2:26 am

zanzer7 wrote:Addition/tweak to the wallpaper section (supposing you used fbsetbg with esetroot before);

Code: Select all

root@z10n # emerge unmerge eterm
root@z10n # emerge feh
...and recommendably:
root@z10n # emerge aterm
It's really just a personal preference, but I like aterm much more than eterm (which you'll need an alternative to, unless you can settle with xterm), and didn't really ever use eterm anyways, so I was happy when I found out I could use the lightweight imageviewer feh (which ALSO has correct fileparsing of filenames with whitespace in them... I don't know if this is still a problem with fbsetbg, but Pwnz3r pointed this out on his site, so I thought I'd just add it here as well)... we NEED fluxbox tips/info :D

Code: Select all

FILE: ~/.fluxbox/menu
...
[submenu] (wallpapers)
     [exec] (random) {feh -r --bg-scale ~/.fluxbox/backgrounds/}
     [wallpapers] (~/.fluxbox/backgrounds/) {feh --bg-scale}
[end]
...
The first (random) will set a random picture from ~/.fluxbox/backgrounds/ as background, and the second (wallpapers) will add all images in ~/.fluxbox/backgrounds/ to the menu, and when you click any one, it'll be set as background.
Optionally you can make fluxbox load a random wallpaper when it's started (this is what I do):

Code: Select all

FILE: ~/.fluxbox/init
...
session.screen0.rootCommand:    feh -r --bg-scale ~/.fluxbox/backgrounds/
...
I MUST ADMIT that I don't really remember if the -r flag is right (as I'm not in linux atm), please do correct me if I'm wrong though :)

=======

Still no enlightenment on the SETI issues with torsmo? :S
I'm getting frustrated with trying to get the wallpaper trick to work. Here is that section of my menu file:

Code: Select all

[submenu] (Wallpapers)
      [Wallpapers] (~/.fluxbox/backgrounds) {feh --bg-scale}
[end]
I have five images in that directory, but when I select the wallpaper menu item, it shows a top bar of Wallpapers, but no images listed. None of the filenames are crazy. I have no idea why this is not working. My full menu config file is here. As far as I can tell, all sections have ends, and there are not any silly mistakes in the file...but maybe I'm missing something?

Any help would be appreciated.
Top
feminista
Apprentice
Apprentice
User avatar
Posts: 182
Joined: Fri Mar 25, 2005 6:56 am

Post by feminista » Sun Oct 23, 2005 1:11 am

jlowe: [wallpapers] can't be capitalized, it's a special fluxbox keyword.

By the way, that tip rocks. I mean, fbsetbg is easy, but that's PAINFULLY easy.
Top
jlowe
n00b
n00b
User avatar
Posts: 25
Joined: Mon Jan 31, 2005 11:13 pm
Location: Louisiana
Contact:
Contact jlowe
Website

Post by jlowe » Mon Oct 24, 2005 3:06 am

feminista wrote:jlowe: [wallpapers] can't be capitalized, it's a special fluxbox keyword.

By the way, that tip rocks. I mean, fbsetbg is easy, but that's PAINFULLY easy.
Thanks! I will try this out tomorrow... I figured it was something simple I was overlooking.

[edit]

That works perfectly. I now have a list of wallpapers to choose from.
Top
jlowe
n00b
n00b
User avatar
Posts: 25
Joined: Mon Jan 31, 2005 11:13 pm
Location: Louisiana
Contact:
Contact jlowe
Website

Post by jlowe » Mon Oct 24, 2005 9:02 pm

Now, I'm having a different problem. I want conky to start up with fluxbox. So, naturally, I edit ~/.fluxbox/startup. I add a line 'conky &' and save. But when I startup fluxbox, it never starts. I even tried something simple like making aterm start with fluxbox, but nothing seems to work. I'm baffled. My older pc with fluxbox, I never had a problem with startup programs. Here is my startup file:

Code: Select all

# fluxbox startup-script:
#
# Lines starting with a '#' are ignored.

# 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

#/usr/bin/bsetroot -solid black

# This shows the fluxbox-splash-screen
# fbsetbg -C /usr/share/fluxbox/splash.jpg

# Other examples. Check man xset for details.
#
# Turn off beeps:
# xset -b
#
# Increase the keyboard repeat-rate:
# xset r rate 195 35
#
# Your own fonts-dir:
# xset +fp /home/joshua/.font
#
# Your favourite mouse cursor:
# xsetroot -cursor_name right_ptr
#
# Change your keymap:
# xmodmap ~/.Xmodmap



# Applications you want to run with fluxbox.
# MAKE SURE THAT APPS THAT KEEP RUNNING HAVE AN ''&'' AT THE END.
#
# unclutter -idle 2 &
# wmnd &
# wmsmixer -w &
# idesk &
conky &

# And last but not least we start fluxbox.
# Because it is the last app you have to run it with ''exec'' before it.
exec /usr/bin/fluxbox
# or if you want to keep a log:
# exec /usr/bin/fluxbox -log ~/.fluxbox/log
Top
yabbadabbadont
Advocate
Advocate
User avatar
Posts: 4791
Joined: Fri Mar 14, 2003 12:02 am
Location: 2 exits past crazy

Post by yabbadabbadont » Mon Oct 24, 2005 11:14 pm

Conky probably needs the root window to already be created and painted. I found that starting fluxbox first, sleeping for two seconds, then starting everything else, then waiting on the fluxbox pid to end worked better.

Code: Select all

# fluxbox startup-script:
#
# Lines starting with a '#' are ignored.

# 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

/usr/bin/bsetroot -solid black

# This shows the fluxbox-splash-screen
# fbsetbg -C /usr/share/fluxbox/splash.jpg

# Other examples. Check man xset for details.
#
# Turn off beeps:
xset -b
#
# Increase the keyboard repeat-rate:
xset r rate 250 30
#
# Your own fonts-dir:
# xset +fp /home/yoiks/.font
#
# Your favourite mouse cursor:
# xsetroot -cursor_name right_ptr
#
# Change your keymap:
# xmodmap ~/.Xmodmap

/usr/bin/fluxbox &
fluxpid=$!

# Give fluxbox a chance to startup and draw the root background
sleep 2

# Applications you want to run with fluxbox.
# MAKE SURE THAT APPS THAT KEEP RUNNING HAVE AN ''&'' AT THE END.
#
# unclutter -idle 2 &
# wmnd &
# wmsmixer -w &

gkrellm2 &
sleep 1
idesk &
sleep 1
adesklets

# And last but not least we start fluxbox.
# Because it is the last app you have to run it with ''exec'' before it.

# exec /usr/bin/fluxbox
# or if you want to keep a log:
# exec /usr/bin/fluxbox -log ~/.fluxbox/log

wait $fluxpid
Top
jlowe
n00b
n00b
User avatar
Posts: 25
Joined: Mon Jan 31, 2005 11:13 pm
Location: Louisiana
Contact:
Contact jlowe
Website

Post by jlowe » Wed Oct 26, 2005 10:18 pm

yabbadabbadont wrote:Conky probably needs the root window to already be created and painted. I found that starting fluxbox first, sleeping for two seconds, then starting everything else, then waiting on the fluxbox pid to end worked better.
I tried this, but it still did not work. It doesn't make any sense that even if I put 'aterm &' in the startup file, nothing starts up with fluxbox. I'm not sure what the problem is, but seeing how this is a tips thread, I don't want to keep on about it.

If anyone has other suggestions, I would appreciate it.
Top
dswissmiss
Guru
Guru
User avatar
Posts: 498
Joined: Sun May 23, 2004 12:09 am
Location: New York
Contact:
Contact dswissmiss
Website

Post by dswissmiss » Wed Oct 26, 2005 10:35 pm

I start all my programs in ~/.xinitrc, so I have the line

Code: Select all

conky &
in there.
screenshots
Top
Locked

301 posts
  • Page 10 of 13
    • Jump to page:
  • Previous
  • 1
  • …
  • 8
  • 9
  • 10
  • 11
  • 12
  • 13
  • Next

Return to “Desktop Environments”

Jump to
  • Assistance
  • ↳   News & Announcements
  • ↳   Frequently Asked Questions
  • ↳   Installing Gentoo
  • ↳   Multimedia
  • ↳   Desktop Environments
  • ↳   Networking & Security
  • ↳   Kernel & Hardware
  • ↳   Portage & Programming
  • ↳   Gamers & Players
  • ↳   Other Things Gentoo
  • ↳   Unsupported Software
  • Discussion & Documentation
  • ↳   Documentation, Tips & Tricks
  • ↳   Gentoo Chat
  • ↳   Gentoo Forums Feedback
  • ↳   Duplicate Threads
  • International Gentoo Users
  • ↳   中文 (Chinese)
  • ↳   Dutch
  • ↳   Finnish
  • ↳   French
  • ↳   Deutsches Forum (German)
  • ↳   Diskussionsforum
  • ↳   Deutsche Dokumentation
  • ↳   Greek
  • ↳   Forum italiano (Italian)
  • ↳   Forum di discussione italiano
  • ↳   Risorse italiane (documentazione e tools)
  • ↳   Polskie forum (Polish)
  • ↳   Instalacja i sprzęt
  • ↳   Polish OTW
  • ↳   Portuguese
  • ↳   Documentação, Ferramentas e Dicas
  • ↳   Russian
  • ↳   Scandinavian
  • ↳   Spanish
  • ↳   Other Languages
  • Architectures & Platforms
  • ↳   Gentoo on ARM
  • ↳   Gentoo on PPC
  • ↳   Gentoo on Sparc
  • ↳   Gentoo on Alternative Architectures
  • ↳   Gentoo on AMD64
  • ↳   Gentoo for Mac OS X (Portage for Mac OS X)
  • Board index
  • All times are UTC
  • Delete cookies

© 2001–2026 Gentoo Foundation, Inc.

Powered by phpBB® Forum Software © phpBB Limited

Privacy Policy

 

 

magic