#!/bin/sh

## Set colours
swaybg -m fill -c 000000 -i $HOME/.local/share/backgrounds/andromeda.jpg &
riverctl border-color-focused 0xFFFFFFCC
riverctl border-color-unfocused 0xFFFFF66
riverctl border-color-urgent 0xFFFFFF

# Set border-width
riverctl border-width 2

# Set layout
riverctl default-layout rivertile
rivertile -view-padding 4 -outer-padding 4 &

# Source the keybinds
source ~/.config/river/binds

# Switch to post-grahpical runlevel
openrc -U h


## Device input settings ##

# Keyboard layout
riverctl keyboard-layout qwerty

# Set keyboard repeat rate
riverctl set-repeat 50 300

# Set focus-follow
riverctl focus-follows-cursor normal

## Rules ##

# Set server-side-decorations for firefox
riverctl rule-add -app-id firefox-esr ssd

# Set server-side-decorations for thunderbird
riverctl rule-add -app-id thunderbird-esr ssd
