Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/rolv-apneseth/rofi-nerdy
Nerd font icon selector plugin for rofi
https://github.com/rolv-apneseth/rofi-nerdy
Last synced: about 1 month ago
JSON representation
Nerd font icon selector plugin for rofi
- Host: GitHub
- URL: https://github.com/rolv-apneseth/rofi-nerdy
- Owner: Rolv-Apneseth
- License: agpl-3.0
- Created: 2024-01-14T13:16:40.000Z (12 months ago)
- Default Branch: main
- Last Pushed: 2024-06-20T19:44:44.000Z (7 months ago)
- Last Synced: 2024-06-21T13:49:24.288Z (7 months ago)
- Language: Rust
- Homepage:
- Size: 96.7 KB
- Stars: 12
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
rofi-nerdy
Nerd font icon selector plugin for rofi
![rofi-nerdy - demo image](https://github.com/Rolv-Apneseth/rofi-nerdy/assets/69486699/9dfb6cd0-17aa-4571-859e-94523327710a)
## Dependencies
Commands used vary depending on your chosen display server:
### Wayland
- [wl-clipboard](https://github.com/bugaevc/wl-clipboard)
- [wtype](https://github.com/atx/wtype)---
### X11
- [xclip](https://github.com/astrand/xclip)
- [xdotool](https://github.com/jordansissel/xdotool)## Installation
### AUR
```bash
paru -S rofi-nerdy
```---
### just
1. Clone repo:
```bash
git clone https://github.com/Rolv-Apneseth/rofi-nerdy.git
```2. Use `just` to install (requires `cargo` and `just`)
```bash
cd rofi-nerdy && sudo just install
```---
### Manual (not recommended)
```bash
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
## Usage
After installing, simply run the following command:
```bash
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](https://github.com/Rolv-Apneseth/.dotfiles/tree/main/rofi/.config/rofi), specifically the `icons.rasi` file (follow the import chain for the full theme).
## Keybinds
| 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`
## Acknowledgement
The creation of this plugin was directly inspired by [nerdy.nvim](https://github.com/2KAbhishek/nerdy.nvim), so thank you to [@2KAbhishek](https://github.com/2KAbhishek).
Of course, thank you also to the creator and maintainers of the [nerd fonts](https://github.com/ryanoasis/nerd-fonts) themselves.