Formatting

This commit is contained in:
Malte Tammena 2022-05-19 01:38:29 +02:00
parent 8ad5ba4ebf
commit fce4f2838c
2 changed files with 31 additions and 29 deletions

View file

@ -141,7 +141,7 @@ in {
# Printing!
services.printing = lib.mkIf cfg.printing.enable {
enable = true;
drivers = [ pkgs.samsung-unified-linux-driver ];
drivers = [pkgs.samsung-unified-linux-driver];
};
hardware.printers = lib.mkIf cfg.printing.enable {
ensureDefaultPrinter = "Laser-Boi";

View file

@ -166,37 +166,39 @@
lightModeConfig = let
bg62 = col.bg.rgbWithAlpha 0.62;
fg1 = col.light1.rgb;
in pkgs.writeText "lightmoderc" ''
colorscheme gruvbox-light
face global PrimarySelection rgba:${bg62},rgba:8ec07c40
face global SecondarySelection rgba:${bg62},rgba:83a59840
face global MatchingChar rgb:${col.bg.rgb},rgb:${fg1}+bf
face global Reference rgb:${fg1}
face global Information Default
remove-hooks global theme
# FZF
hook global -group theme ModuleLoaded fzf %{
set-option global fzf_default_opts '--color=light,gutter:-1'
}
try %{ set-option global fzf_default_opts '--color=light,gutter:-1' }
'';
in
pkgs.writeText "lightmoderc" ''
colorscheme gruvbox-light
face global PrimarySelection rgba:${bg62},rgba:8ec07c40
face global SecondarySelection rgba:${bg62},rgba:83a59840
face global MatchingChar rgb:${col.bg.rgb},rgb:${fg1}+bf
face global Reference rgb:${fg1}
face global Information Default
remove-hooks global theme
# FZF
hook global -group theme ModuleLoaded fzf %{
set-option global fzf_default_opts '--color=light,gutter:-1'
}
try %{ set-option global fzf_default_opts '--color=light,gutter:-1' }
'';
darkModeConfig = let
fg62 = col.fg.rgbWithAlpha 0.62;
bg1 = col.dark1.rgb;
in pkgs.writeText "darkmoderc" ''
colorscheme gruvbox-dark
face global PrimarySelection rgba:${fg62},rgba:8ec07c40
face global SecondarySelection rgba:${fg62},rgba:83a59840
face global MatchingChar rgb:${col.fg.rgb},rgb:${bg1}+bf
face global Reference rgb:${bg1}
face global Information Default
remove-hooks global theme
# FZF
hook global -group theme ModuleLoaded fzf %{
set-option global fzf_default_opts '--color=dark,gutter:-1'
}
try %{ set-option global fzf_default_opts '--color=dark,gutter:-1' }
'';
in
pkgs.writeText "darkmoderc" ''
colorscheme gruvbox-dark
face global PrimarySelection rgba:${fg62},rgba:8ec07c40
face global SecondarySelection rgba:${fg62},rgba:83a59840
face global MatchingChar rgb:${col.fg.rgb},rgb:${bg1}+bf
face global Reference rgb:${bg1}
face global Information Default
remove-hooks global theme
# FZF
hook global -group theme ModuleLoaded fzf %{
set-option global fzf_default_opts '--color=dark,gutter:-1'
}
try %{ set-option global fzf_default_opts '--color=dark,gutter:-1' }
'';
currentThemeFile = "${configDir}/theme";
linkTheme = theme: ''
ln -sf ${theme} ${currentThemeFile}