source: lliurex-miniscreen/trunk/tags/1.7/install-dirs/usr/bin/getInputMouse.sh @ 345

Last change on this file since 345 was 345, checked in by mabarracus, 4 years ago

add trusty code
fixed compilation
fixed package dependencies in xenial

  • Property svn:executable set to *
File size: 318 bytes
Line 
1#!/bin/bash
2
3if [ -f "/tmp/miniscreen_deviceslist" ] 
4then
5    rm /tmp/miniscreen_deviceslist
6fi
7touch /tmp/miniscreen_deviceslist
8
9for i in `xinput list | grep Mouse | cut -d"=" -f2 | cut -f1 -s`
10do
11    echo $i `xinput list-props $i | grep Enabled | cut -d"(" -f2 | cut -d")" -f1` >> /tmp/miniscreen_deviceslist
12done
Note: See TracBrowser for help on using the repository browser.