nix/home-manager/common/desktops/hyprland/themes/green/rofi-conf.nix

223 lines
5.4 KiB
Nix
Raw Normal View History

2023-11-19 12:20:37 +01:00
{ ...}: {
home.file = {
# https://github.com/davatorium/rofi/blob/next/CONFIG.md
# Rofi configuration
".config/rofi/config.rasi" = {
enable = true;
executable = false;
text = ''
configuration {
}
2023-11-19 12:57:34 +01:00
@theme "dark"
2023-11-19 12:20:37 +01:00
'';
};
# Rofi theme
2023-11-19 12:57:34 +01:00
".config/rofi/themes/dark.rasi" = {
2023-11-19 12:20:37 +01:00
enable = true;
executable = false;
text = ''
/* ==========================================================================
Rofi color theme
Based on the Gruvbox color scheme for Vim by morhetz
https://github.com/morhetz/gruvbox
2023-11-19 12:57:34 +01:00
File: dark.rasi
2023-11-19 12:20:37 +01:00
Desc: Gruvbox dark color theme for Rofi
Author: bardisty <b@bah.im>
2023-11-19 12:57:34 +01:00
Source: https://github.com/bardisty/rofi
2023-11-19 12:20:37 +01:00
Modified: Mon Feb 12 2018 04:08:43 PST -0800
========================================================================== */
* {
/* Theme settings */
highlight: bold italic;
scrollbar: true;
/* Gruvbox dark colors */
2023-11-19 12:57:34 +01:00
dark-bg0: #282828;
dark-bg0-soft: #32302f;
dark-bg3: #665c54;
dark-fg0: #d9eed2;
dark-fg1: #d9eed2;
dark-red-dark: #fb0029;
dark-red-light: #fb4934;
dark-yellow-dark: #7a6640;
dark-yellow-light: #7a6640;
dark-gray: #a89984;
2023-11-19 12:20:37 +01:00
/* Theme colors */
2023-11-19 12:57:34 +01:00
background: @dark-bg0;
2023-11-19 12:20:37 +01:00
background-color: @background;
2023-11-19 12:57:34 +01:00
foreground: @dark-fg1;
border-color: @dark-gray;
2023-11-19 12:20:37 +01:00
separatorcolor: @border-color;
scrollbar-handle: @border-color;
normal-background: @background;
normal-foreground: @foreground;
2023-11-19 12:57:34 +01:00
alternate-normal-background: @dark-bg0-soft;
2023-11-19 12:20:37 +01:00
alternate-normal-foreground: @foreground;
2023-11-19 12:57:34 +01:00
selected-normal-background: @dark-bg3;
selected-normal-foreground: @dark-fg0;
2023-11-19 12:20:37 +01:00
2023-11-19 12:57:34 +01:00
active-background: @dark-yellow-dark;
2023-11-19 12:20:37 +01:00
active-foreground: @background;
alternate-active-background: @active-background;
alternate-active-foreground: @active-foreground;
2023-11-19 12:57:34 +01:00
selected-active-background: @dark-yellow-light;
2023-11-19 12:20:37 +01:00
selected-active-foreground: @active-foreground;
2023-11-19 12:57:34 +01:00
urgent-background: @dark-red-dark;
2023-11-19 12:20:37 +01:00
urgent-foreground: @background;
alternate-urgent-background: @urgent-background;
alternate-urgent-foreground: @urgent-foreground;
2023-11-19 12:57:34 +01:00
selected-urgent-background: @dark-red-light;
2023-11-19 12:20:37 +01:00
selected-urgent-foreground: @urgent-foreground;
}
2023-11-19 12:57:34 +01:00
@import "common"
2023-11-19 12:20:37 +01:00
'';
};
# Rofi theme
2023-11-19 12:57:34 +01:00
".config/rofi/themes/common.rasi" = {
2023-11-19 12:20:37 +01:00
enable = true;
executable = false;
text = ''
/* ==========================================================================
2023-11-19 12:57:34 +01:00
File: common.rasi
2023-11-19 12:20:37 +01:00
Desc: Shared rules between all gruvbox themes
Author: bardisty <b@bah.im>
2023-11-19 12:57:34 +01:00
Source: https://github.com/bardisty/rofi
2023-11-19 12:20:37 +01:00
Modified: Mon Feb 12 2018 06:06:47 PST -0800
========================================================================== */
window {
background-color: @background;
border: 2;
padding: 2;
}
mainbox {
border: 0;
padding: 0;
}
message {
border: 2px 0 0;
border-color: @separatorcolor;
padding: 1px;
}
textbox {
highlight: @highlight;
text-color: @foreground;
}
listview {
border: 2px solid 0 0;
padding: 2px 0 0;
border-color: @separatorcolor;
spacing: 2px;
scrollbar: @scrollbar;
}
element {
border: 0;
padding: 2px;
}
element.normal.normal {
background-color: @normal-background;
text-color: @normal-foreground;
}
element.normal.urgent {
background-color: @urgent-background;
text-color: @urgent-foreground;
}
element.normal.active {
background-color: @active-background;
text-color: @active-foreground;
}
element.selected.normal {
background-color: @selected-normal-background;
text-color: @selected-normal-foreground;
}
element.selected.urgent {
background-color: @selected-urgent-background;
text-color: @selected-urgent-foreground;
}
element.selected.active {
background-color: @selected-active-background;
text-color: @selected-active-foreground;
}
element.alternate.normal {
background-color: @alternate-normal-background;
text-color: @alternate-normal-foreground;
}
element.alternate.urgent {
background-color: @alternate-urgent-background;
text-color: @alternate-urgent-foreground;
}
element.alternate.active {
background-color: @alternate-active-background;
text-color: @alternate-active-foreground;
}
scrollbar {
width: 4px;
border: 0;
handle-color: @scrollbar-handle;
handle-width: 8px;
padding: 0;
}
mode-switcher {
border: 2px 0 0;
border-color: @separatorcolor;
}
inputbar {
spacing: 0;
text-color: @normal-foreground;
padding: 2px;
children: [ prompt, textbox-prompt-sep, entry, case-indicator ];
}
case-indicator,
entry,
prompt,
button {
spacing: 0;
text-color: @normal-foreground;
}
button.selected {
background-color: @selected-normal-background;
text-color: @selected-normal-foreground;
}
textbox-prompt-sep {
expand: false;
str: ":";
text-color: @normal-foreground;
margin: 0 0.3em 0 0;
}
element-text, element-icon {
background-color: inherit;
text-color: inherit;
}
'';
};
};
}