Author Topic: Using FLUXBOX as a Window Manager  (Read 33158 times)

PackRat

  • Posts: 2122
    • View Profile
    • PackRat configs on github
Re: Using FLUXBOX as a Window Manager
« Reply #75 on: October 21, 2017, 08:50:29 PM »
Current key bindings for tiling - makes use of the key pad on this laptop, no numlock is stated (numlockx in the ~/.fluxbox/startup)

Code: [Select]
# manual tiling with key chains - using chains to avoid clash with keybindings #

! this will tile tint2  panel
!Mod1 Shift m :ArrangeWindowsHorizontal
!Mod1 Shift n :ArrangeWindowsVertical

Ctrl a Mod4 h :MacroCmd {ResizeTo 48% 98%} {MoveTo 1% 1% UpperLeft}
Ctrl a Mod4 j :MacroCmd {ResizeTo 48% 98%} {MoveTo 1% 1% UpperRight}
Ctrl a Mod4 k :MacroCmd {ResizeTo 98% 48%} {MoveTo 1% 1% UpperLeft}
Ctrl a Mod4 l :MacroCmd {ResizeTo 98% 48%} {MoveTo 1% 1% LowerLeft}

Ctrl a Mod4 KP_4 :MacroCmd {SetDecor BORDER} {ResizeTo 48% 98%} {MoveTo 1% 1% UpperLeft}
Ctrl a Mod4 KP_6 :MacroCmd {SetDecor BORDER} {ResizeTo 48% 98%} {MoveTo 1% 1% UpperRight}
Ctrl a Mod4 KP_8 :MacroCmd {SetDecor BORDER} {ResizeTo 98% 48%} {MoveTo 1% 1% UpperLeft}
Ctrl a Mod4 KP_2 :MacroCmd {SetDecor BORDER} {ResizeTo 98% 48%} {MoveTo 1% 1% LowerLeft}

Ctrl a Mod1 h :MacroCmd {ResizeTo 48% 48%} {MoveTo 1% 1% UpperLeft}
Ctrl a Mod1 j :MacroCmd {ResizeTo 48% 48%} {MoveTo 1% 1% UpperRight}
Ctrl a Mod1 k :MacroCmd {ResizeTo 48% 48%} {MoveTo 1% 1% LowerLeft}
Ctrl a Mod1 l :MacroCmd {ResizeTo 48% 48%} {MoveTo 1% 1% LowerRight}

Ctrl a Mod1 KP_7 :MacroCmd {SetDecor BORDER} {ResizeTo 48% 48%} {MoveTo 1% 1% UpperLeft}
Ctrl a Mod1 KP_9 :MacroCmd {SetDecor BORDER} {ResizeTo 48% 48%} {MoveTo 1% 1% UpperRight}
Ctrl a Mod1 KP_1 :MacroCmd {SetDecor BORDER} {ResizeTo 48% 48%} {MoveTo 1% 1% LowerLeft}
Ctrl a Mod1 KP_3 :MacroCmd {SetDecor BORDER} {ResizeTo 48% 48%} {MoveTo 1% 1% LowerRight}

Ctrl a Mod1 KP_8 :MacroCmd {ResizeTo 70% 48%} {MoveTo 0% 1% Top}
Ctrl a Mod1 KP_2 :MacroCmd {ResizeTo 70% 48%} {MoveTo 0% 1% Bottom}

Ctrl a Mod4 c :MacroCmd {SetDecor 0x66f} {ResizeTo 85% 95%} {MoveTo 0 0 Center}
Ctrl a Mod4 x :MacroCmd {SetDecor BORDER} {ResizeTo 85% 95%} {MoveTo 0 0 Center}

Ctrl a Mod1 F12 :ToggleDecor
Mod1 Shift F12 :MacroCmd {SetDecor TAB}

Mod1 Shift d :ToggleCmd {ShowDesktop} {DeIconify all originquiet}

Mod1 Shift F10 :MacroCmd {ToggleDecor} {Maximize}
I am tired of talk that comes to nothing.
-- Chief Joseph

...the sun, the darkness, the winds are all listening to what we have to say.
-- Geronimo

PackRat

  • Posts: 2122
    • View Profile
    • PackRat configs on github
Re: Using FLUXBOX as a Window Manager
« Reply #76 on: March 15, 2018, 03:11:38 PM »
Was reading through the man page for fluxbox to look for something I spotted in the ~/.fluxbox/init file (the fluxbox resource file) and I came across this:

Quote
session.titlebar.{left|right}: buttons
           The buttons or icons to place in the titlebar of decorated windows.
           You may specify any number, space-delimited.

           The available options are:
               Close Maximize MenuIcon Minimize Shade Stick LHalf RHalf

           Default left: Stick

           Default right: Shade Minimize Maximize Close

           LHalf and RHalf are buttons to quickly place a window into the left
           and right half of the current monitor.

I never knew abouit the LHalf and RHalf buttons before; I've seen lhalf.pixmap and rhalf.pixmap settings in themes before, but thought it was a reference to the window.

So I checked them out, and sure enough it's a button to tile left/right on the screen:



Unfortunately, they do not toggle like the Maximize, Shade, and Stick button do so the use is limited. Still, and interesting feature of fluxbox.
I am tired of talk that comes to nothing.
-- Chief Joseph

...the sun, the darkness, the winds are all listening to what we have to say.
-- Geronimo