aboutsummaryrefslogtreecommitdiff
path: root/scripts/fcopy
diff options
context:
space:
mode:
authorPolesznyák Márk <contact@pml68.dev>2025-11-29 01:45:07 +0100
committerPolesznyák Márk <contact@pml68.dev>2025-12-29 14:50:02 +0100
commitbf7347380207d80183ce80ae6547ef08fa579c6a (patch)
treeec64896997e4bd76d89738f0b156dde7423ff107 /scripts/fcopy
parentfeat: initial commit (diff)
downloaddotfiles-bf7347380207d80183ce80ae6547ef08fa579c6a.tar.gz
feat: add scripts, TARGET variable for Makefile
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