dotfiles/nix/configs/rofi.nix
2024-07-31 07:17:52 +02:00

121 lines
2.6 KiB
Nix
Executable file

{ pkgs, lib, ... }: {
home-manager.users.grape.programs.rofi = {
enable = true;
font = "Jetbrains Mono";
theme = "/home/grape/.config/rofi/theme.rasi";
plugins = with pkgs; [
rofi-calc
rofi-emoji
];
};
home-manager.users.grape.home.file.".config/rofi/theme.rasi" = {
enable = true;
text = ''
/*******************************************************************************
* MACOS SPOTLIGHT LIKE DARK THEME FOR ROFI
* User : LR-Tech
* Theme Repo : https://github.com/lr-tech/rofi-themes-collection
*******************************************************************************/
* {
font: "JetBrains Mono Nerd 12";
bg0: #191830;
bg1: #7E7E7E80;
bg2: #FAD000;
fg0: #DEDEDE;
fg1: #FFFFFF;
fg2: #DEDEDE80;
background-color: transparent;
text-color: @fg0;
margin: 0;
padding: 0;
spacing: 0;
}
window {
background-color: @bg0;
location: center;
width: 640;
border-radius: 8;
}
inputbar {
font: "Montserrat 20";
padding: 12px;
spacing: 12px;
children: [ icon-search, entry ];
}
icon-search {
expand: false;
filename: "search";
size: 28px;
}
icon-search, entry, element-icon, element-text {
vertical-align: 0.5;
}
entry {
font: inherit;
placeholder : "Search";
placeholder-color : @fg2;
}
message {
border: 2px 0 0;
border-color: @bg1;
background-color: @bg1;
}
textbox {
padding: 8px 24px;
}
listview {
lines: 10;
columns: 1;
fixed-height: false;
border: 1px 0 0;
border-color: @bg1;
}
element {
padding: 8px 16px;
spacing: 16px;
background-color: transparent;
}
element normal active {
text-color: @bg2;
}
element alternate active {
text-color: @bg2;
}
element selected normal, element selected active {
background-color: @bg2;
text-color: @fg1;
}
element-icon {
size: 1em;
}
element-text {
text-color: inherit;
}
'';
};
}