feat(users/Profpatsch/alacritty): add modus & ef themes

Change-Id: I133f29e38f1e9c9c8b75468993b97951aff3e9da
Reviewed-on: https://cl.tvl.fyi/c/depot/+/12894
Tested-by: BuildkiteCI
Reviewed-by: Profpatsch <mail@profpatsch.de>
This commit is contained in:
Profpatsch 2024-12-14 14:52:29 +01:00
parent 6068d044b3
commit cd521a168e
3 changed files with 48 additions and 2 deletions

View file

@ -449,6 +449,7 @@ async function exportColorSchemeDbusInterface() {
}
const themePath = await getThemePath(theme);
if (themePath === null) {
console.warn(`Theme ${theme} not found`);
return;
}
if (cs === 'dark') {

View file

@ -6,3 +6,10 @@ monokai_pro
night_owlish_light
papercolor_light
everforest_light
github_light
gruvbox_light
one_light
papertheme
rose_pine_dawn

View file

@ -1,7 +1,8 @@
{ depot, pkgs, lib, ... }:
let
bins = depot.nix.getBins pkgs.alacritty [ "alacritty" ];
bins = depot.nix.getBins pkgs.alacritty [ "alacritty" ]
// depot.nix.getBins pkgs.coreutils [ "mkdir" "cp" "install" ];
# https://github.com/alacritty/alacritty-theme
themes = {
@ -37,14 +38,51 @@ let
]
);
alacritty-themes = pkgs.fetchFromGitHub {
alacritty-themes-upstream = pkgs.fetchFromGitHub {
owner = "alacritty";
repo = "alacritty-theme";
rev = "95a7d695605863ede5b7430eb80d9e80f5f504bc";
sha256 = "sha256-D37MQtNS20ESny5UhW1u6ELo9czP4l+q0S8neH7Wdbc=";
};
alacritty-themes-modes-ef = pkgs.fetchFromGitHub {
owner = "anhsirk0";
repo = "alacritty-themes";
rev = "5a2c194a682ec75d46553f9a9d6c43fbf39c689d";
sha256 = "sha256-x5QrtSXNc05DNexM+ZtRzd8T9FdthZUzjW/2uEBdRCk=";
};
alacritty-themes = depot.nix.runExecline "alacritty-themes-merged" { } [
"importas"
"out"
"out"
"if"
[ bins.mkdir "-p" "$\{out}/themes" ]
"if"
[
"elglob"
"-0"
"themes"
"${alacritty-themes-upstream}/themes/*"
bins.install
"-m644"
"-t"
"\${out}/themes"
"$themes"
]
"if"
[
"elglob"
"-0"
"themes"
"${alacritty-themes-modes-ef}/themes/*"
bins.install
"-m644"
"-t"
"\${out}/themes"
"$themes"
]
];
in
{
inherit