summarylogtreecommitdiffstats
path: root/lomoco.sh
diff options
context:
space:
mode:
authorBartłomiej Piotrowski2018-01-06 21:58:29 +0100
committerBartłomiej Piotrowski2018-01-06 21:58:29 +0100
commit443eca7413e29e6ebd30f2e492f07f6cd8117cdb (patch)
tree4c7f733265aba3edd237cf2132105e08ed033052 /lomoco.sh
downloadaur-lomoco.tar.gz
Import from official repositories
Diffstat (limited to 'lomoco.sh')
-rw-r--r--lomoco.sh21
1 files changed, 21 insertions, 0 deletions
diff --git a/lomoco.sh b/lomoco.sh
new file mode 100644
index 00000000000..76e2392daf0
--- /dev/null
+++ b/lomoco.sh
@@ -0,0 +1,21 @@
+#!/bin/bash
+
+if [ -n "$BUSNUM" -a -n "$DEVNUM" ]; then
+ . /etc/udev/lomoco_mouse.conf
+
+ options=
+
+ if [ -n "$LOGITECH_MOUSE_RESOLUTION" ]; then
+ options="--$LOGITECH_MOUSE_RESOLUTION"
+ fi
+
+ case "$LOGITECH_MOUSE_SMS" in
+ yes) options="$options --sms" ;;
+ no) options="$options --no-sms" ;;
+ esac
+
+ if [ -n "$options" ]; then
+ /usr/bin/lomoco -b $BUSNUM -d $DEVNUM $options
+ fi
+
+fi 2>&1 | /usr/bin/logger -t lomoco