aboutsummaryrefslogtreecommitdiff
path: root/example
diff options
context:
space:
mode:
authorIsaac Freund <ifreund@ifreund.xyz>2021-07-15 22:57:50 +0200
committerIsaac Freund <ifreund@ifreund.xyz>2021-07-21 14:01:51 +0200
commit1d000e566633bc9fd3de1e3ef4de316623798008 (patch)
treed1d6964a55b55ea0c407086281edc68156cdb0cb /example
parent22251fa7edffc1e888c9bc59d5992e95151ef254 (diff)
downloadriver-1d000e566633bc9fd3de1e3ef4de316623798008.tar.gz
river-1d000e566633bc9fd3de1e3ef4de316623798008.tar.xz
rivertile: simplify commands
Instead of having separate commands for modifying/setting a value, use the presence of a +/- sign to indicate modification.
Diffstat (limited to 'example')
-rwxr-xr-xexample/init16
1 files changed, 8 insertions, 8 deletions
diff --git a/example/init b/example/init
index 886beae..ae85914 100755
--- a/example/init
+++ b/example/init
@@ -41,12 +41,12 @@ riverctl map normal $mod+Shift Comma send-to-output previous
riverctl map normal $mod Return zoom
# Mod+H and Mod+L to decrease/increase the main ratio of rivertile(1)
-riverctl map normal $mod H send-layout-cmd rivertile "mod-main-ratio -0.05"
-riverctl map normal $mod L send-layout-cmd rivertile "mod-main-ratio +0.05"
+riverctl map normal $mod H send-layout-cmd rivertile "main-ratio -0.05"
+riverctl map normal $mod L send-layout-cmd rivertile "main-ratio +0.05"
# Mod+Shift+H and Mod+Shift+L to increment/decrement the main count of rivertile(1)
-riverctl map normal $mod+Shift H send-layout-cmd rivertile "mod-main-count +1"
-riverctl map normal $mod+Shift L send-layout-cmd rivertile "mod-main-count -1"
+riverctl map normal $mod+Shift H send-layout-cmd rivertile "main-count +1"
+riverctl map normal $mod+Shift L send-layout-cmd rivertile "main-count -1"
# Mod+Alt+{H,J,K,L} to move views
riverctl map normal $mod+Mod1 H move left 100
@@ -102,10 +102,10 @@ riverctl map normal $mod Space toggle-float
riverctl map normal $mod F toggle-fullscreen
# Mod+{Up,Right,Down,Left} to change layout orientation
-riverctl map normal $mod Up send-layout-cmd rivertile "set-main-location top"
-riverctl map normal $mod Right send-layout-cmd rivertile "set-main-location right"
-riverctl map normal $mod Down send-layout-cmd rivertile "set-main-location bottom"
-riverctl map normal $mod Left send-layout-cmd rivertile "set-main-location left"
+riverctl map normal $mod Up send-layout-cmd rivertile "main-location top"
+riverctl map normal $mod Right send-layout-cmd rivertile "main-location right"
+riverctl map normal $mod Down send-layout-cmd rivertile "main-location bottom"
+riverctl map normal $mod Left send-layout-cmd rivertile "main-location left"
# Declare a passthrough mode. This mode has only a single mapping to return to
# normal mode. This makes it useful for testing a nested wayland compositor