feat: useless feature which makes the theme change based on an env var
This commit is contained in:
parent
2757c649b9
commit
a27b90af9e
10 changed files with 48 additions and 37 deletions
modules/themes
|
@ -1,29 +1,32 @@
|
|||
variant: { pkgs, ... }: {
|
||||
{ variant, transparency ? 1 }: { pkgs, ... }:
|
||||
let
|
||||
githubTheme = pkgs.myVimPlugins.githubNvimTheme; # github theme for neovim
|
||||
in
|
||||
{
|
||||
name = "github-${variant}";
|
||||
neovim = {
|
||||
plugins = [
|
||||
pkgs.myVimPlugins.github-nvim-theme # github theme for neovim
|
||||
];
|
||||
plugins = [ pkgs.vimExtraPlugins.github-nvim-theme ];
|
||||
|
||||
theme = ''
|
||||
require('github-theme').setup({theme_style = "light", dark_float = true, transparent = true})
|
||||
require('github-theme').setup({theme_style = "${variant}", dark_float = true, transparent = true})
|
||||
'';
|
||||
|
||||
lualineTheme = "github";
|
||||
};
|
||||
tmux.path = "${pkgs.githubNvimTheme}/terminal/tmux/github_light.conf";
|
||||
tmux.path = "${githubTheme}/terminal/tmux/github_${variant}.conf";
|
||||
alacritty.settings = {
|
||||
import = [ "${pkgs.githubNvimTheme}/terminal/alacritty/github_light.yml" ];
|
||||
import = [ "${githubTheme}/terminal/alacritty/github_${variant}.yml" ];
|
||||
window = {
|
||||
padding = {
|
||||
x = 8;
|
||||
y = 8;
|
||||
};
|
||||
|
||||
# transparent bg:)
|
||||
background_opacity = 0.8;
|
||||
|
||||
gtk_theme_variant = "light";
|
||||
gtk_theme_variant = if variant == "light" then "light" else "dark";
|
||||
};
|
||||
|
||||
# transparent bg:)
|
||||
background_opacity = transparency;
|
||||
};
|
||||
}
|
||||
|
||||
|
|
|
@ -1,9 +1,7 @@
|
|||
{ pkgs }:
|
||||
{ pkgs, lib, ... }:
|
||||
let githubVariant = import ./githubVariant.nix;
|
||||
in
|
||||
lib.map (theme: pkgs.callPackage theme { }) [
|
||||
githubVariant
|
||||
"light"
|
||||
githubVariant
|
||||
"dark"
|
||||
lib.lists.map (theme: pkgs.callPackage theme { }) [
|
||||
(githubVariant { variant = "light"; })
|
||||
(githubVariant { variant = "dark"; transparency = 0.8; })
|
||||
]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue