aboutsummaryrefslogtreecommitdiff
path: root/example
diff options
context:
space:
mode:
authorIsaac Freund <ifreund@ifreund.xyz>2021-04-27 11:43:45 +0200
committerIsaac Freund <ifreund@ifreund.xyz>2021-04-27 11:43:45 +0200
commit1b6e6de99e27fce9ed2212ba550bc3b4d9cc03c3 (patch)
tree992595992a64a56f06a1901ee383a59ba329aab9 /example
parent07fd1b86caebc21242bd12bc86de03aa3b0b3b51 (diff)
downloadriver-1b6e6de99e27fce9ed2212ba550bc3b4d9cc03c3.tar.gz
river-1b6e6de99e27fce9ed2212ba550bc3b4d9cc03c3.tar.xz
example/init: use riverctl layout value commands
Diffstat (limited to 'example')
-rwxr-xr-xexample/init22
1 files changed, 10 insertions, 12 deletions
diff --git a/example/init b/example/init
index 7afc9bb..d4e6bbb 100755
--- a/example/init
+++ b/example/init
@@ -40,15 +40,13 @@ riverctl map normal $mod+Shift Comma send-to-output previous
# Mod+Return to bump the focused view to the top of the layout stack
riverctl map normal $mod Return zoom
-# Mod+H and Mod+L to decrease/increase the main_factor option by 0.05
-# rivertile(1) uses this option to determine the width of the main stack.
-#riverctl map normal $mod H spawn riverctl mod-option -focused-output main_factor -0.05
-#riverctl map normal $mod L spawn riverctl mod-option -focused-output main_factor +0.05
+# Mod+H and Mod+L to decrease/increase the main_factor value of rivertile by 0.05
+riverctl map normal $mod H mod-layout-value rivertile fixed main_factor -0.05
+riverctl map normal $mod I mod-layout-value rivertile fixed main_factor +0.05
-# Mod+Shift+H and Mod+Shift+L to increment/decrement the main_count option.
-# rivertile(1) uses this option to determine the number of "main" views in the layout.
-#riverctl map normal $mod+Shift H spawn riverctl mod-option -focused-output main_count +1
-#riverctl map normal $mod+Shift L spawn riverctl mod-option -focused-output main_count -1
+# Mod+Shift+H and Mod+Shift+L to increment/decrement the main_count value of rivertile.
+riverctl map normal $mod+Shift H mod-layout-value rivertile int main_count +1
+riverctl map normal $mod+Shift I mod-layout-value rivertile int main_count -1
# Mod+Alt+{H,J,K,L} to move views
riverctl map normal $mod+Mod1 H move left 100
@@ -104,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 spawn riverctl set-option -focused-output main_location top
-#riverctl map normal $mod Right spawn riverctl set-option -focused-output main_location right
-#riverctl map normal $mod Down spawn riverctl set-option -focused-output main_location bottom
-#riverctl map normal $mod Left spawn riverctl set-option -focused-output main_location left
+riverctl map normal $mod Up set-layout-value rivertile string main_location top
+riverctl map normal $mod Right set-layout-value rivertile string main_location right
+riverctl map normal $mod Down set-layout-value rivertile string main_location bottom
+riverctl map normal $mod Left set-layout-value rivertile string 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