Skip to main content

Input emoji

Input emoji by layer + keys. When press and hold key z to activate the 'emoji' layer:

  • j: 😂 (joy)

Use any key for the layer, also consider using:

  • simlayer('z', 'emoji')
  • hyperLayer('z', 'emoji')
  • duoLayer('z', 'x', 'emoji')

Copy and edit the code below in the online editor:

export const rules = () => [
layer('z', 'emoji').manipulators({
j: toPaste('😂'), // joy
}),
]

Or copy the JSON below and add it to Karabiner-Elements without changes:

{
"description": "Layer - emoji",
"manipulators": [
{
"type": "basic",
"from": {
"key_code": "z"
},
"to": [
{
"set_variable": {
"name": "emoji",
"value": 1
}
}
],
"conditions": [
{
"type": "variable_unless",
"name": "emoji",
"value": 1
}
],
"to_if_alone": [
{
"key_code": "z"
}
],
"to_after_key_up": [
{
"set_variable": {
"name": "emoji",
"value": 0
}
}
]
},
{
"type": "basic",
"from": {
"key_code": "j"
},
"to": [
{
"shell_command": "osascript -e '\nset prev to the clipboard\nset the clipboard to \"😂\"\ntell application \"System Events\"\n keystroke \"v\" using command down\n delay 0.1\nend tell\nset the clipboard to prev'"
}
],
"conditions": [
{
"type": "variable_if",
"name": "emoji",
"value": 1
}
]
}
]
}