2022-12-22 04:07:12 -05:00
|
|
|
#!/bin/sh
|
|
|
|
|
|
|
|
userresources=$HOME/.Xresources
|
|
|
|
usermodmap=$HOME/.Xmodmap
|
2022-12-30 02:52:05 -05:00
|
|
|
sysresources=/etc/X11/xinit/Xresources
|
|
|
|
sysmodmap=/etc/X11/xinit/Xmodmap
|
|
|
|
|
2022-12-22 04:07:12 -05:00
|
|
|
|
|
|
|
# merge in defaults and keymaps
|
|
|
|
|
|
|
|
if [ -f $sysresources ]; then
|
|
|
|
xrdb -merge $sysresources
|
|
|
|
fi
|
|
|
|
|
|
|
|
if [ -f $sysmodmap ]; then
|
|
|
|
xmodmap $sysmodmap
|
|
|
|
fi
|
|
|
|
|
|
|
|
if [ -f "$userresources" ]; then
|
|
|
|
xrdb -merge "$userresources"
|
|
|
|
fi
|
|
|
|
|
|
|
|
if [ -f "$usermodmap" ]; then
|
|
|
|
xmodmap "$usermodmap"
|
|
|
|
fi
|
|
|
|
|
|
|
|
# start some nice programs
|
|
|
|
|
|
|
|
if [ -d /etc/X11/xinit/xinitrc.d ] ; then
|
|
|
|
for f in /etc/X11/xinit/xinitrc.d/?*.sh ; do
|
|
|
|
[ -x "$f" ] && . "$f"
|
|
|
|
done
|
|
|
|
unset f
|
|
|
|
fi
|
|
|
|
|
2022-12-30 02:52:05 -05:00
|
|
|
{{ if eq .chezmoi.hostname "helix" -}}
|
2022-12-30 03:28:35 -05:00
|
|
|
xinput set-prop 13 312 .8 &
|
2022-12-30 02:52:05 -05:00
|
|
|
{{ else if eq .chezmoi.hostname "triangulum" -}}
|
2022-12-30 03:28:35 -05:00
|
|
|
xinput set-prop 10 306 1 &
|
2023-01-10 16:25:06 -05:00
|
|
|
{{ else if eq .chezmoi.hostname "hydrus" -}}
|
|
|
|
xset m 10/10 100 r rate 500 30 b on &
|
|
|
|
numlockx on &
|
2022-12-30 02:52:05 -05:00
|
|
|
{{- end }}
|
2022-12-22 04:07:12 -05:00
|
|
|
xsetroot -cursor_name left_ptr &
|
|
|
|
exec bspwm
|