From ada29fdc014e9a7103a8b671cbb14186d5217cdb Mon Sep 17 00:00:00 2001
From: somiaj <jaimosskriletz@gmail.com>
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.
---
 default-config/config | 16 ++++++++++++++++
 1 file changed, 16 insertions(+)

diff --git a/default-config/config b/default-config/config
index ea7c073be..204fbe319 100644
--- a/default-config/config
+++ b/default-config/config
@@ -510,6 +510,22 @@ 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
+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
+
 #######
 # 6: Window Decor
 #