blob: 3ce635dac94a82dd913d6917346dfc3453eb7b47 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
|
{ 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
(_゜_゜_) | gloom I see you
༼ ༎ຶ ෴ ༎ຶ༽ | sad
(\/) (°,,,,°) (\/) | krebs
'';
in
writeDashBin "emoticons" ''
set -efu
data=$(${coreutils}/bin/cat ${emoticons})
emoticon=$(echo "$data" | ${dmenu}/bin/dmenu | ${gnused}/bin/sed 's/ | .*//')
${xdotool}/bin/xdotool type --clearmodifiers -- "$emoticon"
exit 0
''
|