git.lucas.co / cce-compositor
Wayland compositor (wlroots)
git clone https://git.lucas.co/cce-compositor.git

commiteb536c55e08fa08a3df0c86784d11c675af8f1f3
parent05f34c1430
authorIsaac Freund <[email protected]>
date2020-10-25 17:31
docs: add swap to example config script

 contrib/config.sh | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/contrib/config.sh b/contrib/config.sh
index 256567c..b76a809 100755
--- a/contrib/config.sh
+++ b/contrib/config.sh
@@ -16,6 +16,11 @@ riverctl map normal $mod E exit
 riverctl map normal $mod J focus-view next
 riverctl map normal $mod K focus-view previous
 
+# Mod+Shift+J and Mod+Shift+K to swap the focused view with the next/previous
+# view in the layout stack
+riverctl map normal $mod+Shift J swap next
+riverctl map normal $mod+Shift K swap previous
+
 # Mod+Period and Mod+Comma to focus the next/previous output
 riverctl map normal $mod Period focus-output next
 riverctl map normal $mod Comma focus-output previous