summary refs log tree commit diff
path: root/cwmrc.5
diff options
context:
space:
mode:
authorokan <okan>2017-12-07 16:25:33 +0000
committerokan <okan>2017-12-07 16:25:33 +0000
commit0fc9d47fb407a65fd08e3095fface42eb93ac914 (patch)
tree4f53758a765d7b0649c8cb24d839001160ca4e0b /cwmrc.5
parentf0524fe07a3a671f706d7183bb0cfbc6c8f09780 (diff)
downloadcwm-0fc9d47fb407a65fd08e3095fface42eb93ac914.tar.gz
cwm-0fc9d47fb407a65fd08e3095fface42eb93ac914.tar.xz
cwm-0fc9d47fb407a65fd08e3095fface42eb93ac914.zip
Original idea from Dimitris Papastamos to move windows to corners a while ago;
re-proposed by Julien Steinhauser with an updated diff. Apparently this was in
the original calmnwm.

However, expand the original idea and let clients 'snap' to edges instead,
neatly allowing key bindings that snap to adjacent edges (i.e. corners) as
well. No default bindings assigned.
Diffstat (limited to 'cwmrc.5')
-rw-r--r--cwmrc.516
1 files changed, 16 insertions, 0 deletions
diff --git a/cwmrc.5 b/cwmrc.5
index a29fd12..6851faa 100644
--- a/cwmrc.5
+++ b/cwmrc.5
@@ -398,6 +398,22 @@ pixels right.
 Resize window 10 times
 .Ar moveamount
 pixels left.
+.It window-snap-up
+Snap window to top edge.
+.It window-snap-down
+Snap window to bottom edge.
+.It window-snap-right
+Snap window to right edge.
+.It window-snap-left
+Snap window to left edge.
+.It window-snap-up-right
+Snap window to top-right corner.
+.It window-snap-up-left
+Snap window to top-left corner.
+.It window-snap-down-right
+Snap window to bottom-right corner.
+.It window-snap-down-left
+Snap window to bottom-left corner.
 .It pointer-move-up
 Move pointer
 .Ar moveamount