repos / dotfiles

my dotfiles

commit
759135d
parent
d34f4d8
author
Eric Bower
date
2025-11-08 21:45:09 -0500 EST
refactor: use keyd for input key mgmt
3 files changed,  +31, -19
A bin/keyd.sh
+2, -0
1@@ -0,0 +1,2 @@
2+#!/bin/bash
3+sudo ln -sf /home/erock/dotfiles/keyd.conf /etc/keyd/default.conf
M dot_config/river/init
+20, -19
 1@@ -6,36 +6,37 @@
 2 # documentation.
 3 # Note: the "Super" modifier is also known as Logo, GUI, Windows, Mod4, etc.
 4 
 5-riverctl keyboard-layout -options "caps:swapescape" us
 6-riverctl set-repeat 25 300
 7+mod=Mod4
 8 
 9-riverctl map normal Mod1 Return spawn foot
10-riverctl map normal Mod1 D spawn bemenu-run
11+riverctl set-repeat 30 300
12 
13-riverctl map normal Mod1 Q close      # close the focused view
14-riverctl map normal Mod1+Shift E exit # exit river
15+riverctl map normal $mod Return spawn foot
16+riverctl map normal $mod D spawn bemenu-run
17+
18+riverctl map normal $mod Q close      # close the focused view
19+riverctl map normal $mod+Shift E exit # exit river
20 
21 # focus the next/previous view in the layout stack
22-riverctl map normal Mod1 J focus-view next
23-riverctl map normal Mod1 K focus-view previous
24+riverctl map normal $mod J focus-view next
25+riverctl map normal $mod K focus-view previous
26 
27 # swap the focused view with the next/previous view in the layout stack
28-riverctl map normal Mod1+Shift J swap next
29-riverctl map normal Mod1+Shift K swap previous
30+riverctl map normal $mod+Shift J swap next
31+riverctl map normal $mod+Shift K swap previous
32 # bump the focused view to the top of the layout stack
33-riverctl map normal Mod1+Shift Return zoom
34+riverctl map normal $mod+Shift Return zoom
35 
36-riverctl map-pointer normal Mod1 BTN_RIGHT resize-view
37-riverctl map normal Mod1 Space toggle-float
38-riverctl map normal Mod1 F toggle-fullscreen
39+riverctl map-pointer normal $mod BTN_RIGHT resize-view
40+riverctl map normal $mod Space toggle-float
41+riverctl map normal $mod F toggle-fullscreen
42 
43 for i in $(seq 1 9)
44 do
45     tags=$((1 << ($i - 1)))
46-    riverctl map normal Mod1 $i set-focused-tags $tags
47-    riverctl map normal Mod1+Shift $i set-view-tags $tags
48-    riverctl map normal Mod1+Control $i toggle-focused-tags $tags
49-    riverctl map normal Mod1+Shift+Control $i toggle-view-tags $tags
50+    riverctl map normal $mod $i set-focused-tags $tags
51+    riverctl map normal $mod+Shift $i set-view-tags $tags
52+    riverctl map normal $mod+Control $i toggle-focused-tags $tags
53+    riverctl map normal $mod+Shift+Control $i toggle-view-tags $tags
54 done
55 
56 for mode in normal locked
57@@ -56,7 +57,7 @@ wlr-randr --output eDP-1 --scale 1.7 # laptop display scale
58 # `riverctl list-inputs`
59 riverctl input pointer-2362-628-PIXA3854:00_093A:0274_Touchpad tap enabled
60 
61-riverctl map normal Mod1 W send-layout-cmd rivercarro "main-location-cycle monocle,left"
62+riverctl map normal $mod W send-layout-cmd rivercarro "main-location-cycle monocle,left"
63 riverctl default-layout rivercarro
64 rivercarro -main-location monocle -inner-gaps 3 -outer-gaps 1 &
65 
A keyd.conf
+9, -0
 1@@ -0,0 +1,9 @@
 2+[ids]
 3+
 4+0001:0001:09b4e68d
 5+
 6+[main]
 7+
 8+capslock = esc
 9+leftalt = leftmeta
10+leftmeta = leftalt