Fluxbox is fast and sexy

Sin­ce bbLean has been my favou­ri­te shell for Win­dows for many years it it no sur­pri­se that I like *box-vari­ants on Linux as well.

I pre­fer them not only becau­se they are lean and fast and high­ly con­fi­gura­ble, but most­ly becau­se they sup­port my work­flow and har­dy ever get in the way. And as vir­tual­ly ever­y­thing can be done by key­board-short­cuts they boost my pro­duc­ti­vi­ty – if I can remem­ber the short­cut when nee­ded, that is ;).
Curr­ent­ly I am on flux­box (the blee­ding edge git-ver­si­on), which IMHO has some advan­ta­ges over open­box, the nati­ve hand­ling of (pseudo-)transparency for example.

Final­ly it is all about usea­bi­li­ty and resour­ces. I am not a Gno­me- or KDE-hater – far from – and yet I pre­fer if not 20 % of my pre­cious RAM are allo­ca­ted by the desktop/windowmanager. I need it for working. And I like some eye-can­dy, whe­re it makes sense.

The basic tools you’ll need are, bes­i­de flux­box of cour­se, flu­x­conf, flux­me­nu, flux­keys and flux­style. I recom­mend to get mint-fm2 as well, as it will gene­ra­te a for­mi­da­ble menu from all you instal­led apps (see screenshot).

If you want you can have a look at my con­figs, copy them, use them, modi­fy them to your liking.



