about summary refs log tree commit diff
path: root/bin
diff options
context:
space:
mode:
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"
+