X-Git-Url: https://iankelling.org/git/?a=blobdiff_plain;f=input-setup;h=91bede690083f595581a6237530a7768d96b4e93;hb=1ad20724a44a0ee3adc2f4a1d002850fbad7a372;hp=2f595f3e7cecbfca81570ead2f51bbe2b3ca1845;hpb=d5b079d53808b65478f6f8825a8c93e7da921840;p=distro-setup diff --git a/input-setup b/input-setup index 2f595f3..91bede6 100755 --- a/input-setup +++ b/input-setup @@ -13,6 +13,18 @@ # See the License for the specific language governing permissions and # limitations under the License. +case $HOSTNAME in + x2|tp) type=laptop ;; + treetowl*|iank-dev|frodo) type=kinesis ;; +esac + + + +case $1 in + l) type=laptop ;; + k) type=kinesis ;; +esac + #set -x mi() { xinput --get-feedbacks "$1" | grep "threshold" @@ -35,12 +47,14 @@ set_device_id() { fi } -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) +case $type in + laptop) + # original saved with: xkbcomp $DISPLAY /a/c/stretch-11-2016.xkb + xkbcomp /a/c/x2.xkb $DISPLAY + xkbset -m # remove mouse keys + + ;; + kinesis) # todo, differentiate for work pc #/a/bin/radl if [[ -z $DISPLAY ]]; then @@ -92,8 +106,6 @@ case $HOSTNAME in fi . /a/bin/bash_unpublished/duplicity-gpg-agent-setup ;; - frodo*) - ;; esac # for desktop and htpc