Unicode selector plugin for rofi
paru -S rofi-unicode
-
Clone repo:
git clone https://github.com/Rolv-Apneseth/rofi-unicode.git
-
Use
just
to install (requirescargo
andjust
)cd rofi-unicode && sudo just install
git clone https://github.com/Rolv-Apneseth/rofi-unicode.git
cd rofi-unicode
cargo build --release --lib
sudo cp target/release/librofi_unicode.so /usr/lib/rofi/unicode.so
If you are using the latest changes from the rofi repo (e.g. rofi-lbonn-wayland-git, rofi-git), then the build step needs to be preceded by RUSTFLAGS="--cfg rofi_next" for it to work
After installing, simply run the following command:
rofi -modi unicode -show unicode
However, I also recommend setting a theme with the -theme
flag. The demo uses the builtin Monokai theme (-theme Monokai
), and for my own use I have custom themes here, as seen on the demo image for rofi-nerdy. Experiment with what works for you.
Keybind | Default rofi keybind | Action |
---|---|---|
kb-accept-entry |
Enter | Copy unicode character |
kb-accept-alt |
Shift+Enter | Attempt to insert unicode character |
- To change a
rofi
keybind, you can, for example, use-kb-accept-entry Ctrl+c
- rofimoji: I wish I had found this one before bothering to work on this ... probably better all around, and allows choosing specific groups, and even nerd font icons
- rofi-emoji: much better than this plugin for emojis specifically
- rofi-calc: calculator with natural language parsing - pretty cool
And of course, shameless plug of my own ones:
- rofi-games: launch games installed from various sources on your system
- rofi-nerdy: like this plugin but for nerd font icons
- This SO Q+A for pointing me towards the Unicode Character Database
- rofi-mode-rs for the Rust bindings to create
Rofi
plugins - All the other dependencies of this project, and all their dependencies too