From f8d09c5cfd6d1d9595b64547dc9d29c63e40c5f2 Mon Sep 17 00:00:00 2001 From: Jacob McDonnell Date: Thu, 5 Dec 2024 13:49:22 -0500 Subject: Moved .local/bin to scripts --- scripts/getUnicode | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100755 scripts/getUnicode (limited to 'scripts/getUnicode') diff --git a/scripts/getUnicode b/scripts/getUnicode new file mode 100755 index 0000000..13d7971 --- /dev/null +++ b/scripts/getUnicode @@ -0,0 +1,12 @@ +#!/bin/sh + +char=$(cut -d ';' -f1 ~/.local/share/unicode | dmenu -i -l 30 | sed "s/ .*//") + +[ -z "$char" ] && exit + +if [ -n "$1" ]; then + xdotool type "$char" +else + echo "$char" | tr -d '\n' | xclip -selection clipboard + notify-send "'$char' copied to clipboard." & +fi -- cgit v1.2.3