From 5a9704167b3fd99cbefd691916996280cea7efbb Mon Sep 17 00:00:00 2001 From: S4NKALP Date: Mon, 25 Mar 2024 15:56:51 +0545 Subject: [PATCH] . --- misc/bin/asci | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100755 misc/bin/asci diff --git a/misc/bin/asci b/misc/bin/asci new file mode 100755 index 00000000..a74e16a0 --- /dev/null +++ b/misc/bin/asci @@ -0,0 +1,32 @@ +#!/bin/bash +cat <<"EOF" + _ ____ ____ ___ ___ + / \ / ___| / ___|_ _|_ _| + / _ \ \___ \| | | | | | + / ___ \ ___) | |___ | | | | +/_/ \_\____/ \____|___|___| + -Z4CKX + +EOF + +# ----------------------------------------------------- +# Script to create ascii font based header on user input +# and copy the result to the clipboard +# ----------------------------------------------------- + +read -p "Enter the text for ascii encoding: " mytext + +if [ -f ~/ASCII.txt ]; then + touch ~/ASCII.txt +fi + +echo "cat <<\"EOF\"" > ~/ASCII.txt +ASCII "$mytext" >> ~/ASCII.txt +echo "" >> ~/ASCII.txt +echo "EOF" >> ~/ASCII.txt + +lines=$( cat ~/ASCII.txt ) +wl-copy "$lines" +xclip -sel clip ~/ASCII.txt + +echo "Text copied to clipboard!"