lots of stuff lumped together
[distro-setup] / input-setup
index 2f595f3e7cecbfca81570ead2f51bbe2b3ca1845..91bede690083f595581a6237530a7768d96b4e93 100755 (executable)
 # 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