From 65be7e8eac9135c22af4a37cc5a05392c1cc8fc4 Mon Sep 17 00:00:00 2001 From: Marty Oehme Date: Tue, 14 Dec 2021 15:31:10 +0100 Subject: [PATCH] river: Move often used keybinds around Moved border snapping/aligning to a quicker key combination (mod+ctrl+hjkl) and instead move rivercarro layout changes t the more inaccessible extra moving mode (alt+r). --- wayland/.config/river/init | 36 ++++++++++++++++-------------------- 1 file changed, 16 insertions(+), 20 deletions(-) diff --git a/wayland/.config/river/init b/wayland/.config/river/init index d6e214d..2327311 100755 --- a/wayland/.config/river/init +++ b/wayland/.config/river/init @@ -98,20 +98,18 @@ riverctl map normal $mod+Shift K swap previous # bump the focused view to the top of the layout stack riverctl map normal $mod+Shift Return zoom -# decrease/increase the main ratio of layout -riverctl map normal $mod+Shift H send-layout-cmd rivercarro "main-ratio -0.05" -riverctl map normal $mod+Shift L send-layout-cmd rivercarro "main-ratio +0.05" - -# increment/decrement the main count of layout -riverctl map normal $mod+Control H send-layout-cmd rivercarro "main-count +1" -riverctl map normal $mod+Control L send-layout-cmd rivercarro "main-count -1" - # change layout orientation riverctl map normal $mod Up send-layout-cmd rivercarro "main-location top" riverctl map normal $mod Right send-layout-cmd rivercarro "main-location right" riverctl map normal $mod Down send-layout-cmd rivercarro "main-location bottom" riverctl map normal $mod Left send-layout-cmd rivercarro "main-location left" +# snap views to screen edges +riverctl map normal $mod+Control H snap left +riverctl map normal $mod+Control J snap down +riverctl map normal $mod+Control K snap up +riverctl map normal $mod+Control L snap right + # Mod+F to toggle fullscreen riverctl map normal $mod F toggle-fullscreen @@ -126,24 +124,22 @@ riverctl map-pointer normal $mod BTN_RIGHT resize-view riverctl declare-mode interact_float riverctl map normal $modemod R enter-mode interact_float riverctl map interact_float $modemod R enter-mode normal - # resize views on screen riverctl map interact_float $mod H resize horizontal -100 riverctl map interact_float $mod J resize vertical 100 riverctl map interact_float $mod K resize vertical -100 riverctl map interact_float $mod L resize horizontal 100 - # move views around screen -riverctl map interact_float None H move left 100 -riverctl map interact_float None J move down 100 -riverctl map interact_float None K move up 100 -riverctl map interact_float None L move right 100 - -# snap views to screen edges -riverctl map interact_float $mod+Shift H snap left -riverctl map interact_float $mod+Shift J snap down -riverctl map interact_float $mod+Shift K snap up -riverctl map interact_float $mod+Shift L snap right +riverctl map interact_float $mod+Shift H move left 100 +riverctl map interact_float $mod+Shift J move down 100 +riverctl map interact_float $mod+Shift K move up 100 +riverctl map interact_float $mod+Shift L move right 100 +# decrease/increase the main ratio of layout +riverctl map interact_float None H send-layout-cmd rivercarro "main-ratio -0.05" +riverctl map interact_float None L send-layout-cmd rivercarro "main-ratio +0.05" +# increment/decrement the main layout +riverctl map interact_float None J send-layout-cmd rivercarro "main-count +1" +riverctl map interact_float None K send-layout-cmd rivercarro "main-count -1" ### End resize and moving mode # focus the next/previous output