blob: ae976d79677eb5bd6f85b3075ffdd38d9903fe18 (
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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
|
#!/bin/sh
# start desktop runlevel
riverctl spawn 'openrc -U desktop'
# ::start style
riverctl background-color 0x080808ff
riverctl border-color-focused 0x70649aff
riverctl border-color-unfocused 0x080808af
riverctl border-color-urgent 0xcb1b45ff
riverctl border-width 3
# ::end style
# rules
riverctl rule-add -app-id '*' ssd
riverctl rule-add -app-id 'librewolf' -title 'Picture-in-Picture' float
riverctl rule-add -app-id 'workfox' ssd
riverctl rule-add -app-id 'foot-float' float
riverctl rule-add -app-id 'mpv' float
riverctl rule-add -app-id 'nm-connection-editor' float
# keymaps: wm
riverctl map normal Super+Shift E spawn 'openrc -U default && riverctl exit'
riverctl map normal Super+Shift Q close
riverctl map normal Super+Shift Return zoom
riverctl map normal Super F toggle-fullscreen
riverctl map normal Super+Shift Space toggle-float
riverctl map normal Super J focus-view next
riverctl map normal Super K focus-view previous
riverctl map normal Super L focus-view right
riverctl map normal Super H focus-view left
riverctl map normal Super+Shift J swap next
riverctl map normal Super+Shift K swap previous
riverctl map normal Super+Shift L swap right
riverctl map normal Super+Shift H swap left
riverctl map normal Super Backspace focus-previous-tags
riverctl map normal Super+Shift Backspace move-previous-tags
riverctl map normal Super Period focus-output next
riverctl map normal Super Comma focus-output previous
riverctl map normal Super+Shift Period send-to-output next
riverctl map normal Super+Shift Comma send-to-output previous
all_tags=$(((1 << 32) - 1))
riverctl map normal Super 0 set-focused-tags $all_tags
riverctl map normal Super+Shift 0 set-view-tags $all_tags
for i in $(seq 1 9); do
tags=$((1 << (i - 1)))
# tag management
riverctl map normal Super "$i" set-focused-tags "$tags"
riverctl map normal Super+Shift "$i" set-view-tags "$tags"
riverctl map normal Super+Control "$i" toggle-focused-tags "$tags"
riverctl map normal Super+Shift+Control "$i" toggle-view-tags "$tags"
done
riverctl map-pointer normal Super BTN_LEFT move-view
riverctl map-pointer normal Super BTN_RIGHT resize-view
# keymaps: apps
riverctl map normal Super Return spawn 'footclient'
riverctl map normal Super+Control Return spawn 'foot -a foot-float -W 120x40'
riverctl map normal Super D spawn 'fuzzel'
riverctl map normal Super Z spawn 'footclient -- sleep .4 && zk e'
riverctl map normal Super+Shift S spawn '~/bin/grimshot'
# keymaps: cmd mode
riverctl declare-mode cmd
riverctl map normal Super Space enter-mode cmd
riverctl map cmd None Escape enter-mode normal
riverctl map cmd None Space spawn "riverctl enter-mode normal; menm"
riverctl map cmd None Backspace spawn "riverctl enter-mode normal; susm"
riverctl map cmd None A spawn "riverctl enter-mode normal; audm"
riverctl map cmd None B spawn "riverctl enter-mode normal; blum"
riverctl map cmd None C spawn "riverctl enter-mode normal; netm"
riverctl map cmd None D spawn "riverctl enter-mode normal; dskm"
riverctl map cmd None F spawn "riverctl enter-mode normal; fm"
riverctl map cmd None K spawn "riverctl enter-mode normal; keym"
riverctl map cmd None N spawn "riverctl enter-mode normal; ntfm"
riverctl map cmd None P spawn "riverctl enter-mode normal; pasm"
riverctl map cmd None R spawn "riverctl enter-mode normal; svcm"
riverctl map cmd None S spawn "riverctl enter-mode normal; snim"
riverctl map cmd None T spawn "riverctl enter-mode normal; flatpak run com.odnoyko.valot --compact"
riverctl map cmd None V spawn "riverctl enter-mode normal; vpnm"
riverctl map cmd None X spawn "riverctl enter-mode normal; fuzzel --list-executables-in-path"
riverctl map cmd Shift C spawn "riverctl enter-mode normal; calm"
# keymaps: misc
# riverctl map-switch normal lid close spawn 'waylock -init-color 0x005469 & playerctl pause'
riverctl map-switch normal lid close spawn 'fyi todo lock'
riverctl map normal Super B spawn 'pkill -USR1 waybar'
riverctl map normal Super+Alt K spawn 'mpv ~/pictures/fwkeyboard.jpg'
riverctl map normal Super C spawn 'fyi todo xf86copy'
riverctl map normal Super X spawn 'fyi todo xf86cut'
riverctl map normal Super V spawn 'fyi todo xf86paste'
# keymaps: fn/media keys
riverctl map normal None XF86AudioRaiseVolume spawn 'wpctl set-volume --limit=1.0 @DEFAULT_AUDIO_SINK@ 5%+'
riverctl map normal None XF86AudioLowerVolume spawn 'wpctl set-volume --limit=1.0 @DEFAULT_AUDIO_SINK@ 5%-'
riverctl map normal None XF86AudioMute spawn 'wpctl set-mute @DEFAULT_AUDIO_SINK@ toggle'
riverctl map normal None XF86AudioMicMute spawn 'wpctl set-mute @DEFAULT_AUDIO_SOURCE@ toggle'
riverctl map normal None XF86AudioPlay spawn 'playerctl -p playerctld play-pause'
riverctl map normal None XF86AudioPrev spawn 'playerctl -p playerctld previous'
riverctl map normal None XF86AudioNext spawn 'playerctl -p playerctld next'
riverctl map normal None XF86MonBrightnessUp spawn 'brightnessctl set +5%'
riverctl map normal None XF86MonBrightnessDown spawn 'brightnessctl set 5%-'
# input
riverctl keyboard-layout -options caps:super,eurosign:5 -variant mac us
riverctl set-repeat 70 200
riverctl set-cursor-warp on-output-change
riverctl focus-follows-cursor normal
riverctl hide-cursor timeout 0
riverctl hide-cursor when-typing disabled
riverctl xcursor-theme Adwaita 16
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
# spawn a terminal
riverctl spawn foot
# wm
riverctl default-layout rivercarro
riverctl map normal Super Equal send-layout-cmd rivercarro 'main-ratio +0.02'
riverctl map normal Super Minus send-layout-cmd rivercarro 'main-ratio -0.02'
riverctl map normal Super+Alt H send-layout-cmd rivercarro 'main-location left'
riverctl map normal Super+Alt K send-layout-cmd rivercarro 'main-location top'
riverctl map normal Super+Alt J send-layout-cmd rivercarro 'main-location bottom'
riverctl map normal Super+Alt L send-layout-cmd rivercarro 'main-location right'
riverctl map normal Super+Alt Space send-layout-cmd rivercarro 'main-location monocle'
exec /usr/bin/rivercarro \
-inner-gaps 3 \
-outer-gaps 3 \
-main-location left \
-main-ratio 0.6 \
-main-count 1
|