dotfiles/executable_dot_xsession.tmpl

44 lines
1.3 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/Hack"
xset +fp "/usr/local/share/fonts/terminus"
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
2024-02-17 19:27:12 +01:00
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
xsetroot -solid "#282828"
urxvtd -q -f -o
2024-02-15 09:53:19 +01:00
tint2&
exec openbox