summaryrefslogtreecommitdiffstats
path: root/lass/5pkgs/emot-menu/default.nix
diff options
context:
space:
mode:
authorlassulus <lassulus@lassul.us>2018-12-02 05:59:47 +0100
committerlassulus <lassulus@lassul.us>2018-12-02 05:59:47 +0100
commit0947c93af49acae04404589f60094cacb391554c (patch)
treeb934ed7dc9dffab0a26c34267474e9c8150e3630 /lass/5pkgs/emot-menu/default.nix
parent99381f7c9d90fb0be074d469daca4bc433cc0126 (diff)
l: add emot-menu
Diffstat (limited to 'lass/5pkgs/emot-menu/default.nix')
-rw-r--r--lass/5pkgs/emot-menu/default.nix31
1 files changed, 31 insertions, 0 deletions
diff --git a/lass/5pkgs/emot-menu/default.nix b/lass/5pkgs/emot-menu/default.nix
new file mode 100644
index 000000000..d5d84e456
--- /dev/null
+++ b/lass/5pkgs/emot-menu/default.nix
@@ -0,0 +1,31 @@
+{ 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
+ '';
+
+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
+''