- commit
- 0ce4da3
- parent
- 681c425
- author
- Eric Bower
- date
- 2025-10-24 21:38:55 -0400 EDT
feat: river wm
2 files changed,
+133,
-1
R bin/estatus =>
bin/vstats
+1,
-1
1@@ -48,7 +48,7 @@ function display_status
2 end
3 end
4
5- notify-send "Status" "$date_str $time_str | $network_info | Bat: $battery_info | Vol: $volume_info | Bri: $brightness_info"
6+ notify-send -t 20000 "Status" "$date_str $time_str | $network_info | Bat: $battery_info | Vol: $volume_info | Bri: $brightness_info"
7 end
8
9 display_status
+132,
-0
1@@ -0,0 +1,132 @@
2+#!/bin/sh
3+
4+# This is the example configuration file for river.
5+#
6+# If you wish to edit this, you will probably want to copy it to
7+# $XDG_CONFIG_HOME/river/init or $HOME/.config/river/init first.
8+#
9+# See the river(1), riverctl(1), and rivertile(1) man pages for complete
10+# documentation.
11+# Note: the "Super" modifier is also known as Logo, GUI, Windows, Mod4, etc.
12+
13+# Set keyboard repeat rate
14+riverctl set-repeat 25 300
15+
16+riverctl map normal Mod1 Return spawn foot
17+riverctl map normal Mod1 D spawn bemenu-run
18+
19+# close the focused view
20+riverctl map normal Mod1 Q close
21+
22+# exit river
23+riverctl map normal Mod1+Shift E exit
24+
25+# focus the next/previous view in the layout stack
26+riverctl map normal Mod1 J focus-view next
27+riverctl map normal Mod1 K focus-view previous
28+
29+# swap the focused view with the next/previous
30+# view in the layout stack
31+riverctl map normal Mod1+Shift J swap next
32+riverctl map normal Mod1+Shift K swap previous
33+
34+# focus the next/previous output
35+riverctl map normal Mod1 Period focus-output next
36+riverctl map normal Mod1 Comma focus-output previous
37+
38+# bump the focused view to the top of the layout stack
39+riverctl map normal Mod1+Shift Return zoom
40+
41+# increment/decrement the main count of rivertile(1)
42+riverctl map normal Mod1+Shift H send-layout-cmd rivertile "main-count +1"
43+riverctl map normal Mod1+Shift L send-layout-cmd rivertile "main-count -1"
44+
45+# move views
46+riverctl map normal Super H move left 100
47+riverctl map normal Super J move down 100
48+riverctl map normal Super K move up 100
49+riverctl map normal Super L move right 100
50+riverctl map-pointer normal Mod1 BTN_LEFT move-view
51+
52+# resize views
53+riverctl map-pointer normal Mod1 BTN_RIGHT resize-view
54+
55+# toggle float
56+riverctl map-pointer normal Mod1 BTN_MIDDLE toggle-float
57+
58+for i in $(seq 1 9)
59+do
60+ tags=$((1 << ($i - 1)))
61+
62+ # focus tag [0-8]
63+ riverctl map normal Mod1 $i set-focused-tags $tags
64+
65+ # tag focused view with tag [0-8]
66+ riverctl map normal Mod1+Shift $i set-view-tags $tags
67+
68+ # toggle focus of tag [0-8]
69+ riverctl map normal Mod1+Control $i toggle-focused-tags $tags
70+
71+ # toggle tag [0-8] of focused view
72+ riverctl map normal Mod1+Shift+Control $i toggle-view-tags $tags
73+done
74+
75+# toggle float
76+riverctl map normal Mod1 Space toggle-float
77+
78+# toggle fullscreen
79+riverctl map normal Mod1 F toggle-fullscreen
80+
81+# change layout orientation
82+riverctl map normal Mod1 Up send-layout-cmd rivertile "main-location top"
83+riverctl map normal Mod1 Right send-layout-cmd rivertile "main-location right"
84+riverctl map normal Mod1 Down send-layout-cmd rivertile "main-location bottom"
85+riverctl map normal Mod1 Left send-layout-cmd rivertile "main-location left"
86+
87+# Various media key mapping examples for both normal and locked mode which do
88+# not have a modifier
89+for mode in normal locked
90+do
91+ # Control pulse audio volume with pamixer (https://github.com/cdemoulins/pamixer)
92+ riverctl map $mode None XF86AudioRaiseVolume spawn 'pamixer -i 5'
93+ riverctl map $mode None XF86AudioLowerVolume spawn 'pamixer -d 5'
94+ riverctl map $mode None XF86AudioMute spawn 'pamixer --toggle-mute'
95+
96+ # Control screen backlight brightness with brightnessctl (https://github.com/Hummer12007/brightnessctl)
97+ riverctl map $mode None XF86MonBrightnessUp spawn 'light -A 1'
98+ riverctl map $mode None XF86MonBrightnessDown spawn 'light -U 1'
99+done
100+
101+# Set background and border color
102+riverctl borrder-width 2
103+riverctl background-color 0x282a36
104+riverctl border-color-focused 0xbd93f9
105+riverctl border-color-unfocused 0x81859b
106+
107+# Set keyboard layout to us and remap capslock to escape
108+riverctl keyboard-layout -options "caps:swapescape" us
109+
110+# Configure trackpad settings.
111+# Replace <trackpad_name> with the name of your trackpad.
112+# You can find the name of your trackpad by running `riverctl list-inputs`
113+riverctl input pointer-2362-628-PIXA3854:00_093A:0274_Touchpad tap enabled
114+
115+# Make all views with an app-id that starts with "float" and title "foo" start floating.
116+riverctl rule-add -app-id 'float*' -title 'foo' float
117+
118+# Make all views with app-id "bar" and any title use client-side decorations
119+riverctl rule-add -app-id "bar" csd
120+
121+# Set the default layout generator to be rivertile and start it.
122+# River will send the process group of the init executable SIGTERM on exit.
123+riverctl default-layout rivertile
124+rivertile -main-ratio 0.7 -view-padding 5 -outer-padding 0 &
125+
126+wlr-randr --output eDP-1 --scale 1.7
127+
128+# Start gammastep for color temperature adjustment
129+gammastep -l 42.265385:-83.716557 -t 6500:3500 &
130+# Set GNOME font settings
131+gsettings set org.gnome.desktop.interface font-name 'Noto Sans 10'
132+# Start notification daemon
133+mako &