74 lines
1.6 KiB
Nix
74 lines
1.6 KiB
Nix
{ config, pkgs, ... }:
|
|
|
|
{
|
|
programs.rofi = {
|
|
enable = true;
|
|
package = pkgs.rofi;
|
|
extraConfig = {
|
|
modes = "window,run,ssh,drun";
|
|
show-icons = true;
|
|
display-drun = "Apps:";
|
|
terminal = "alacritty";
|
|
};
|
|
theme = "${config.home.homeDirectory}/.config/rofi/main-theme.rasi";
|
|
};
|
|
|
|
xdg.configFile."rofi/main-theme.rasi".text = ''
|
|
@import "${config.home.homeDirectory}/.config/rofi/matugen-colors.rasi"
|
|
|
|
* {
|
|
font: "JetBrainsMono Nerd Font 12";
|
|
background-color: transparent;
|
|
text-color: @fg0;
|
|
margin: 0px;
|
|
padding: 0px;
|
|
spacing: 0px;
|
|
}
|
|
|
|
window {
|
|
location: center;
|
|
width: 680;
|
|
border-radius: 20px;
|
|
border: 2px;
|
|
border-color: @blue; /* Hier wird jetzt die Matugen-Farbe genutzt */
|
|
background-color: @bg0;
|
|
}
|
|
|
|
mainbox { padding: 12px; }
|
|
|
|
inputbar {
|
|
background-color: @bg1;
|
|
border-color: @bg3;
|
|
border-radius: 12px;
|
|
border: 2px;
|
|
padding: 8px 16px;
|
|
spacing: 8px;
|
|
children: [ prompt, entry ];
|
|
}
|
|
|
|
prompt { text-color: @blue; }
|
|
entry { placeholder: "Search..."; placeholder-color: @fg2; text-color: @fg0; }
|
|
|
|
listview {
|
|
margin: 12px 0 0;
|
|
lines: 8;
|
|
columns: 1;
|
|
fixed-height: false;
|
|
}
|
|
|
|
element {
|
|
padding: 8px 16px;
|
|
spacing: 12px;
|
|
border-radius: 10px;
|
|
}
|
|
|
|
element selected normal {
|
|
background-color: @bg2;
|
|
text-color: @blue;
|
|
}
|
|
|
|
element-icon { size: 1.5em; }
|
|
element-text { text-color: inherit; vertical-align: 0.5; }
|
|
'';
|
|
}
|