43 lines
1 KiB
Nix
43 lines
1 KiB
Nix
{
|
|
pkgs,
|
|
config,
|
|
lib,
|
|
...
|
|
}:
|
|
lib.mkIf config.programs.rofi.enable {
|
|
programs.rofi =
|
|
let
|
|
conf = "${config.home.homeDirectory}/.config/rofi";
|
|
in
|
|
rec {
|
|
package = pkgs.rofi-wayland.override { inherit plugins; };
|
|
plugins = [ pkgs.rofi-calc ];
|
|
theme = "${conf}/themes/rounded-gray-dark.rasi";
|
|
terminal = "${pkgs.alacritty}/bin/alacritty";
|
|
extraConfig = {
|
|
modes = [
|
|
"combi"
|
|
"filebrowser"
|
|
"ssh"
|
|
"drun"
|
|
"run"
|
|
# WARNING: ABI version mismatch
|
|
# "calc"
|
|
"clipboard:${lib.my.checkPath pkgs.cliphist "cliphist-rofi-img"}"
|
|
"obsidian:${lib.my.checkPath pkgs.rofi-obsidian "rofi-obsidian"}"
|
|
];
|
|
matching = "fuzzy";
|
|
sort = true;
|
|
sorting-method = "fzf";
|
|
show-icons = true;
|
|
steal-focus = true;
|
|
drun-use-desktop-cache = true;
|
|
drun-reload-desktop-cache = true;
|
|
combi-modes = [
|
|
"window"
|
|
"drun"
|
|
"obsidian"
|
|
];
|
|
};
|
|
};
|
|
}
|