dotfiles/executable_dot_xsession.tmpl

39 lines
1.2 KiB
Cheetah
Raw Normal View History

#!/usr/bin/env zsh
xset -b
xset r rate 200 60
xset m 2 0
{{- if eq .chezmoi.os "openbsd" }}
# xset -dpms
# xset s off
xset +fp "/usr/local/share/fonts/brutalist"
setxkbmap us dev-de
# "natural" scroll for trackpad
xinput set-button-map /dev/wsmouse0 1 2 3 5 4 7 6
# keep regular scroll and slowdown mouse, trackpoint, and trackball
xinput set-button-map /dev/wsmouse 1 2 3 4 5 6 7
# emulate the middle button and the scroll wheel
xinput set-prop /dev/wsmouse 'Device Accel Constant Deceleration' 2
xinput set-prop /dev/wsmouse 'WS Pointer Middle Button Emulation' 1
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 Inertia' 3
xinput set-prop /dev/wsmouse 'WS Pointer Wheel Emulation Timeout' 500
{{- end }}
export LC_CTYPE="en_US.UTF-8"
export HOME=/home/jan
export PATH=$HOME/.local/bin:/usr/local/bin:$HOME/go/bin:$PATH
{{- if eq .chezmoi.os "openbsd" }}
syncthing -no-browser -home="/home/jan/.config/syncthing" &
unclutter -root -idle 2 -noevents &
xidle -timeout 300 -program "/usr/local/bin/slock" &
{{- end }}
xrdb -merge $HOME/.Xresources
2024-04-04 21:27:51 +02:00
/home/jan/.fehbg&
exec openbox-session