diff options
| author | Jacob McDonnell <jacob@jacobmcdonnell.com> | 2023-01-03 18:36:25 -0500 |
|---|---|---|
| committer | Jacob McDonnell <jacob@jacobmcdonnell.com> | 2023-01-03 18:36:25 -0500 |
| commit | b9e00afded90f03ac18f75aa7dfc8e7f3e146348 (patch) | |
| tree | c297115213f6113177b6b17743739addc16307ef /.local/bin/getUnicode | |
| parent | 09e361a7a4d76ae88520b7a89fe8d0ac3192fcba (diff) | |
Added some scripts
Diffstat (limited to '.local/bin/getUnicode')
| -rwxr-xr-x | .local/bin/getUnicode | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/.local/bin/getUnicode b/.local/bin/getUnicode new file mode 100755 index 0000000..13d7971 --- /dev/null +++ b/.local/bin/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 |
