-case $HOSTNAME in
- tp|x2)
- # original saved with: xkbcomp $DISPLAY /a/c/stretch-11-2016.xkb
- xkbcomp /a/c/x2.xkb $DISPLAY
- ;;
- treetowl*|iank-dev|frodo)
- # todo, differentiate for work pc
- #/a/bin/radl
- if [[ -z $DISPLAY ]]; then
- echo "error. empty DISPLAY var" >> /a/gdm-keyboard-error.log
- else
- xkbcomp /a/c/.Xkeymap $DISPLAY
-
- xkbset m # setup mouse keys, which I have altered
-
- xkbset exp =m # stop mousekeys expiring after a timeout
-
- xset r rate 200 13 # decrease rate delay
- cd / # so xbindkeys does not hold open mountpoints
- xbindkeys # configured to grab left and right scroll button presses
- fi
-
-
- #right scroll wheel, change from button 4 & 5 to 13 and 14.
- # also changes the middle click to 12, even though I'm not using it anymore
- if set_device_id "04d9:048e"; then
- xinput --set-button-map "$device_id" 1 12 3 13 14 6 7
- fi
-
- ms 'Kensington Kensington Slimblade Trackball' 100 4000/1 7 6.5 1.5
- xinput --set-button-map 'Kensington Kensington Slimblade Trackball' 0 0 0 4 5 6 7 0 9 10 11 12
-
- # razer naga middle mouse stopped working. it's settings were:
- #ms "$device_id" 100 1000/1 7 4 1
-
- if set_device_id "SteelSeries World of Warcraft MMO Gaming Mouse"; then
- ms "$device_id" 100 1000/1 7 4 1
- #ms "$device_id" 1 7/2 2 2.5 2
-
- # makes it compatible with what windows sends using synergy
- xinput --set-button-map "$device_id" 1 2 3 4 5 6 7 6 7 10 11 12 13 14 15
-
- # under the new "improved" libinput, the mouse speed/accel has
- # changed all around and is much more limited.
- # Other xinput commands will fail and this will succeed.
- xinput --set-prop "$device_id" "libinput Accel Speed" '.8'
- fi
-
-
- # disable the mouse movements of my mouse-wheel only mouse
- if set_device_id "USB Optical Mouse"; then
- xinput --set-prop "$device_id" 'Device Accel Constant Deceleration' 10000
- # 12 is to effectively disable the middle click button
- xinput --set-button-map "$device_id" 1 12 3 10 11 6 7
- fi
- /a/bin/bash_unpublished/gpg
- ;;
- frodo*)
- ;;
+# default via xset q is 660 25. (delay for autorepeat, repeat rate)
+# was at 200 13, but while learning to use keyboardio, i hold keys a bit longer sometimes.
+xset r rate 400 13 # decrease rate delay
+
+if set_device_id "SteelSeries World of Warcraft MMO Gaming Mouse"; then
+ ms "$device_id" 100 1000/1 7 4 1
+
+ # under the new "improved" libinput, the mouse speed/accel has
+ # changed all around and is much more limited.
+ # Other xinput commands will fail and this will succeed.
+ xinput --set-prop "$device_id" "libinput Accel Speed" '.8'
+fi
+
+# todo, differentiate for work pc
+#/a/bin/radl
+
+case $type in
+ model01)
+ # original saved with: xkbcomp $DISPLAY /a/c/flidas-2017-12.xkb
+ xkbcomp /a/c/model01.xkb $DISPLAY
+ . /a/bin/bash_unpublished/duplicity-gpg-agent-setup
+ ;;
+ laptop)
+ xkbcomp /a/c/x2.xkb $DISPLAY
+
+ ;;