Skip to content

Instantly share code, notes, and snippets.

@michalbcz
Last active August 29, 2015 14:07
Show Gist options
  • Save michalbcz/744de11f522248c4e321 to your computer and use it in GitHub Desktop.
Save michalbcz/744de11f522248c4e321 to your computer and use it in GitHub Desktop.
linux shell script to easily take screenshot from google glass
# ==== Google Glass =====
# take screenshot
alias gtp='adb shell /system/bin/screencap -p /sdcard/screenshot.png'
# copy screenshot from glass to current directory (pwd)
alias gdp='adb pull /sdcard/screenshot.png screenshot_$(date -d "today" +"%s").png'
# take and copy screenshot to current dir
alias gg='gtp && gdp'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment