X-Git-Url: https://iankelling.org/git/?a=blobdiff_plain;f=input-setup;h=5db66e9dd92f77a7f994b6bb594e106b9416f64f;hb=c2bf18a9e27233fc9b57450455969fc9e53508b8;hp=1cd3f6f52803ae837885c9189291e630dadf204f;hpb=a9242586e509be25c1b3f746f6cdb45104c5e9f5;p=distro-setup diff --git a/input-setup b/input-setup index 1cd3f6f..5db66e9 100755 --- a/input-setup +++ b/input-setup @@ -1,4 +1,18 @@ #!/bin/bash -l +# Copyright (C) 2016 Ian Kelling + +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at + +# http://www.apache.org/licenses/LICENSE-2.0 + +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + #set -x mi() { xinput --get-feedbacks "$1" | grep "threshold" @@ -22,9 +36,9 @@ set_device_id() { } case $HOSTNAME in - tp) - # original saved with: xkbcomp $DISPLAY /a/c/stretch-9-2016.xkb - xkbcomp /a/c/tp.xkb $DISPLAY + 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 @@ -39,6 +53,7 @@ case $HOSTNAME in 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