~andrewzah/dotfiles

ref: openbsd-x220 dotfiles/.xinitrc -rwxr-xr-x 507 bytes
86dfc884Andrew Zah update 2 years ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
export LANG=en_US.UTF-8

export apmd_flags="-A -Z 8"

setxkbmap -layout us -option ctrl:nocaps
xrdb -merge $HOME/.resources

xidle -timeout 300 &

while true; do
    batt="$(sysctl -n hw.sensors.acpibat0.watthour3 | cut -f1,2 -d" ")"
    xsetroot -name "$batt"
    sleep 60
done &

xset b off

xinput set-prop "/dev/wsmouse" "WS Pointer Wheel Emulation" 1
xinput set-prop "/dev/wsmouse" "WS Pointer Wheel Emulation Button" 2
xinput set-prop "/dev/wsmouse" "WS Pointer Wheel Emulation Axes" 6 7 4 5

exec i3