2018-12-02 04:59:47 +00:00
|
|
|
|
{ coreutils, dmenu, gnused, writeDashBin, writeText, xdotool }: let
|
|
|
|
|
|
|
|
|
|
emoticons = writeText "emoticons" ''
|
|
|
|
|
¯\(°_o)/¯ | dunno lol shrug dlol
|
|
|
|
|
¯\_(ツ)_/¯ | dunno lol shrug dlol
|
|
|
|
|
( ͡° ͜ʖ ͡°) | lenny
|
|
|
|
|
¯\_( ͡° ͜ʖ ͡°)_/¯ | lenny shrug dlol
|
|
|
|
|
( ゚д゚) | aaah sad noo
|
|
|
|
|
ヽ(^o^)丿 | hi yay hello
|
|
|
|
|
(^o^; | ups hehe
|
|
|
|
|
(^∇^) | yay
|
|
|
|
|
┗(`皿´)┛ | angry argh
|
|
|
|
|
ヾ(^_^) byebye!! | bye
|
|
|
|
|
<(^.^<) <(^.^)> (>^.^)> (7^.^)7 (>^.^<) | dance
|
|
|
|
|
(-.-)Zzz... | sleep
|
|
|
|
|
(∩╹□╹∩) | oh noes woot
|
|
|
|
|
™ | tm
|
|
|
|
|
ζ | zeta
|
|
|
|
|
(╯°□°)╯ ┻━┻ | table flip
|
|
|
|
|
(」゜ロ゜)」 | why woot
|
2020-04-21 12:24:14 +00:00
|
|
|
|
(_゜_゜_) | gloom I see you
|
|
|
|
|
༼ ༎ຶ ෴ ༎ຶ༽ | sad
|
|
|
|
|
(\/) (°,,,,°) (\/) | krebs
|
2018-12-02 04:59:47 +00:00
|
|
|
|
'';
|
|
|
|
|
|
|
|
|
|
in
|
|
|
|
|
writeDashBin "emoticons" ''
|
|
|
|
|
set -efu
|
|
|
|
|
|
|
|
|
|
data=$(${coreutils}/bin/cat ${emoticons})
|
|
|
|
|
emoticon=$(echo "$data" | ${dmenu}/bin/dmenu | ${gnused}/bin/sed 's/ | .*//')
|
|
|
|
|
${xdotool}/bin/xdotool type -- "$emoticon"
|
|
|
|
|
exit 0
|
|
|
|
|
''
|