Extract rofi theming into separate files

This commit is contained in:
SebastianStork 2024-07-17 00:06:13 +02:00
parent 584cd2101a
commit 8b69c15eae
3 changed files with 22 additions and 27 deletions

View file

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

View file

@ -17,38 +17,17 @@
let let
theming = theming =
{ {
dark = '' dark = ./dark-theme.rasi;
* { light = ./light-theme.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.writeText "rofi-config" (
lib.concatLines [
theming
(builtins.readFile ./config.rasi)
]
);
in in
[ [
"-config" "-config"
rofi-config (pkgs.concatText "rofi-config" [
./config.rasi
theming
])
]; ];
}; };
} }

View file

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