.xsession
2021-12-13 · 195 words · 1 min
TagsĀ :  OpenBSD Setup

:~$ cat .xsession
#!/bin/sh -e
export ENV=$HOME/.kshrc
ulimit -Sc 0
xrdb -merge $HOME/.Xresources 
xset b off 
xset r rate 190 40 
# xsetroot -solid "#000000"
# natural scroll trackpad
xinput set-button-map /dev/wsmouse0 1 2 3 5 4 6 7
# regular scroll and slowdown
xinput set-button-map /dev/wsmouse 1 2 3 4 5 6 7
# emulate middle button + 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 Axes' 6 7 4 5
xinput set-prop /dev/wsmouse 'WS Pointer Wheel Emulation Inertia' 3
xinput set-prop /dev/wsmouse 'WS Pointer Wheel Emulation Timeout' 500
# picom -b --config $HOME/.config/picom/picom.conf &
sh $HOME/.config/scripts/display.sh 
mpd $HOME/.config/mpd/mpd.conf 
# set wallpaper and color temperature
if [[ -x /usr/local/bin/nitrogen  ]]; then 
         /usr/local/bin/nitrogen --restore
         fi
         if [[ -x /usr/local/bin/sct  ]]; then
                  /usr/local/bin/sct 5200
                  fi
#
xbanish &
exec cwm

tech · about · visual · contact · home