My fluxbox configuration

Share your wisdom. Not for support questions!

Moderator: How-to Curator

My fluxbox configuration

Postby Lou » July 27th, 2013, 11:02 pm

HOWTO: My Fluxbox (fb) Configuration

DISCUSS

If you right-click on titlebar (on top), toolbar (at the bottom) or in the Desktop, you will
get menus to configure fb. In addition, the files .fluxbox/keys and .fluxbox/init will do too.

My configuration is spartan, mostly keybindings, which in my mind it's lighter uses less RAM
for my old desktop computer.

You can change Styles from the RootMenu and add wallpapers with feh, just google for it, i don't
use them.


INSTALLATION
Code: Select all
# apt-get update && apt-get install fluxbox menu feh sudo


SUDO CONFIGURATION
I added the following line to /etc/sudoers, using my username:

Code: Select all
macondo ALL = NOPASSWD : ALL


save/close the editor

Edited the file .fluxbox/keys and added and eliminated what i don't use:

Code: Select all
# alt-tab
Mod1 Tab :NextWindow {groups} (workspace=[current])

# menus and apps launching
F1 :Exec xterm
F2 :Exec fbrun
F4 :RootMenu
F5 :WindowMenu

Mod4 e :Exec xfe
Mod4 f :Exec iceweasel
Mod4 u :Exec xchat
Mod4 l :Exec libreoffice
Mod4 m :Exec claws-mail
Mod4 o :Exec mousepad
Mod4 r :restart
Print :Exec xterm -e scrot -cd 10
Mod4 h :Exec sudo halt -p
Mod4 p :Exec sudo reboot

# Sound volume
Mod4 Up :Exec amixer sset Master,0 6+
Mod4 Down :Exec amixer sset Master,0 6-
0 :Exec amixer sset Master,0 toggle


# commands for the windows
Mod4 k :Close
F9 :Minimize
F12 :Maximize
F11 :Fullscreen

# switching virtual desktops
Mod4 Left :PrevWorkspace
Mod4 Right :NextWorkspace


Then i edited some lines in the file .fluxbox/init :

Code: Select all

session.screen0.toolbar.tools:   prevworkspace, workspacename, nextworkspace, prevwindow, nextwindow, iconbar, systemtray, clock
                                 #put the clock at the far right.
session.screen0.workspaces:   2
session.screen0.focusModel:   MouseFocus
session.screen0.strftimeFormat: %A.%d.%m.%Y  %R   


The rest i did with the menus like moving the toolbar to the top. Then went to the Desktop and
from the RootMenu clicked on Restart.
From now on, i can restart with: winkey + r

Code: Select all
Mod4 = Windows key = winkey



HOW DOES IT WORK
Looking at .fluxbox/keys:

APPS LAUNCHING
Alt-Tab comes by default
F1 launches the terminal you like
F2 launches fbrun
F4 launches the RootMenu
F5 launches the WindowMenu
winkey + e = xfe
winkey + m = claws-mail
winkey + l = libreoffice
And so forth...

TO SWITCH DESKTOPS
I only use 2 virtual desktops so,

winkey + right arrow takes me to the next desktop
winkey + left arrow takes me the previous desktop

TO SHUTDOWN OR REBOOT THE MACHINE
winkey + h shuts it down
winkey + p reboots it

TO CONTROL THE SOUND VOLUME
winkey + Up arrow increases the volume
winkey + Down arrow decreases the volume
Pressing the zero (0) key will mute the sound, (if you press 0 again, goes back to normal)

MANAGING THE WINDOWS
winkey + k closes the app
F9 minimizes the app and puts it in the toolbar
F12 maximizes the app
F11 by default maximizes the screen


ELIMINATION OF THE TITLEBAR
in your .fluxbox/apps, add this:

Code: Select all
[app] (.*)
[Deco] {NONE}
[end]


Restart (winkey+r)
Eliminates the taskbar on all apps (decorations).

Thanks to AnInkedSoul who referred me to the following thread and to notthatguy for writing it:
viewtopic.php?f=7&t=2489

DISCUSS
Debian Jessie w/o systemd - icewm
User avatar
Lou
 
Posts: 235
Joined: April 5th, 2011, 3:58 pm

Return to HowTo

Who is online

Users browsing this forum: No registered users and 1 guest

cron

x