nixos/home/desktop/rofi.nix

31 lines
938 B
Nix

{pkgs, ...}: let
powermenu = pkgs.writeShellScriptBin "powermenu" (builtins.readFile ./scripts/powermenu);
power-profiles = pkgs.writeShellScriptBin "power-profiles" (builtins.readFile ./scripts/power-profiles);
in {
imports = [../gui/foot.nix ./gtk.nix];
home.packages = [powermenu power-profiles];
programs.rofi = {
enable = true;
location = "center";
pass.enable = true;
terminal = "\${pkgs.foot}/bin/foot";
plugins = with pkgs; [
rofi-calc
];
extraConfig = {
modi = "run,drun,calc";
icon-theme = "Delta";
show-icons = true;
drun-display-format = "{icon} {name}";
disable-history = false;
hide-scrollbar = true;
display-drun = " Apps ";
display-run = " Run ";
display-window = " Window";
display-calc = " Calculator";
sidebar-mode = true;
};
theme = ./config/rofi/catppuccin-macchiato.rasi;
};
}