From eae0d45afb48e24a1690691d7bf509a7d75f8681 Mon Sep 17 00:00:00 2001 From: somiaj Date: Mon, 21 Jun 2021 10:21:02 -0600 Subject: [PATCH] Add keybindings for move shuffle to default-config. Include key bindings ctrl-alt-arrow_key to move a window around using Move shuffle in the given direction in the default-config. In addition ctrl-alt-shift-arrow_key will grow the window in the given direction. --- default-config/config | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/default-config/config b/default-config/config index 67fae5ce3..43b50d011 100644 --- a/default-config/config +++ b/default-config/config @@ -510,6 +510,27 @@ Mouse 1 I A RaiseMoveX Move "Iconify off" Mouse 3 T A Menu MenuWindowOps Mouse 3 I A Menu MenuIconOps +# Shuffle moves a window in a given direction until it hits another window. +# These bindings will shuffle a window using the arrow keys. +# Ctrl-Alt Up_Arrow - Shuffle window up +# Ctrl-Alt Right_Arrow - Shuffle window right +# Ctrl-Alt Down_Arrow - Shuffle window down +# Ctrl-Alt Left_Arrow - Shuffle window left +# Holding shift (Ctrl-Alt-Shift) will grow the window in the given direction. +DestroyFunc ShuffleDir +AddToFunc ShuffleDir ++ I Move shuffle layers $[w.layer] $[w.layer] snap windows $0 ++ I WarpToWindow 50 50 + +Key Up WTSF CM ShuffleDir up +Key Down WTSF CM ShuffleDir down +Key Left WTSF CM ShuffleDir left +Key Right WTSF CM ShuffleDir right +Key Up WTSF CSM Maximize True 0 growup +Key Down WTSF CSM Maximize True 0 growdown +Key Right WTSF CSM Maximize True growright 0 +Key Left WTSF CSM Maximize True growleft 0 + ####### # 6: Window Decor #