diff options
| author | Polesznyák Márk <contact@pml68.dev> | 2025-11-29 01:45:07 +0100 |
|---|---|---|
| committer | Polesznyák Márk <contact@pml68.dev> | 2025-12-29 14:50:02 +0100 |
| commit | bf7347380207d80183ce80ae6547ef08fa579c6a (patch) | |
| tree | ec64896997e4bd76d89738f0b156dde7423ff107 /scripts/fcopy | |
| parent | feat: initial commit (diff) | |
| download | dotfiles-bf7347380207d80183ce80ae6547ef08fa579c6a.tar.gz | |
feat: add scripts, TARGET variable for Makefile
Diffstat (limited to 'scripts/fcopy')
| -rwxr-xr-x | scripts/fcopy | 8 |
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 |
