- xkbset -m # remove mouse keys
-
- ;;
- kinesis)
- # 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
-
- cd / # so xbindkeys does not hold open mountpoints
- killall xbindkeys # having some lag, thinking this might help.
- xbindkeys # configured to grab left and right scroll button presses
- fi
-
- kinesis2=false
- #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
- else
- kinesis2=true # if we are using the 2nd kinesis which has different device ids
- fi
- if $kinesis2 && set_device_id "USB OPTICAL MOUSE" $k2flip; then
- xinput --set-button-map "$device_id" 1 12 3 14 13 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
-
-
-
- # disable the mouse movements mouse wheel
- if $kinesis2; then
- if set_device_id "USB OPTICAL MOUSE" $k2inorder; 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 11 10 6 7
- fi
- else
- 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
- fi