[begin] (Arch Linux) </usr/share/icons/nuvola/128x128/places/start-here-kde.png>
[exec] (mic) {xdg-open /home/mic} </home/mic/.icons/gk4ico/16x16/actions/gtk-home.png>
[exec] (Web Brow­ser) {xdg-open https://} </usr/share/icons/nuoveXT2/128x128/categories/applications-internet.png>
[exec] (Ter­mi­nal Emu­la­tor) {xterm} </usr/share/icons/hicolor/16x16/status/terminal-bell.png>
[exec] (Run) {gmrun} </usr/share/icons/hicolor/128x128/apps/kgoldrunner.png>
[include] (/home/mic/.fluxbox/customMenuEntries)
[sepa­ra­tor] (——–)
[include] (/home/mic/.mint-fm2/submenus/Categories)
[sepa­ra­tor] (——–)
[exec] (Quit) {ciao} </home/mic/.icons/gk4ico/16x16/actions/gtk-quit.png>




# flux­box startup-script:
# Lines start­ing with a ‘#’ are ignored.

# Chan­ge key­map – ger­man in this case
setxkbmap ‑model evdev ‑lay­out de nodeadkeys

# num­lock anma­chen / enable num­lock (on,off,toggle)
num­lockx on

# Appli­ca­ti­ons you want to run with fluxbox.
# unclut­ter ‑idle 2 &
# wmnd &
# wms­mi­xer ‑w &
# idesk &

# Hin­ter­grund set­zen / set back­ground with nitrogen
(sleep 2s && nitro­gen –res­to­re) &

# start con­ky – sys­tem-moni­tor (I have seve­ral con­figs, usual­ly you won’t need the ‘-c’-switch)
con­ky ‑c ~/.conkyrc.flux &

# klapp-ter­mi­nal star­ten / start dropdown-terminal
tilda &

# And last but not least we start fluxbox.
# Becau­se it is the last app you have to run it with «exec« befo­re it.
exec fluxbox
# or if you want to keep a log:
# exec flux­box ‑log »/home/mic/.fluxbox/log«




session.screen0.window.focus.alpha: 255
session.screen0.window.unfocus.alpha: 255
session.screen0.clientMenu.usePixmap: true
session.screen0.slit.alpha: 255
session.screen0.slit.layer: Dock
session.screen0.slit.direction: Horizontal
session.screen0.slit.acceptKdeDockapps: true
session.screen0.slit.maxOver: false
session.screen0.slit.autoHide: false
session.screen0.slit.placement: RightBottom
session.screen0.slit.onhead: 0
session.screen0.titlebar.left: Stick
session.screen0.titlebar.right: Mini­mi­ze Maxi­mi­ze Close
session.screen0.menu.alpha: 140
session.screen0.iconbar.iconWidth: 128
session.screen0.iconbar.mode: {sta­tic groups} (minimized=yes)
session.screen0.iconbar.usePixmap: true
session.screen0.iconbar.iconTextPadding: 10l
session.screen0.iconbar.alignment: Relative
session.screen0.toolbar.widthPercent: 80
session.screen0.toolbar.tools: prev­workspace, workspa­ce­na­me, next­workspace, icon­bar, sys­tem­tray, clock
session.screen0.toolbar.alpha: 140
session.screen0.toolbar.placement: TopCenter
session.screen0.toolbar.visible: true
session.screen0.toolbar.layer: Dock
session.screen0.toolbar.height: 0
session.screen0.toolbar.autoHide: false
session.screen0.toolbar.maxOver: false
session.screen0.toolbar.onhead: 1
session.screen0.tabs.usePixmap: true
session.screen0.tabs.maxOver: false
session.screen0.tabs.intitlebar: true
session.screen0.tab.placement: TopLeft
session.screen0.tab.width: 30
session.screen0.tabFocusModel: ClickToTabFocus
session.screen0.autoRaise: true
session.screen0.showwindowposition: false
session.screen0.antialias: true
session.screen0.workspacewarping: true
session.screen0.noFocusWhileTypingDelay: 0l
session.screen0.strftimeFormat: %k:%M
session.screen0.focusModel: ClickFocus
session.screen0.clickRaises: true
session.screen0.workspaceNames: #1,#2,#3,#4,#5,#6,#7,#8,
session.screen0.allowRemoteActions: false
session.screen0.workspaces: 8
session.screen0.maxIgnoreIncrement: false
session.screen0.menuDelay: 200
session.screen0.rowPlacementDirection: LeftToRight
session.screen0.demandsAttentionTimeout: 500
session.screen0.windowPlacement: RowMinOverlapPlacement
session.screen0.tooltipDelay: 500
session.screen0.maxDisableMove: false
session.screen0.focusNewWindows: true
session.screen0.fullMaximization: false
session.screen0.opaqueMove: false
session.screen0.windowMenu: /home/mic/.fluxbox/windowmenu
session.screen0.defaultDeco: NORMAL
session.screen0.colPlacementDirection: TopToBottom
session.screen0.edgeSnapThreshold: 10
session.screen0.maxDisableResize: false
session.tabPadding: 0
session.slitlistFile: ~/.fluxbox/slitlist
session.styleFile: /home/mic/.fluxbox/styles/ColorFlux_Dust_mic
session.configVersion: 13
session.autoRaiseDelay: 250
session.ignoreBorder: false
session.keyFile: ~/.fluxbox/keys
session.appsFile: ~/.fluxbox/apps
session.doubleClickInterval: 250
session.tabsAttachArea: Window
session.colorsPerChannel: 4
session.cacheLife: 5l
session.menuFile: ~/.fluxbox/menu
session.styleOverlay: ~/.fluxbox/overlay
session.cacheMax: 200l
session.forcePseudoTransparency: true




I added this so you can see how flux­box hand­les the auto­ma­gi­cal posi­tio­ning of apps/windows. You don’t have to edit it (though you can of cour­se), as all set­tings are usual­ly done from the tool­bar of the app.

[app] (name=fbrun)
[Posi­ti­on] (CENTER) {0 0}
[Lay­er] {2}
[app] (name=xawtv) (class=Xawtv)
[Workspace] {0}
[Dimen­si­ons] {479 372}
[Posi­ti­on] (UPPERLEFT) {1413 674}
[Sti­cky] {no}
[Lay­er] {6}
[app] (name=Navigator) (class=Firefox) (role=browser)
[Workspace] {0}
[Dimen­si­ons] {785 872}
[Posi­ti­on] (UPPERLEFT) {436 128}
[Clo­se] {yes}
[app] (name=Mail) (class=Thunderbird) (role=3pane)
[Workspace] {1}
[Dimen­si­ons] {1546 1092}
[Posi­ti­on] (UPPERLEFT) {100 22}
[Clo­se] {yes}
[app] (name=gimp‑2.7) (class=Gimp‑2.7) (role=gimp-image-window)
[Workspace] {3}
[Dimen­si­ons] {1776 912}
[Posi­ti­on] (UPPERLEFT) {71 19}
[Clo­se] {yes}
[app] (name=digikam) (class=Digikam) (role=Digikam)
[Workspace] {6}
[Dimen­si­ons] {1798 1106}
[Posi­ti­on] (UPPERLEFT) {28 17}




This one is important, as it holds all the power 🙂
Noti­ce the lines 56, as they allow you to shade/unshade win­dows by using the mou­se-wheel (like in open­box e.g.).

! flux­box-update_­con­figs added ‘(workspace=[current])’ to (Next|Prev)(Window|Group)
! check lines mark­ed by ‘FBCV13’ if they are cor­rect­ly updated
!mou­se actions added by fluxbox-update_configs
OnTit­le­bar Mouse1 :Macro­Cmd {Focus} {Rai­se} {Acti­va­te­Tab}
OnTit­le­bar Mouse4 :Sha­de
OnTit­le­bar Mouse5 :Sha­de
!mou­se actions added by fluxbox-update_configs
OnTit­le­bar Move1 :Start­Mo­ving
OnLeft­Grip Move1 :Start­Re­si­zing bottomleft
OnRight­Grip Move1 :Start­Re­si­zing bottomright
OnWin­dow­Bor­der Move1 :Start­Mo­ving

# click on the desk­top to get menus
OnDesk­top Mouse1 :Hide­Me­nus
OnDesk­top Mouse2 :Workspa­ce­Me­nu
OnDesk­top Mouse3 :Root­Me­nu

# scroll on the desk­top to chan­ge workspaces
OnDesk­top Mouse4 :Prev­Workspace
OnDesk­top Mouse5 :Next­Workspace

# scroll on the tool­bar to chan­ge cur­rent window
OnTool­bar Mouse4 :Prev­Win­dow {sta­tic groups} (workspace=[current]) (iconhidden=no) !! FBCV13 !!
OnTool­bar Mouse5 :Next­Win­dow {sta­tic groups} (workspace=[current]) (iconhidden=no) !! FBCV13 !!

# alt + left/right click to move/resize a window
OnWin­dow Mod1 Mouse1 :Macro­Cmd {Rai­se} {Focus} {Start­Mo­ving}
OnWin­dow­Bor­der Move1 :Start­Mo­ving

OnWin­dow Mod1 Mouse3 :Macro­Cmd {Rai­se} {Focus} {Start­Re­si­zing NearestCorner}
OnLeft­Grip Move1 :Start­Re­si­zing bottomleft
OnRight­Grip Move1 :Start­Re­si­zing bottomright

# alt + midd­le click to lower the window
OnWin­dow Mod1 Mouse2 :Lower

# con­trol-click a window’s title­bar and drag to attach windows
OnTit­le­bar Con­trol Mouse1 :Start­Tab­bing

# dou­ble click on the title­bar to shade
OnTit­le­bar Dou­ble Mouse1 :Sha­de

# left click on the title­bar to move the window
OnTit­le­bar Mouse1 :Macro­Cmd {Rai­se} {Focus} {Acti­va­te­Tab}
OnTit­le­bar Move1 :Start­Mo­ving

# midd­le click on the title­bar to lower
OnTit­le­bar Mouse2 :Lower

# right click on the title­bar for a menu of options
OnTit­le­bar Mouse3 :Win­dow­Me­nu

# alt-tab
Mod1 Tab :Next­Win­dow {groups} (workspace=[current]) (workspace=[current]) !! FBCV13 !!
Mod1 Shift Tab :Prev­Win­dow {groups} (workspace=[current]) (workspace=[current]) !! FBCV13 !!

# cycle through tabs in the cur­rent window
Mod4 Tab :Next­Tab
Mod4 Shift Tab :Prev­Tab

# go to a spe­ci­fic tab in the cur­rent window
Mod4 1 :Tab 1
Mod4 2 :Tab 2
Mod4 3 :Tab 3
Mod4 4 :Tab 4
Mod4 5 :Tab 5
Mod4 6 :Tab 6
Mod4 7 :Tab 7
Mod4 8 :Tab 8
Mod4 9 :Tab 9

# open a terminal
Mod1 F1 :Exec xterm

# open a dia­log to run programs
Mod1 F2 :Exec gmrun

# volu­me set­tings, using com­mon keycodes
# if the­se don’t work, use xev to find out your real keycodes
176 :Exec ami­xer sset Master,0 1+
174 :Exec ami­xer sset Master,0 1-
160 :Exec ami­xer sset Master,0 toggle

# cur­rent win­dow commands
Mod1 F4 :Clo­se
Mod1 F5 :Kill
Mod1 F9 :Mini­mi­ze
Mod1 F10 :Maxi­mi­ze
Mod1 F11 :Full­screen

# open the win­dow menu
Mod1 space :Win­dow­Me­nu

# exit fluxbox
Con­trol Mod1 Dele­te :Exit

# chan­ge to previous/next workspace
Con­trol Mod1 Left :Prev­Workspace
Con­trol Mod1 Right :Next­Workspace

# send the cur­rent win­dow to previous/next workspace
Mod4 Left :Send­To­Prev­Workspace
Mod4 Right :Send­ToN­ext­Workspace

# send the cur­rent win­dow and fol­low it to previous/next workspace
Con­trol Mod4 Left :Take­To­Prev­Workspace
Con­trol Mod4 Right :Take­ToN­ext­Workspace

# chan­ge to a spe­ci­fic workspace
Con­trol F1 :Workspace 1
Con­trol F2 :Workspace 2
Con­trol F3 :Workspace 3
Con­trol F4 :Workspace 4
Con­trol F5 :Workspace 5
Con­trol F6 :Workspace 6
Con­trol F7 :Workspace 7
Con­trol F8 :Workspace 8
Con­trol F9 :Workspace 9
Con­trol F10 :Workspace 10
Con­trol F11 :Workspace 11
Con­trol F12 :Workspace 12

# send the cur­rent win­dow to a spe­ci­fic workspace
Mod4 F1 :Send­To­Workspace 1
Mod4 F2 :Send­To­Workspace 2
Mod4 F3 :Send­To­Workspace 3
Mod4 F4 :Send­To­Workspace 4
Mod4 F5 :Send­To­Workspace 5
Mod4 F6 :Send­To­Workspace 6
Mod4 F7 :Send­To­Workspace 7
Mod4 F8 :Send­To­Workspace 8
Mod4 F9 :Send­To­Workspace 9
Mod4 F10 :Send­To­Workspace 10
Mod4 F11 :Send­To­Workspace 11
Mod4 F12 :Send­To­Workspace 12

# send the cur­rent win­dow and chan­ge to a spe­ci­fic workspace
Con­trol Mod4 F1 :Take­To­Workspace 1
Con­trol Mod4 F2 :Take­To­Workspace 2
Con­trol Mod4 F3 :Take­To­Workspace 3
Con­trol Mod4 F4 :Take­To­Workspace 4
Con­trol Mod4 F5 :Take­To­Workspace 5
Con­trol Mod4 F6 :Take­To­Workspace 6
Con­trol Mod4 F7 :Take­To­Workspace 7
Con­trol Mod4 F8 :Take­To­Workspace 8
Con­trol Mod4 F9 :Take­To­Workspace 9
Con­trol Mod4 F10 :Take­To­Workspace 10
Con­trol Mod4 F11 :Take­To­Workspace 11
Con­trol Mod4 F12 :Take­To­Workspace 12


Have fun! And if you have ques­ti­ons, feel free to ask. I’m not an expert, but I’ll try to help.

Schreibe einen Kommentar