aboutsummaryrefslogtreecommitdiff
path: root/contrib
diff options
context:
space:
mode:
authorLeon Henrik Plickat <leonhenrik.plickat@stud.uni-goettingen.de>2020-10-07 03:00:57 +0200
committerIsaac Freund <ifreund@ifreund.xyz>2020-10-07 21:03:59 +0200
commitb2f13f5bcc072cd907c85de4d82315ffb386e6a1 (patch)
treeb4b3cadff9f8dcbbbf1e82d0e9f520e10d6c1349 /contrib
parent6f9ecd4edaff143b9d0e761e4b3c7fcd9d7a0a32 (diff)
downloadriver-b2f13f5bcc072cd907c85de4d82315ffb386e6a1.tar.gz
river-b2f13f5bcc072cd907c85de4d82315ffb386e6a1.tar.xz
Implement "move", "snap" and "resize" commands
Diffstat (limited to 'contrib')
-rwxr-xr-xcontrib/config.sh18
1 files changed, 18 insertions, 0 deletions
diff --git a/contrib/config.sh b/contrib/config.sh
index 3b51bbe..1e1bdc1 100755
--- a/contrib/config.sh
+++ b/contrib/config.sh
@@ -37,6 +37,24 @@ riverctl map normal $mod L mod-master-factor +0.05
riverctl map normal $mod+Shift H mod-master-count +1
riverctl map normal $mod+Shift L mod-master-count -1
+# Mod+Alt+{H,J,K,L} to move views
+riverctl map normal $mod+Mod1 H move left 100
+riverctl map normal $mod+Mod1 J move down 100
+riverctl map normal $mod+Mod1 K move up 100
+riverctl map normal $mod+Mod1 L move right 100
+
+# Mod+Alt+Control+{H,J,K,L} to snap views to screen edges
+riverctl map normal $mod+Mod1+Control H snap left
+riverctl map normal $mod+Mod1+Control J snap down
+riverctl map normal $mod+Mod1+Control K snap up
+riverctl map normal $mod+Mod1+Control L snap right
+
+# Mod+Alt+Shif+{H,J,K,L} to resize views
+riverctl map normal $mod+Mod1+Shift H resize horizontal -100
+riverctl map normal $mod+Mod1+Shift J resize vertical 100
+riverctl map normal $mod+Mod1+Shift K resize vertical -100
+riverctl map normal $mod+Mod1+Shift L resize horizontal 100
+
# Mod + Left Mouse Button to move views
riverctl map-pointer normal $mod BTN_LEFT move-view