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 -----*****/
|
||||||
configuration {
|
configuration {
|
||||||
modi: "drun,run,filebrowser,window";
|
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, ... }:
|
{ 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"
|
||||||
|
|
|
||||||
|
|
@ -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