summary refs log tree commit diff
path: root/.config/river/init
blob: fedb5f935e99664d6284ca75b76dbd808b5e643c (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
#!/bin/sh

riverctl spawn /etc/s6-rc/bin/s6-session-spawn

. "$XDG_CONFIG_HOME/river/functions.sh"
. "$XDG_CONFIG_HOME/river/colors"
. "$XDG_CONFIG_HOME/river/keybinds"
. "$XDG_CONFIG_HOME/river/rules"
. "$XDG_CONFIG_HOME/river/layouts"
. "$XDG_CONFIG_HOME/river/gsettings"

#riverctl spawn 'dbus-update-activation-environment DISPLAY WAYLAND_DISPLAY XDG_CURRENT_DESKTOP'
riverctl spawn 'light -i set 80%'
riverctl spawn 'kanshictl reload'

riverctl set-repeat 70 200
riverctl input "pointer-*" natural-scroll enabled
riverctl input "pointer-*" pointer-accel 0
riverctl input "pointer-*" tap enabled
riverctl input "pointer-*" accel-profile adaptive
riverctl input "pointer-*" disable-while-typing enabled
riverctl input "*Kensington_Slimblade_Trackball" natural-scroll disabled
riverctl input "*Kensington_Slimblade_Trackball" pointer-accel 1

riverctl set-cursor-warp on-output-change

# Set and exec into the default layout generator, rivertile.
# River will send the process group of the init executable SIGTERM on exit.
riverctl default-layout rivertile
riverctl send-layout-cmd rivertile "main-ratio 0.66"
riverctl send-layout-cmd rivertile "main-count 1"
exec rivertile -view-padding 0 -outer-padding 0