2019-08-30 10:10:16 +00:00
|
|
|
#!/usr/bin/env bash
|
|
|
|
|
|
|
|
declare -A faces=(
|
|
|
|
["shrug face"]=$'\xc2\xaf\\_(\xe3\x83\x84)_/\xc2\xaf'
|
2020-09-05 12:47:48 +00:00
|
|
|
["shrug face (markdown)"]=$'\xc2\xaf\\\\\\_(\xe3\x83\x84)\\_/\xc2\xaf'
|
2019-08-30 10:10:16 +00:00
|
|
|
["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'
|
|
|
|
)
|
|
|
|
|
2020-05-15 17:11:45 +00:00
|
|
|
if IFS=$'\n' face_name="$(echo -E "${!faces[*]}" | rofi -dmenu -i)"; then
|
2019-08-30 10:10:16 +00:00
|
|
|
face="${faces[$face_name]}"
|
2019-09-04 16:22:58 +00:00
|
|
|
echo -n "$face" | xsel --clipboard --input
|
2019-08-30 10:10:16 +00:00
|
|
|
notify-send --icon=utilities-terminal --expire-time=2500 "$0" "$face_name copied to clipboard"
|
|
|
|
fi
|