Author Topic: Fluxbox  (Read 3828 times)

LinuxGadget

  • Newbie
  • *
  • Posts: 44
    • View Profile
Fluxbox
« on: December 16, 2007, 06:30:27 pm »
Hi,

spent my weekend with Debian EABI and fluxbox:

http://www.flickr.com/photos/janwinkel/2115693635

Best of all: fluxbox is working for non-root users, too.
Will post howto on tuesday.   Stay tuned!
C1000, 2.6.24-yonggun, Debian EABI

scottlfa

  • Sr. Member
  • ****
  • Posts: 281
    • View Profile
    • http://
Fluxbox
« Reply #1 on: December 16, 2007, 06:40:43 pm »
CONGRATS!!!
"So there I was, spitting on my goldfish trying to keep it alive ..."
---------------------------------------------------------------< O >-------------------------------------------------------
Viliv N5 [Debian]
Acer One Running OSX 10.5.7 [Dell 3190 & Ram Upgraded]
SL-C1000 [ZUbuntu], JasJar [WM 6.5], Nokia N900, and Samsung Galaxy S 4G.
Sony Ux280P [Kbuntu 10.4 Lucid], PsP Go and DSi

LinuxGadget

  • Newbie
  • *
  • Posts: 44
    • View Profile
Fluxbox
« Reply #2 on: December 18, 2007, 06:09:15 pm »
Bug reports and corrections welcome!


1. Install xdm, fluxbox, eterm, xmonobut

    
Code: [Select]
apt-get install xdm fluxbox eterm xmonobut
2. Changing kdrive to full blown xserver, the overhead isn't that big as told by some people
   
Code: [Select]
mv /usr/bin/X /usr/bin/X.old
ln -s /usr/bin/Xfbdev X

4. Change the configs for fluxbox, see the attachements. (You have to remove the .txt)

Code: [Select]
cd /root/
mkdir .fluxbox
nano startup

Most important is the xmonobut sequence, to get the mouse working, "Calendar"+tap=middle mouse button, "Address"+tap=right mouse button.
Code: [Select]
# fluxbox startup-script:

# Applications you want to run with fluxbox.
# MAKE SURE THAT APPS THAT KEEP RUNNING HAVE AN ''&'' AT THE END.

# hide idle mouse pointer
unclutter -idle 2 &

# fire up fluxbox
/usr/bin/fluxbox & wmpid=$!

# middle button = "Calendar", right button = "Address"
/usr/local/bin/xmonobut -k 68 -m 67 -c &

# some wallpaper
fbsetbg -f /home/ojw/3tux.jpg

# i love mpd & ncmpc
rxvt-xterm --geometry 70x8-0+0 -e ncmpc

# waiting for fluxbox and all started processes to finish
wait $wmpid

# cleaning up fontpath, in case we messed it up
xset fp default



We need a menu  You have to be root or sudoer for xdm stop .

Code: [Select]
nano menu
Code: [Select]
[begin] (fluxbox)
[include] (/etc/X11/fluxbox/system.fluxbox-menu)
[include] (/etc/X11/fluxbox/fluxbox.menu-user)
[exec] (Rxvt) {/usr/bin/rxvt-xterm}  
[exec] (xdm stop) {/etc/init.d/xdm stop}
[end]


Next part isn't working all the time, don't know why. What i am trying to do is hiding the xmonobut window.

Code: [Select]
nano apps
Code: [Select]
[app] (name=xmonobut) (class=)
  [Position]    (UPPERLEFT)    {0 0}
  [Hidden]    {yes}
  [Close]    {yes}
[end]


Now for the best . Fluxbox is nice and easy configurable.

Code: [Select]
nano keys
Code: [Select]
# Fluxbox keys for Zaurus

# mouse & menu stuff
# Mouse2 -> "Calendar"+ click
# Mouse3 -> "Address" + click

OnDesktop Mouse1 :HideMenus  
OnDesktop Mouse2 :WorkspaceMenu  
OnDesktop Mouse3 :RootMenu

# Mod1 -> Alt_L

Mod1 Right :NextWindow
Mod1 Left Tab :PrevWindow

Control Mod1 Right :NextWorkspace
Control Mod1  Left :PrevWorkspace

Control Mod1 1 :Workspace 1
Control Mod1 2 :Workspace 2
Control Mod1 3 :Workspace 3
Control Mod1 4 :Workspace 4

# F11 -> menu button

F11 :RootMenu

# Mod4 -> Fn

Mod4 2 :ExecCommand fbrun -w 500 -text alsamixer
Mod4 t :ExecCommand rxvt-xterm
Mod4 m :MaximizeWindow
Shift Mod4 m :MaximizeVertical
Control Mod4 m :MaximizeHorizontal
Control Shift Mod4 m :Fullscreen
Mod4 Shift minus :Minimize


# F12 -> Home

Control Mod4 F12 :ExecCommand apm --suspend

5. In your home directory create a file .xsession:

Code: [Select]
exec startfluxbox
Now let's try it:

Code: [Select]
/etc/init.d/xdm start

Have fun!

[edit Mi 19. Dez 20:37:13 CET 2007]: @-bug in keys corrected. New attachment.
« Last Edit: December 19, 2007, 02:39:42 pm by LinuxGadget »
C1000, 2.6.24-yonggun, Debian EABI

dlj0

  • Full Member
  • ***
  • Posts: 218
    • View Profile
Fluxbox
« Reply #3 on: December 19, 2007, 12:17:59 am »
[quote name='LinuxGadget' date='Dec 18 2007, 06:09 PM' post='172862']
Bug reports and corrections welcome!

2. Changing kdrive to full blown xserver, the overhead isn't that big as told by some people
   
Code: [Select]
mv /usr/bin/X /usr/bin/X.old
ln -s /usr/bin/Xfbdev X
[\quote]

Huh?  This runs the kdrive server, which is XFbdev.  The xorg server is the "full-blown" one, which uses about 4x as much memory.
Zaurus:  SL C3100
ROM:  eabi debian/sid

LinuxGadget

  • Newbie
  • *
  • Posts: 44
    • View Profile
Fluxbox
« Reply #4 on: December 19, 2007, 02:35:34 pm »
@dlj0:  OMG, you're right. I totally got this wrong. Thanks for pointing out.  



P.S.: There is a bug in the keys-file. Please change the line
Code: [Select]
Mod4 minus :Minimizeto
Code: [Select]
Mod4 Shift minus :Minimizeotherwise you can't enter the '@' -sign.
C1000, 2.6.24-yonggun, Debian EABI