mirror of
https://github.com/SebastianStork/nixos-config.git
synced 2026-01-21 17:31:34 +01:00
Reduce number of rofi config files
This commit is contained in:
parent
ca4a434371
commit
314029a656
4 changed files with 28 additions and 33 deletions
|
|
@ -1,12 +1,3 @@
|
|||
* {
|
||||
background: #1E2127FF;
|
||||
background-alt: #282B31FF;
|
||||
foreground: #FFFFFFFF;
|
||||
selected: #61AFEFFF;
|
||||
active: #98C379FF;
|
||||
urgent: #E06C75FF;
|
||||
}
|
||||
|
||||
/*****----- Configuration -----*****/
|
||||
configuration {
|
||||
modi: "drun,run,filebrowser,window";
|
||||
|
|
|
|||
|
|
@ -1,8 +0,0 @@
|
|||
* {
|
||||
background: #1E2127FF;
|
||||
background-alt: #282B31FF;
|
||||
foreground: #FFFFFFFF;
|
||||
selected: #61AFEFFF;
|
||||
active: #98C379FF;
|
||||
urgent: #E06C75FF;
|
||||
}
|
||||
|
|
@ -1,6 +1,6 @@
|
|||
{ assembleWrapper, moduleArgs, ... }:
|
||||
let
|
||||
inherit (moduleArgs) pkgs;
|
||||
inherit (moduleArgs) pkgs lib;
|
||||
in
|
||||
{
|
||||
theme ? "dark",
|
||||
|
|
@ -10,16 +10,36 @@ assembleWrapper {
|
|||
|
||||
flags =
|
||||
let
|
||||
color-file =
|
||||
theming =
|
||||
{
|
||||
dark = ./dark.rasi;
|
||||
light = ./light.rasi;
|
||||
dark = ''
|
||||
* {
|
||||
background: #1E2127FF;
|
||||
background-alt: #282B31FF;
|
||||
foreground: #FFFFFFFF;
|
||||
selected: #61AFEFFF;
|
||||
active: #98C379FF;
|
||||
urgent: #E06C75FF;
|
||||
}
|
||||
'';
|
||||
light = ''
|
||||
* {
|
||||
background: #F1F1F1FF;
|
||||
background-alt: #E0E0E0FF;
|
||||
foreground: #252525FF;
|
||||
selected: #008EC4FF;
|
||||
active: #10A778FF;
|
||||
urgent: #C30771FF;
|
||||
}
|
||||
'';
|
||||
}
|
||||
.${theme};
|
||||
rofi-config = pkgs.concatText "rofi-config" [
|
||||
./config.rasi
|
||||
color-file
|
||||
];
|
||||
rofi-config = pkgs.writeText "rofi-config" (
|
||||
lib.concatLines [
|
||||
theming
|
||||
(builtins.readFile ./config.rasi)
|
||||
]
|
||||
);
|
||||
in
|
||||
[
|
||||
"-config"
|
||||
|
|
|
|||
|
|
@ -1,8 +0,0 @@
|
|||
* {
|
||||
background: #F1F1F1FF;
|
||||
background-alt: #E0E0E0FF;
|
||||
foreground: #252525FF;
|
||||
selected: #008EC4FF;
|
||||
active: #10A778FF;
|
||||
urgent: #C30771FF;
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue