aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIsaac Freund <ifreund@ifreund.xyz>2020-10-25 17:31:10 +0100
committerIsaac Freund <ifreund@ifreund.xyz>2020-10-25 17:31:10 +0100
commit0c7b0de297f913806a9335907a0f4b74eefdb591 (patch)
tree746b082ba6ba9cca4d97c6dc4d6942f8661758ef
parentac1762567c059539762f0a6c481d5bca41369c51 (diff)
downloadriver-0c7b0de297f913806a9335907a0f4b74eefdb591.tar.gz
river-0c7b0de297f913806a9335907a0f4b74eefdb591.tar.xz
docs: add swap to example config script
-rwxr-xr-xcontrib/config.sh5
1 files changed, 5 insertions, 0 deletions
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