about summary refs log tree commit diff
path: root/bin
diff options
context:
space:
mode:
authorBen Harris <ben@tilde.team>2018-08-16 19:05:54 -0400
committerBen Harris <ben@tilde.team>2018-08-16 19:05:54 -0400
commit677cf422c3151a168ae11b0c7788f7e62a871eb5 (patch)
treea63459d1125eea5f8ac0e8a8dec2d156cce45e42 /bin
parentf6fcd7ffdda7eb765d1c25a2ff6dc81b93c19c62 (diff)
start over with vim. add ~/bin
Diffstat (limited to 'bin')
-rwxr-xr-xbin/bin/upload-screenshot9
1 files changed, 9 insertions, 0 deletions
diff --git a/bin/bin/upload-screenshot b/bin/bin/upload-screenshot
new file mode 100755
index 0000000..021fdc7
--- /dev/null
+++ b/bin/bin/upload-screenshot
@@ -0,0 +1,9 @@
+#!/bin/bash
+
+rename 's/ /-/g' ~/Pictures/*.png
+
+latest=$(ls -Art ~/Pictures | tail -n 1)
+
+pb "~/Pictures/$latest" | xclip -selection clipboard
+notify-send "on yr clipbrd"
+