Reduce number of rofi config files

This commit is contained in:
SebastianStork 2024-05-31 17:41:52 +02:00
parent ca4a434371
commit 314029a656
4 changed files with 28 additions and 33 deletions

View file

@ -1,12 +1,3 @@
* {
background: #1E2127FF;
background-alt: #282B31FF;
foreground: #FFFFFFFF;
selected: #61AFEFFF;
active: #98C379FF;
urgent: #E06C75FF;
}
/*****----- Configuration -----*****/ /*****----- Configuration -----*****/
configuration { configuration {
modi: "drun,run,filebrowser,window"; modi: "drun,run,filebrowser,window";

View file

@ -1,8 +0,0 @@
* {
background: #1E2127FF;
background-alt: #282B31FF;
foreground: #FFFFFFFF;
selected: #61AFEFFF;
active: #98C379FF;
urgent: #E06C75FF;
}

View file

@ -1,6 +1,6 @@
{ assembleWrapper, moduleArgs, ... }: { assembleWrapper, moduleArgs, ... }:
let let
inherit (moduleArgs) pkgs; inherit (moduleArgs) pkgs lib;
in in
{ {
theme ? "dark", theme ? "dark",
@ -10,16 +10,36 @@ assembleWrapper {
flags = flags =
let let
color-file = theming =
{ {
dark = ./dark.rasi; dark = ''
light = ./light.rasi; * {
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}; .${theme};
rofi-config = pkgs.concatText "rofi-config" [ rofi-config = pkgs.writeText "rofi-config" (
./config.rasi lib.concatLines [
color-file theming
]; (builtins.readFile ./config.rasi)
]
);
in in
[ [
"-config" "-config"

View file

@ -1,8 +0,0 @@
* {
background: #F1F1F1FF;
background-alt: #E0E0E0FF;
foreground: #252525FF;
selected: #008EC4FF;
active: #10A778FF;
urgent: #C30771FF;
}