X-Git-Url: https://iankelling.org/git/?a=blobdiff_plain;f=input-setup;h=8ad80d315e9a1d73742078d87406b11ea4f2e99f;hb=f7cd81f49aa5d7a4581db63bed053e66e692972e;hp=66a4b7ffd26d5ecf395bdd373c0b6fda8e2ea750;hpb=9eeed9d8bd24850fe5e35d2c2f9be8608491bf70;p=distro-setup diff --git a/input-setup b/input-setup index 66a4b7f..8ad80d3 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,11 +36,11 @@ 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-x2-11-2016.xkb + xkbcomp /a/c/x2.xkb $DISPLAY ;; - treetowl*|iank-dev|frodo|x2) + treetowl*|iank-dev|frodo) # todo, differentiate for work pc #/a/bin/radl if [[ -z $DISPLAY ]]; then