/rofi-ollama

Launch ollama models from Rofi

Primary LanguageRustMozilla Public License 2.0MPL-2.0

rofi-ollama

A rofi plugin that asks ollama about available models to quickly start new conversations.

Example

mode_example.mp4

Installation

Via package manager

The plugin is only packaged for Nix. See

From source

Nix

To get a working dev shell via nix:

nix develop

Others

You will need cargo + some dependencies:

  • pkg-config
  • openssl
  • glib
  • pango
  • cairo

Build the plugin

For unreleased versions of rofi, you will need to set RUSTFLAGS=--cfg rofi_next. Then:

cargo build --release

For local testing/usage:

  export ROFI_PLUGIN_PATH=PATH/TO/rofi-ollama/target/release/
  rofi -modi ollama -show ollama

Or directly install the plugin:

  mv ./target/release/librofi_ollama.so /PATH/TO/ROFI/lib/rofi/librofi_ollama.so