Jump to content

Rofi: Difference between revisions

From Official NixOS Wiki
Phobos (talk | contribs)
Created wiki entry for Rofi
 
Phobos (talk | contribs)
No edit summary
 
Line 8: Line 8:


== Home Manager ==
== Home Manager ==
For a more declarative setup you can use Home Manager. You can find option at [https://home-manager-options.extranix.com/?query=programs.rofi programs.rofi] in Home Manager options.
For a more declarative setup you can use Home Manager. You can find more options at [https://home-manager-options.extranix.com/?query=programs.rofi programs.rofi] in Home Manager options.


A simple example:
A simple example:

Latest revision as of 21:08, 27 November 2025

Rofi is a window switcher, run dialog, ssh-launcher and dmenu replacement.

Installation

You can install Rofi simply with:

❄︎ /etc/nixos/configuration.nix
environment.systemPackages = [
  pkgs.rofi
];

Home Manager

For a more declarative setup you can use Home Manager. You can find more options at programs.rofi in Home Manager options.

A simple example:

❄︎ /etc/nixos/home.nix
programs.rofi = {
    enable = true;
    theme = "sidebar";
    font = "sans-serif";
    package = pkgs.rofi;
    modes = [
      "drun"
      "run"
      "window"
      "ssh"  
    ];
    extraConfig = {
      show-icons = true;
    };
  };