From bf7347380207d80183ce80ae6547ef08fa579c6a Mon Sep 17 00:00:00 2001 From: Polesznyák Márk Date: Sat, 29 Nov 2025 01:45:07 +0100 Subject: feat: add scripts, TARGET variable for Makefile --- scripts/fcopy | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100755 scripts/fcopy (limited to 'scripts/fcopy') 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 -- cgit v1.2.3