Work at SourceForge, help us to make it a better place! We have an immediate need for a Support Technician in our San Francisco or Denver office.

Close

#128 2D workspace geometry

open
nobody
None
5
2013-02-10
2007-10-17
Pierre Larsson
No

Adds 2D workspace geometry to Fluxbox.

Applicable on 1.0.rc3 and 1.0 final.

New keybinds => UpWorkspace, DownWorkspace
New options => session.screen0.workspacesPerRow

Example configuration for a three columns / two rows layout ("browsed" by the Mod1+Control+Arrow keys):

.fluxbox/keys
Mod1 Control Left :LeftWorkspace 1
Mod1 Control Right :RightWorkspace 1
Mod1 Control Up :UpWorkspace
Mod1 Control Down :DownWorkspace

.fluxbox/init
session.screen0.workspacesPerRow: 3
session.screen0.workspaces: 6

Please note, that the keybinds "PrevWorkspace" and "NextWorkspace" is not affected by this patch and hence will still browse through the workspaces in the original manner (wrapping from last<->first workspace). To get the real "feeling" of 2D geometry (with boundaries), use the above key commands.

To disable the 2D Workspace behavior, either remove the workspacesPerRow option or define it as 0 or a number greater than your number of workspaces.

Discussion

  • Pierre Larsson
    Pierre Larsson
    2007-10-17

    2Dworkspaces.patch

     
    Attachments
  • Logged In: YES
    user_id=1538990
    Originator: NO

    Yes, I'd been meaning to add this functionality myself. One comment I have is that you might want to take layout information from the EWMH hint _NET_DESKTOP_LAYOUT -- see http://standards.freedesktop.org/wm-spec/wm-spec-latest.html#id2510610 . Also, people will immediately ask for dragging right through the boundary to take them to the left workspace in the same row. This functionality should be available.

    I'll try it out, though, and see what I think needs to be changed.