Skip to content

Instantly share code, notes, and snippets.

@adamhrv
Created December 10, 2015 21:31
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save adamhrv/527dc5a568b5dfc339da to your computer and use it in GitHub Desktop.
Save adamhrv/527dc5a568b5dfc339da to your computer and use it in GitHub Desktop.
#!/bin/bash
#
# wait for internet connection to be established before launching, adjust next line based on install network
# can also ignore
#sleep 15s
#
# this script runs once on startup
xinput set-prop 'Advanced Silicon S.A CoolTouch(TM) System' 'Evdev Middle Button Emulation' 0
xinput set-prop 'Advanced Silicon S.A CoolTouch(TM) System' 'Evdev Third Button Emulation Button' 0
xinput set-prop 'Advanced Silicon S.A CoolTouch(TM) System' 'Evdev Wheel Emulation' 0
xinput set-prop 'Advanced Silicon S.A CoolTouch(TM) System' 'Evdev Wheel Emulation Button' 0
xinput set-prop 'Advanced Silicon S.A CoolTouch(TM) System' 'Device Enabled' 0
#
# then wait a second
sleep 1s
#
# then reenable
xinput set-prop 'Advanced Silicon S.A CoolTouch(TM) System' 'Device Enabled' 1
#
# use this to clear the clipboard
# xsel -bc
#
# wait another second
#sleep 1s
# then, launch google chrome in kiosk mode
#google-chrome --kiosk http://yoursite.local
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment