how to display and enter emoji in urxvt with xfce
by BenCollver from LinuxQuestions.org on (#6G5ZE)
Learned how to do emoji in urxvt today, and thought i'd share.
To display emoji in urxvt, configure DejaVu Sans as the second font.
Example:
Code:urxvt -fn 'xft:Source Code Pro,xft:DejaVu Sans'Example configuration in ~/.Xresources
Code:URxvt.font:xft:Source Code Pro,xft:DejaVu SansTo enter emoji, configure a keyboard shortcut.
* Applications
* Settings
* Keyboard
* Application Shortcuts
* + Add
* Command: /usr/bin/gucharmap
* Click OK
* Command: Ctrl .
* Click Close
* Press Ctrl . to open the character map
* Select DejaVu Sans
* View
* By Unicode Block
* Emoticons
* Close character map
To use the keyboard shortcut:
* Press Ctrl . to open the character map
* Double-click desired emoticon
* At "Text to copy:", drag pointer over emoticon to select it
* Press Alt-Tab to switch back to urxvt
* Click middle button to paste the emoji into urxvt
Alternatively, you can look up the Unicode codepoint and then enter that into urxvt. For example, to get the smiling face with sunglasses emoji (codepoint 1F60E):
* While holding down Ctrl-Shift, type: 1f60e
* Release Ctrl-Shift
Note that this only works in urxvt. In a GTK application, it would be Ctrl-Shift-U, release the U, then type 1f60e.
To display emoji in urxvt, configure DejaVu Sans as the second font.
Example:
Code:urxvt -fn 'xft:Source Code Pro,xft:DejaVu Sans'Example configuration in ~/.Xresources
Code:URxvt.font:xft:Source Code Pro,xft:DejaVu SansTo enter emoji, configure a keyboard shortcut.
* Applications
* Settings
* Keyboard
* Application Shortcuts
* + Add
* Command: /usr/bin/gucharmap
* Click OK
* Command: Ctrl .
* Click Close
* Press Ctrl . to open the character map
* Select DejaVu Sans
* View
* By Unicode Block
* Emoticons
* Close character map
To use the keyboard shortcut:
* Press Ctrl . to open the character map
* Double-click desired emoticon
* At "Text to copy:", drag pointer over emoticon to select it
* Press Alt-Tab to switch back to urxvt
* Click middle button to paste the emoji into urxvt
Alternatively, you can look up the Unicode codepoint and then enter that into urxvt. For example, to get the smiling face with sunglasses emoji (codepoint 1F60E):
* While holding down Ctrl-Shift, type: 1f60e
* Release Ctrl-Shift
Note that this only works in urxvt. In a GTK application, it would be Ctrl-Shift-U, release the U, then type 1f60e.