mirror of
https://github.com/keanuplayz/dotfiles.git
synced 2024-08-15 02:33:12 +00:00
[zsh] add insert-text-face script
This commit is contained in:
parent
5bed0d6463
commit
74e5fd2e54
1 changed files with 13 additions and 0 deletions
13
zsh/bin/insert-text-face
Executable file
13
zsh/bin/insert-text-face
Executable file
|
@ -0,0 +1,13 @@
|
|||
#!/usr/bin/env bash
|
||||
|
||||
declare -A faces=(
|
||||
["shrug face"]=$'\xc2\xaf\\_(\xe3\x83\x84)_/\xc2\xaf'
|
||||
["lenny face"]=$'( \xcd\xa1\xc2\xb0 \xcd\x9c\xca\x96 \xcd\xa1\xc2\xb0)'
|
||||
["table flip"]=$'(\xe3\x83\x8e\xe0\xb2\xa0\xe7\x9b\x8a\xe0\xb2\xa0)\xe3\x83\x8e\xe5\xbd\xa1\xe2\x94\xbb\xe2\x94\x81\xe2\x94\xbb'
|
||||
)
|
||||
|
||||
if IFS=$'\n' face_name="$(echo -e "${!faces[*]}" | rofi -dmenu)"; then
|
||||
face="${faces[$face_name]}"
|
||||
xsel --clipboard --input <<< "$face"
|
||||
notify-send --icon=utilities-terminal --expire-time=2500 "$0" "$face_name copied to clipboard"
|
||||
fi
|
Loading…
Reference in a new issue