~yerinalexey/dotfiles

33b9bc6d6ebecad159ba7812ffb913a503fca8de — Alexey Yerin a month ago 40bd12e
river: updates to layout
1 files changed, 12 insertions(+), 9 deletions(-)

M river/init
M river/init => river/init +12 -9
@@ 2,9 2,6 @@

mod="Mod4"

# Layout
riverctl layout rivertile left

# Move focus between windows
riverctl map normal $mod j focus-view next
riverctl map normal $mod k focus-view previous


@@ 15,8 12,8 @@ riverctl map normal $mod+Shift k swap previous
riverctl map normal $mod+Shift h zoom

# Resize columns
riverctl map normal $mod h mod-main-factor -0.05
riverctl map normal $mod l mod-main-factor 0.05
riverctl map normal $mod h mod-layout-value rivertile fixed main_factor -0.05
riverctl map normal $mod l mod-layout-value rivertile fixed main_factor 0.05

# Move floating windows with mouse
riverctl map-pointer normal $mod BTN_LEFT move-view


@@ 88,10 85,6 @@ riverctl focus-follows-cursor normal
riverctl border-color-unfocused '#282c34'
riverctl border-color-focused '#a2b0c4'

# No useless padding
riverctl view-padding 0
riverctl outer-padding 0

# Autostart
autostart() {
	prog="$1"


@@ 134,3 127,13 @@ start_wob

# Cron jobs
riverctl spawn pcrond-run

# Layout
pgrep rivertile >/dev/null \
	|| riverctl spawn rivertile \
		-main-location left \
		-view-padding 0 -outer-padding 0

riverctl default-layout rivertile
riverctl 'set-layout-value' rivertile main_location string left
riverctl 'set-layout-value' rivertile string left