+2
README.md
+2
README.md
···
1
1
# kaomoji
2
2
3
+

4
+
3
5
select from a tiny database of cute little kaomojis, powered by [skate](https://github.com/charmbracelet/skate) and [gum](https://github.com/charmbracelet/gum)!
4
6
5
7
this project was inspired by me wanting to take the AI out of [this charm CLI recipe](https://charm.sh/blog/kamoji-generator/) and instead use their `skate` key-value store.
demo/kaomoji.gif
demo/kaomoji.gif
This is a binary file and will not be displayed.
+32
demo/kaomoji.tape
+32
demo/kaomoji.tape
···
1
+
Require lolcat
2
+
Require gum
3
+
Require skate
4
+
5
+
Set Shell bash
6
+
Set WindowBar ColorfulRight
7
+
Set Theme "Catppuccin Frappe"
8
+
Set Width 600
9
+
Set Height 300
10
+
Set FontSize 13
11
+
Set TypingSpeed 75ms
12
+
Set Padding 20
13
+
14
+
Env DISPLAY ":0"
15
+
16
+
Type "./kaomoji.sh"
17
+
Enter
18
+
Sleep 2.5s
19
+
Down 5
20
+
Sleep 0.5s
21
+
Up 3
22
+
Sleep 0.5s
23
+
Type "angel"
24
+
Sleep 0.5s
25
+
Down 1
26
+
Sleep 0.5s
27
+
Up 1
28
+
Sleep 0.5s
29
+
Enter
30
+
Sleep 1.5s
31
+
Paste
32
+
Sleep 5.5s
+8
-4
kaomoji.sh
+8
-4
kaomoji.sh
···
54
54
# If xsel (X11) or pbcopy (macOS) exists, copy to the clipboard. If not, just
55
55
# print the Kaomoji.
56
56
if command -v xsel &> /dev/null; then
57
-
printf '%s' "$choice" | xclip -sel clip | notif # X11
57
+
printf '%s' "$choice" | xclip -sel clip # X11
58
+
notif
58
59
elif command -v pbcopy &> /dev/null; then
59
-
printf '%s' "$choice" | pbcopy | notif # macOS
60
+
printf '%s' "$choice" | pbcopy # macOS
61
+
notif
60
62
else
61
63
# We can't copy, so just print it out.
62
-
printf 'Here you go: %s\n' "$choice" | lolcat -p 0.5 | notif
64
+
printf 'Here you go: %s\n' "$choice" | lolcat -p 0.5
65
+
notif
63
66
exit 0
64
67
fi
65
68
66
69
# We're done!
67
-
printf 'Copied %s to the clipboard\n' "$choice" | lolcat -p 0.5 | notif
70
+
printf 'Copied %s to the clipboard\n' "$choice" | lolcat -p 0.5
71
+
notif