dotfiles/dot_xinitrc.tmpl

49 lines
1 KiB
Cheetah
Raw Normal View History

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" -}}
xinput set-prop 13 283 1 &
xinput set-prop 13 303 1 &
2023-01-24 15:10:27 -05:00
{{- else if eq .chezmoi.hostname "triangulum" }}
2023-02-04 15:42:23 -05:00
xinput set-prop 10 306 1 &
2023-01-24 15:10:27 -05:00
{{- else if eq .chezmoi.hostname "hydrus" }}
2023-03-14 01:16:48 -04:00
xrandr --output DisplayPort-0 --mode 1920x1080 --rate 144.00 --output DisplayPort-1 --mode 1920x1080 --rate 60.00 &
2023-01-24 21:52:00 -05:00
xset m 10/10 100 r rate 500 30 b on &
2023-01-10 16:25:06 -05:00
numlockx on &
2022-12-30 02:52:05 -05:00
{{- end }}
2023-02-07 18:07:50 -05:00
xsetroot -cursor_name left_ptr &
2023-02-04 15:42:23 -05:00
exec dbus-run-session bspwm
2023-01-24 21:52:00 -05:00