mirror of
https://github.com/SebastianStork/nixos-config.git
synced 2026-01-21 23:11:34 +01:00
Extract rofi theming into separate files
This commit is contained in:
parent
584cd2101a
commit
8b69c15eae
3 changed files with 22 additions and 27 deletions
8
wrappers/rofi/dark-theme.rasi
Normal file
8
wrappers/rofi/dark-theme.rasi
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
* {
|
||||
background: #1E2127FF;
|
||||
background-alt: #282B31FF;
|
||||
foreground: #FFFFFFFF;
|
||||
selected: #61AFEFFF;
|
||||
active: #98C379FF;
|
||||
urgent: #E06C75FF;
|
||||
}
|
||||
|
|
@ -17,38 +17,17 @@
|
|||
let
|
||||
theming =
|
||||
{
|
||||
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;
|
||||
}
|
||||
'';
|
||||
dark = ./dark-theme.rasi;
|
||||
light = ./light-theme.rasi;
|
||||
}
|
||||
.${theme};
|
||||
rofi-config = pkgs.writeText "rofi-config" (
|
||||
lib.concatLines [
|
||||
theming
|
||||
(builtins.readFile ./config.rasi)
|
||||
]
|
||||
);
|
||||
in
|
||||
[
|
||||
"-config"
|
||||
rofi-config
|
||||
(pkgs.concatText "rofi-config" [
|
||||
./config.rasi
|
||||
theming
|
||||
])
|
||||
];
|
||||
};
|
||||
}
|
||||
|
|
|
|||
8
wrappers/rofi/light-theme.rasi
Normal file
8
wrappers/rofi/light-theme.rasi
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
* {
|
||||
background: #F1F1F1FF;
|
||||
background-alt: #E0E0E0FF;
|
||||
foreground: #252525FF;
|
||||
selected: #008EC4FF;
|
||||
active: #10A778FF;
|
||||
urgent: #C30771FF;
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue