aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn Sennesael <john@adminking.com>2013-08-02 06:56:07 (GMT)
committerMathias Gumz <akira at fluxbox dot org>2013-08-02 06:56:07 (GMT)
commit57ec44e9940992554c8d55b09e885f9c020a209d (patch)
tree3bb61c8fff06cf677163d38f162dc86c9c4b5e7b
parent58e09b719077605efadac9b712acb8f5e752f732 (diff)
downloadfluxbox-57ec44e9940992554c8d55b09e885f9c020a209d.zip
fluxbox-57ec44e9940992554c8d55b09e885f9c020a209d.tar.bz2
Add support for stacked tiling via ArrangeWindows*
-rw-r--r--doc/asciidoc/fluxbox-keys.txt17
-rw-r--r--src/WorkspaceCmd.cc116
-rw-r--r--src/WorkspaceCmd.hh8
3 files changed, 124 insertions, 17 deletions
diff --git a/doc/asciidoc/fluxbox-keys.txt b/doc/asciidoc/fluxbox-keys.txt
index 02fc745..4d92c43 100644
--- a/doc/asciidoc/fluxbox-keys.txt
+++ b/doc/asciidoc/fluxbox-keys.txt
@@ -417,6 +417,23 @@ doing so.
417 splits (windows on top of eachother). See *CLIENT PATTERNS* for more about the 417 splits (windows on top of eachother). See *CLIENT PATTERNS* for more about the
418 'pattern' arguments. 418 'pattern' arguments.
419 419
420*ArrangeWindowsStackLeft* 'pattern' / *ArrangeWindowsStackRight* 'pattern'::
421 Similar to *ArrangeWindows*, these commands arrange windows on the current
422 workspace. The currently focussed window is used as the 'main' window, and
423 will fill half the screen, while the other windows are tiled on the
424 other half of the screen as if they were tiled with ArrangeWindows.
425 *ArrangeWindowsStackLeft* puts the main window on the RIGHT hand side of the
426 screen, and the tiled windows are on the LEFT hand side of the screen.
427 *ArrangeWindowsStackRight* puts the main window on the LEFT hand side of the
428 screen, and the tiled windows are on the RIGHT hand side of the screen.
429
430*ArrangeWindowsStackTop* 'pattern' / *ArrangeWindowsStackBottom 'pattern'::
431 Behaves just like *ArrangeWindowsStackLeft* and *ArrangeWindowsStackRight*.
432 *ArrangeWindowsStackBottom* places the main window on the TOP half of the
433 screen, and the tiled windows on the bottom half of the screen.
434 *ArrangeWindowsStackTop* places the main window on the BOTTOM half of the
435 screen and the tiled windows on the top half of the screen.
436
420*ShowDesktop*:: 437*ShowDesktop*::
421 Minimizes all windows on the current workspace. If they are already all 438 Minimizes all windows on the current workspace. If they are already all
422 minimized, then it restores them. 439 minimized, then it restores them.
diff --git a/src/WorkspaceCmd.cc b/src/WorkspaceCmd.cc
index 42cc05e..2d4de03 100644
--- a/src/WorkspaceCmd.cc
+++ b/src/WorkspaceCmd.cc
@@ -186,7 +186,20 @@ FbTk::Command<void> *parseWindowList(const string &command,
186 } else if (command == "arrangewindowshorizontal") { 186 } else if (command == "arrangewindowshorizontal") {
187 int method = ArrangeWindowsCmd::HORIZONTAL; 187 int method = ArrangeWindowsCmd::HORIZONTAL;
188 return new ArrangeWindowsCmd(method,pat);