xsessionrc @ 8899300998c0

linux
author Steve Losh <steve@stevelosh.com>
date Sun, 10 Jun 2018 09:18:15 -0700
parents 0bf13c58fc21
children a1d399ef7d54
#!/bin/sh

if [ -d /etc/X11/xinit/xinitrc.d ]; then
  for f in /etc/X11/xinit/xinitrc.d/*; do
      [ -x "$f" ] && . "$f"
  done
  unset f
fi


TRACKPAD=`xinput list | grep 'Elantech Touchpad' | cut -d= -f2 | cut -f1`
SCROLL=`xinput list-props $TRACKPAD | grep 'Natural Scrolling Enabled (' | cut -d\( -f2 | cut -d\) -f1`
# CLICK=`xinput list-props $TRACKPAD | grep 'Click Method Enabled (' | cut -d\( -f2 | cut -d\) -f1`

xinput set-prop $TRACKPAD $SCROLL 1
# xinput set-prop $TRACKPAD $CLICK 0, 1

/home/sjl/lib/dotfiles/bin/keysettings
xcape -t 200 -e 'Control_L=Escape'
xautolock -time 15 -locker /usr/bin/slock &

exec /usr/local/bin/stumpwm