aboutsummaryrefslogtreecommitdiff
path: root/scripts/screenshot
diff options
context:
space:
mode:
Diffstat (limited to '')
-rwxr-xr-xscripts/screenshot6
1 files changed, 6 insertions, 0 deletions
diff --git a/scripts/screenshot b/scripts/screenshot
new file mode 100755
index 0000000..45bf2f3
--- /dev/null
+++ b/scripts/screenshot
@@ -0,0 +1,6 @@
+#!/bin/sh
+adb shell screencap /storage/emulated/0/Download/screen.png
+adb pull /storage/emulated/0/Download/screen.png $HOME/Downloads/screenshots/
+adb shell rm /storage/emulated/0/Download/screen.png
+xclip -selection clipboard -target image/png -i $HOME/Downloads/screenshots/screen.png
+rm $HOME/Downloads/screenshots/screen.png