aboutsummaryrefslogtreecommitdiff
path: root/scripts/fcopy
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/fcopy')
-rwxr-xr-xscripts/fcopy8
1 files changed, 8 insertions, 0 deletions
diff --git a/scripts/fcopy b/scripts/fcopy
new file mode 100755
index 0000000..d7eda81
--- /dev/null
+++ b/scripts/fcopy
@@ -0,0 +1,8 @@
+#!/bin/sh
+if [[ "$1" == *.png ]]; then
+ xclip -selection clipboard -target image/png -i $1
+elif [[ "$1" == *.jpg ]] || [[ "$1" == *.jpeg ]]; then
+ xclip -selection clipboard -target image/jpeg -i $1
+else
+ bat "$1" | xclip -sel clip
+fi