Ubuntu Pastebin

Paste from sakrecoer at Mon, 30 May 2016 22:21:27 +0000

Download as text
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
  #both screens - remove all indicators
  if test "$1" == "0"; then
   if test -e $toggle1; then rm $toggle1; fi
   if test -e $toggle2; then rm $toggle2; fi
   echo "xinput set-prop \"$stylus\" --type=float \"Coordinate Transformation Matrix\" 1 0 0 0 1 0 0 0 1""  
   echo "xinput set-prop \"$eraser\" --type=float \"Coordinate Transformation Matrix\" 1 0 0 0 1 0 0 0 1""
  elif test "$1" == "1"; then
   touch $toggle1
   if test -e $toggle2; then rm $toggle2; fi
   echo "xinput set-prop \"$stylus\" --type=float \"Coordinate Transformation Matrix\" 0.333333 0 0 0 0,948148 0 0 0 1"" 
   echo "xinput set-prop \"$eraser\" --type=float \"Coordinate Transformation Matrix\" 0.333333 0 0 0 0,948148 0 0 0 1""
  elif test "$1" == "2"; then
   if test -e $toggle1; then rm $toggle1; fi
   touch $toggle2
   echo "xinput set-prop \"$stylus\" --type=float \"Coordinate Transformation Matrix\" 0,666666 0 0,333333 0 1 0 0 0 1"" 
   echo "xinput set-prop \"$eraser\" --type=float \"Coordinate Transformation Matrix\" 0,666666 0 0,333333 0 1 0 0 0 1""
  else
   echo "wrong argument for -screen: $1"
   usage
  fi
  exit
Download as text