System-wide character-picker: emoji and unicode shell extensions for rofi
Nelze vybrat více než 25 témat Téma musí začínat písmenem nebo číslem, může obsahovat pomlčky („-“) a může být dlouhé až 35 znaků.
Mathieu Laparie 247e581894 Shortened readme. před 1 rokem
README.md Shortened readme. před 1 rokem
config.example Initial commit. před 1 rokem
emojis.txt automatically download emoji list před 2 roky
rofiemoji-rofiunicode1.png Initial commit. před 1 rokem
rofiemoji-rofiunicode2.png Initial commit. před 1 rokem
rofiemoji.jpg screenshot update před 2 roky
rofiemoji.sh Initial commit. před 1 rokem
rofiunicode.sh Initial commit. před 1 rokem
sidetab-adapta.rasi Initial commit. před 1 rokem
unicode.txt Initial commit. před 1 rokem

README.md

rofiemoji-rofiunicode

Inspired by fdw/rofimoji and its script version by nkoehring/rofiemoji, rofiemoji-rofiunicode is the combination of two rofi scripts to search emojis or unicode characters directly in rofi. Unicode characters and emojis show up as separate tabs when rofi is invoked:

rofiemoji-rofiunicode1

rofiemoji-rofiunicode2

rofiemoji.sh and rofiunicode.sh will try to download the lists of emoji and unicode characters when used the first time, unless the full repository has already been cloned using:

cd ~/.config
git clone https://github.com/Kabouik/rofiemoji-rofiunicode.git

The list of unicode characters was originally created by /u/fe80c0ffee.

Prerequisites

  • An emoji capable font, for example Noto Emoji or Noto Color Emoji.
  • xsel to copy the selection to the clipboard. You should find it in your package manager.

Usage example

Add a custom keybinding using your window-manager settings for the following command:

rofi -show windowcd -theme-str '#window{width: 30%;}' # See the rofi documentation for details

Navigate through roji tabs using Ctrl+Tab (default) and search emojis or unicode characters by keyword. Pressing Return will copy the highlighted character to the clipboard.

For rofi to look like the above screenshots, use the supplied config file and sidetab-adapta.rasi theme (originally taken from the rofi-themes collection):

mv $HOME/.config/rofi/config $HOME/.config/rofi/config.back
cp $HOME/.config/rofiemoji-rofiunicode/config.example $HOME/.config/rofi/config
cp $HOME/.config/rofiemoji-rofiunicode/sidetab-adapta.rasi $HOME/.local/share/rofi/themes/

The config file is customized to my own system and preferences. It is assumed that rofi and rofiemoji-rofiunicode folders are located in ~/.config/. Make sure you reviewed the few uncommented lines to check whether my custom preferences in config will work on your system. For instance, this config file is adapted to gnome-terminal, while default values might work best with other terminals.

Alternative

An alternative based on rofimoji by fdw instead of rofi-scripts, but still with the addition of unicode characters from /u/fe80c0ffee, is Kabouik/rofimoji. It allows multiple selection of emojis or unicode characters, as well as direct input without the clipboard step, but the window customisation is not as flexible.

Kabouik/rofimoji