2019-12-20 05:54:26 +01:00
|
|
|
|
{ coreutils, dmenu, gnused, writeShellScriptBin, writeText, xdotool, ... }:
|
2019-10-24 02:20:38 +02:00
|
|
|
|
|
|
|
|
|
let
|
|
|
|
|
|
|
|
|
|
# from http://asciimoji.com/
|
|
|
|
|
emoticons = writeText "emoticons" ''
|
2019-12-20 05:54:26 +01:00
|
|
|
|
¯\(°_o)/¯ | dunno lol shrug dlol
|
|
|
|
|
¯\_(ツ)_/¯ | dunno lol shrug dlol
|
|
|
|
|
( ͡° ͜ʖ ͡°) | lenny
|
|
|
|
|
¯\_( ͡° ͜ʖ ͡°)_/¯ | lenny shrug dlol
|
|
|
|
|
( ゚д゚) | aaah sad noo
|
|
|
|
|
ヽ(^o^)丿 | hi yay yey hello
|
|
|
|
|
(^o^; | ups hehe
|
|
|
|
|
(^∇^) | yay yey
|
|
|
|
|
┗(`皿´)┛ | angry argh
|
|
|
|
|
ヾ(^_^) byebye!! | bye
|
|
|
|
|
<(^.^<) <(^.^)> (>^.^)> (7^.^)7 (>^.^<) | dance
|
|
|
|
|
(-.-)Zzz... | sleep
|
|
|
|
|
(∩╹□╹∩) | oh noes woot
|
|
|
|
|
™ | tm
|
|
|
|
|
ζ | zeta
|
|
|
|
|
(╯°□°)╯ ┻━┻ | table flip
|
|
|
|
|
(」゜ロ゜)」 | why woot
|
|
|
|
|
(= ФェФ=) | cat
|
|
|
|
|
(。◕‿‿◕。) | cute
|
|
|
|
|
☜(゚ヮ゚☜) | you
|
|
|
|
|
x⸑x | dead
|
|
|
|
|
☉ ‿ ⚆ | derp
|
|
|
|
|
(҂◡_◡) ᕤ | endure
|
|
|
|
|
(*・‿・)ノ⌒*:・゚✧ | glitter
|
|
|
|
|
(⌐⊙_⊙) | nerd
|
|
|
|
|
WHΣИ $HΛLL WΣ MΣΣ† ΛGΛ|И? | when shall we meet again
|
|
|
|
|
✔ | check
|
|
|
|
|
(◕ᴥ◕ʋ) | dog
|
|
|
|
|
(ノ◕ヮ◕)ノ*:・゚✧ | excited
|
|
|
|
|
(❍ᴥ❍ʋ) | jake dog
|
|
|
|
|
L(° O °L) | lol
|
|
|
|
|
o()xxxx[{::::::::::::::::::> | sword
|
|
|
|
|
(ÒДÓױ) | what wat
|
|
|
|
|
Yᵒᵘ Oᶰˡʸ Lᶤᵛᵉ Oᶰᶜᵉ | yolo
|
|
|
|
|
⊹╰(⌣ʟ⌣)╯⊹ | zen
|
|
|
|
|
@}-,-`- | rose
|
|
|
|
|
'';
|
2019-10-24 02:20:38 +02:00
|
|
|
|
|
2019-12-20 05:54:26 +01:00
|
|
|
|
in writeShellScriptBin "emoticons" ''
|
2019-10-24 02:20:38 +02:00
|
|
|
|
set -efu
|
|
|
|
|
|
|
|
|
|
data=$(${coreutils}/bin/cat ${emoticons})
|
|
|
|
|
emoticon=$(echo "$data" | ${dmenu}/bin/dmenu -l 10 | ${gnused}/bin/sed 's/ | .*//')
|
|
|
|
|
${xdotool}/bin/xdotool type -- "$emoticon"
|
|
|
|
|
exit 0
|
|
|
|
|
''
|