LL      IIIII NN   NN KK  KK EEEEEEE RRRRRR  RRRRRR   OOOOO  RRRRRR 
LL       III  NNN  NN KK KK  EE      RR   RR RR   RR OO   OO RR   RR
LL       III  NN N NN KKKK   EEEEE   RRRRRR  RRRRRR  OO   OO RRRRRR 
LL       III  NN  NNN KK KK  EE      RR  RR  RR  RR  OO   OO RR  RR 
LLLLLLL IIIII NN   NN KK  KK EEEEEEE RR   RR RR   RR  OOOOO  RR   RR
                                                           ramblings
____________________________________________________________________
Posted on: Monday, November 2nd, 2015 at 16:23.
Filed under: All.
RSS 2.0 feed for comments.
You can skip to the end and leave a response. Pinging is currently not allowed.

Here’s a branch which revamps the fluxbox tiling code and adds a new padding feature for tiled windows (aka ‘useless gaps’).

All of the old tiling mechanisms (ArrangeWindows, ArrangeWindowsVertical, ArrangeWindowsStackedLeft, etc,… ) were handled by one single monster function which became harder and harder to extend.

The solution I implemented is to have a separate command class for each tiling mechanism, which inherit a base class that takes care of most of the code shared by all tiling mechanisms.

You can configure the padding using

session.screen0.tiling.padding: 20

in your ~/.fluxbox/init file (The default is 10) (units are pixels)

Screenshot:
fluxbox useless gaps screenshot

Branch can be found here: https://github.com/jnse/fluxbox/tree/feature/tiling_redone

New files:

Slightly changed files:

The commands are slightly renamed (they were kind of long), ~/.fluxbox/keys example:

Mod4 a :TileGrid (name!=tint2) (class!=Pidgin)
Mod4 Left :TileStackedLeft (name!=tint2) (class!=Pidgin)
Mod4 h :TileHorizontal (name!=tint2) (class!=Pidgin)
Mod4 v :TileVertical (name!=tint2) (class!=Pidgin)
Mod4 Right :TileStackedRight (name!=tint2) (class!=Pidgin)
Mod4 Up :TileStackedTop (name!=tint2) (class!=Pidgin)
Mod4 Down :TileStackedBottom (name!=tint2) (class!=Pidgin)

pixelstats trackingpixel
____________________________________________________________________
____________________________________________________________________

Leave a Reply