Nerd font icon selector plugin for rofi
Commands used vary depending on your chosen display server:
paru -S rofi-nerdy
-
Clone repo:
git clone https://github.com/Rolv-Apneseth/rofi-nerdy.git
-
Use
just
to install (requirescargo
andjust
)cd rofi-nerdy && sudo just install
git clone https://github.com/Rolv-Apneseth/rofi-nerdy.git
cd rofi-nerdy
cargo build --release --lib
sudo cp target/release/librofi_nerdy.so /usr/lib/rofi/nerdy.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 nerdy -show nerdy
However, I also recommend setting a theme with the -theme
flag. To achieve what is shown in the demo image, have a look at my rofi config, specifically the icons.rasi
file (follow the import chain for the full theme).
Keybind | Default rofi keybind | Action |
---|---|---|
kb-accept-entry |
Enter | Copy icon |
kb-accept-alt |
Shift+Enter | Attempt to insert icon |
- To change a
rofi
keybind, you can, for example, use-kb-accept-entry Ctrl+c
The creation of this plugin was directly inspired by nerdy.nvim, so thank you to @2KAbhishek.
Of course, thank you also to the creator and maintainers of the nerd fonts themselves.