2020-08-10 01:17:22 +04:00
|
|
|
{ pkgs, lib, config, ... }:
|
|
|
|
let
|
|
|
|
thm = config.lib.base16.theme;
|
|
|
|
in
|
2021-06-16 05:30:04 +03:00
|
|
|
with config.deviceSpecific;
|
2020-08-10 01:17:22 +04:00
|
|
|
{
|
2021-09-15 18:40:20 +03:00
|
|
|
defaultApplications.term = lib.mkIf (isDesktop) {
|
2021-06-16 05:30:04 +03:00
|
|
|
cmd = "${pkgs.alacritty}/bin/alacritty";
|
|
|
|
desktop = "alacritty";
|
|
|
|
};
|
2020-08-10 01:17:22 +04:00
|
|
|
home-manager.users.alukard = {
|
|
|
|
programs.alacritty = {
|
2021-06-16 05:30:04 +03:00
|
|
|
enable = !(isLaptop || isVM || isISO);
|
2020-08-10 01:17:22 +04:00
|
|
|
settings = {
|
|
|
|
font = {
|
|
|
|
normal = {
|
|
|
|
family = "${thm.powerlineFont}";
|
|
|
|
style = "Regular";
|
|
|
|
};
|
|
|
|
bold = {
|
|
|
|
family = "${thm.powerlineFont}";
|
|
|
|
style = "Bold";
|
|
|
|
};
|
|
|
|
italic = {
|
|
|
|
family = "${thm.powerlineFont}";
|
|
|
|
style = "Italic";
|
|
|
|
};
|
|
|
|
bold_italic = {
|
|
|
|
family = "${thm.powerlineFont}";
|
|
|
|
style = "Bold Italic";
|
|
|
|
};
|
2020-08-15 19:36:16 +04:00
|
|
|
size = lib.toInt thm.smallFontSize;
|
2020-08-10 01:17:22 +04:00
|
|
|
};
|
|
|
|
|
|
|
|
window.padding = {
|
|
|
|
x = 2;
|
|
|
|
y = 2;
|
|
|
|
};
|
|
|
|
|
|
|
|
shell.program = "${pkgs.zsh}/bin/zsh";
|
|
|
|
|
|
|
|
cursor.style = "Beam";
|
|
|
|
|
|
|
|
colors = {
|
|
|
|
primary = {
|
2020-08-15 19:36:16 +04:00
|
|
|
background = "#${thm.base00-hex}";
|
|
|
|
foreground = "#${thm.base05-hex}";
|
2020-08-10 01:17:22 +04:00
|
|
|
};
|
|
|
|
cursor = {
|
2021-09-15 18:39:02 +03:00
|
|
|
text = "#${thm.base02-hex}";
|
|
|
|
cursor = "#${thm.base00-hex}";
|
2020-08-10 01:17:22 +04:00
|
|
|
};
|
|
|
|
normal = {
|
2020-08-15 19:36:16 +04:00
|
|
|
black = "#${thm.base00-hex}";
|
|
|
|
red = "#${thm.base08-hex}";
|
|
|
|
green = "#${thm.base0B-hex}";
|
|
|
|
yellow = "#${thm.base0A-hex}";
|
|
|
|
blue = "#${thm.base0D-hex}";
|
|
|
|
magenta = "#${thm.base0E-hex}";
|
|
|
|
cyan = "#${thm.base0C-hex}";
|
|
|
|
white = "#${thm.base05-hex}";
|
2020-08-10 01:17:22 +04:00
|
|
|
};
|
|
|
|
bright = {
|
2020-08-15 19:36:16 +04:00
|
|
|
black = "#${thm.base03-hex}";
|
|
|
|
red = "#${thm.base09-hex}";
|
|
|
|
green = "#${thm.base01-hex}";
|
|
|
|
yellow = "#${thm.base02-hex}";
|
|
|
|
blue = "#${thm.base04-hex}";
|
|
|
|
magenta = "#${thm.base06-hex}";
|
|
|
|
cyan = "#${thm.base0F-hex}";
|
|
|
|
white = "#${thm.base07-hex}";
|
2020-08-10 01:17:22 +04:00
|
|
|
};
|
|
|
|
draw_bold_text_with_bright_colors = "false";
|
2020-08-15 19:36:16 +04:00
|
|
|
};
|
2020-08-10 01:17:22 +04:00
|
|
|
|
2020-08-15 19:36:16 +04:00
|
|
|
env = {
|
|
|
|
WINIT_X11_SCALE_FACTOR = "1.0";
|
2020-08-10 01:17:22 +04:00
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
}
|