Eric Bower
·
2025-11-23
init
1#!/bin/sh
2
3# If you wish to edit this, you will probably want to copy it to
4# $XDG_CONFIG_HOME/river/init or $HOME/.config/river/init first.
5# See the river(1), riverctl(1), and rivertile(1) man pages for complete
6# documentation.
7# Note: the "Super" modifier is also known as Logo, GUI, Windows, Mod4, etc.
8
9mod=Mod4
10
11riverctl set-repeat 30 300
12
13riverctl map normal $mod Return spawn foot
14riverctl map normal $mod D spawn bemenu-run
15
16riverctl map normal $mod Q close # close the focused view
17riverctl map normal $mod+Shift E exit # exit river
18
19# focus the next/previous view in the layout stack
20riverctl map normal $mod J focus-view next
21riverctl map normal $mod K focus-view previous
22
23# swap the focused view with the next/previous view in the layout stack
24riverctl map normal $mod+Shift J swap next
25riverctl map normal $mod+Shift K swap previous
26# bump the focused view to the top of the layout stack
27riverctl map normal $mod+Shift Return zoom
28
29riverctl map-pointer normal $mod BTN_RIGHT resize-view
30riverctl map normal $mod Space toggle-float
31riverctl map normal $mod F toggle-fullscreen
32
33for i in $(seq 1 9)
34do
35 tags=$((1 << ($i - 1)))
36 riverctl map normal $mod $i set-focused-tags $tags
37 riverctl map normal $mod+Shift $i set-view-tags $tags
38 riverctl map normal $mod+Control $i toggle-focused-tags $tags
39 riverctl map normal $mod+Shift+Control $i toggle-view-tags $tags
40done
41
42for mode in normal locked
43do
44 riverctl map -repeat $mode None XF86AudioRaiseVolume spawn 'pamixer -i 5'
45 riverctl map -repeat $mode None XF86AudioLowerVolume spawn 'pamixer -d 5'
46 riverctl map -repeat $mode None XF86AudioMute spawn 'pamixer --toggle-mute'
47 riverctl map -repeat $mode None XF86MonBrightnessUp spawn 'light -A 1'
48 riverctl map -repeat $mode None XF86MonBrightnessDown spawn 'light -U 1'
49done
50
51riverctl border-width 3
52riverctl background-color 0x282a36
53riverctl border-color-focused 0xbd93f9
54riverctl border-color-unfocused 0x81859b
55
56wlr-randr --output eDP-1 --scale 1.7 # laptop display scale
57# `riverctl list-inputs`
58riverctl input pointer-2362-628-PIXA3854:00_093A:0274_Touchpad tap enabled
59riverctl input pointer-20547-23623-Ploopy_Corporation_Ploopy_Adept_Trackball_Mouse accel-profile flat
60riverctl input pointer-20547-23623-Ploopy_Corporation_Ploopy_Adept_Trackball_Mouse pointer-accel -0.65
61
62riverctl map normal $mod W send-layout-cmd rivercarro "main-location-cycle monocle,left"
63riverctl default-layout rivercarro
64rivercarro -main-location monocle -inner-gaps 3 -outer-gaps 1 &
65
66# status bar
67waybar &
68# color temperature adjustment
69gammastep -l 42.265385:-83.716557 -t 6500:3500 &
70# GNOME font settings
71gsettings set org.gnome.desktop.interface font-name 'Noto Sans 10'
72# notification daemon
73mako &