diff options
author | P. J. McDermott <pj@pehjota.net> | 2016-03-14 02:13:51 (EDT) |
---|---|---|
committer | P. J. McDermott <pj@pehjota.net> | 2016-03-14 02:13:51 (EDT) |
commit | dd0cb40cd8eb76668b2f500b9c4680c1f2dba26b (patch) | |
tree | f8ffe90b8339750ed970ae0792620bf005296a9b | |
parent | 069e68335ab88cb319071ff8fc432a6fecb7856b (diff) | |
download | displayrc-dd0cb40cd8eb76668b2f500b9c4680c1f2dba26b.zip displayrc-dd0cb40cd8eb76668b2f500b9c4680c1f2dba26b.tar.gz displayrc-dd0cb40cd8eb76668b2f500b9c4680c1f2dba26b.tar.bz2 |
.displayinit.d/misc: New file
-rw-r--r-- | .displayinit.d/misc | 57 |
1 files changed, 57 insertions, 0 deletions
diff --git a/.displayinit.d/misc b/.displayinit.d/misc new file mode 100644 index 0000000..60ca04d --- /dev/null +++ b/.displayinit.d/misc @@ -0,0 +1,57 @@ +#!/bin/sh + +exports() +{ + . ~/.exports +} + +agent() +{ + eval "$(gpg-agent --daemon --enable-ssh-support)" +} + +xinput() +{ + xmodmap "${HOME}/.Xmodmap" + export GTK_IM_MODULE='xim' + export QT_IM_MODULE='xim' + xinput set-prop 'TPPS/2 IBM TrackPoint' 'Evdev Wheel Emulation' 1 + xinput set-prop 'TPPS/2 IBM TrackPoint' 'Evdev Wheel Emulation Button' 2 + xinput set-prop 'TPPS/2 IBM TrackPoint' 'Evdev Wheel Emulation Timeout'\ + 200 + xinput set-prop 'TPPS/2 IBM TrackPoint' 'Evdev Wheel Emulation Axes' \ + 6 7 4 5 +} + +start() +{ + exports + agent + xinput + + startfluxbox +} + +run() +{ + rm -f ~/.xsessionmanage + mkfifo -m 0600 ~/.xsessionmanage + while read action; do + case "${action}" in + 'reload') + reload + ;; + 'quit') + break + ;; + esac + done <~/.xsessionmanage + rm -f ~/.xsessionmanage +} + +main() +{ + start + + run +} |