foot, vintage fonts, scope operator
This commit is contained in:
parent
8d77e96d89
commit
5575604452
46 changed files with 803 additions and 702 deletions
|
@ -1,112 +1,48 @@
|
|||
{
|
||||
pkgs,
|
||||
lib,
|
||||
config,
|
||||
scope,
|
||||
...
|
||||
}:
|
||||
{
|
||||
# hm.programs.kitty =
|
||||
# let
|
||||
# inherit (config) rice;
|
||||
# in
|
||||
# {
|
||||
# enable = true;
|
||||
# font = {
|
||||
# inherit (rice.fonts.monospace) name size;
|
||||
# };
|
||||
# settings = with rice.palette.hex; {
|
||||
# foreground = util.fg;
|
||||
# background = util.bg;
|
||||
# inherit (util) cursor;
|
||||
# cursor_text = util.bg;
|
||||
# selection_foreground = util.fg_sel;
|
||||
# selection_background = util.bg_sel;
|
||||
# color0 = normal.black;
|
||||
# color1 = normal.red;
|
||||
# color2 = normal.green;
|
||||
# color3 = normal.yellow;
|
||||
# color4 = normal.blue;
|
||||
# color5 = normal.magenta;
|
||||
# color6 = normal.cyan;
|
||||
# color7 = normal.white;
|
||||
# color8 = bright.black;
|
||||
# color9 = bright.red;
|
||||
# color10 = bright.green;
|
||||
# color11 = bright.yellow;
|
||||
# color12 = bright.blue;
|
||||
# color13 = bright.magenta;
|
||||
# color14 = bright.cyan;
|
||||
# color15 = bright.white;
|
||||
# sync_to_monitor = "yes";
|
||||
# shell = "fish";
|
||||
# cursor_trail = 100;
|
||||
# };
|
||||
# };
|
||||
scope "programs.foot" {
|
||||
enable = true;
|
||||
enableFishIntegration = true;
|
||||
settings = {
|
||||
main =
|
||||
let
|
||||
font =
|
||||
config.rice.fonts.monospace.name + ":size=" + (builtins.toString config.rice.fonts.monospace.size);
|
||||
in
|
||||
{
|
||||
inherit font;
|
||||
font-bold = font;
|
||||
font-italic = font;
|
||||
};
|
||||
colors =
|
||||
let
|
||||
pal = config.rice.palette.shortHex;
|
||||
in
|
||||
{
|
||||
background = pal.util.bg;
|
||||
foreground = pal.util.fg;
|
||||
regular0 = pal.normal.black;
|
||||
regular1 = pal.normal.red;
|
||||
regular2 = pal.normal.green;
|
||||
regular3 = pal.normal.yellow;
|
||||
regular4 = pal.normal.blue;
|
||||
regular5 = pal.normal.magenta;
|
||||
regular6 = pal.normal.cyan;
|
||||
regular7 = pal.normal.white;
|
||||
bright0 = pal.bright.black;
|
||||
bright1 = pal.bright.red;
|
||||
bright2 = pal.bright.green;
|
||||
bright3 = pal.bright.yellow;
|
||||
bright4 = pal.bright.blue;
|
||||
bright5 = pal.bright.magenta;
|
||||
bright6 = pal.bright.cyan;
|
||||
bright7 = pal.bright.white;
|
||||
|
||||
home.packages = [ pkgs.ghostty ];
|
||||
home.xdg.config.files = {
|
||||
"ghostty/themes/rice" = {
|
||||
generator =
|
||||
(pkgs.formats.keyValue {
|
||||
listsAsDuplicateKeys = true;
|
||||
mkKeyValue = lib.generators.mkKeyValueDefault { } " = ";
|
||||
}).generate
|
||||
"ghostty-theme";
|
||||
value =
|
||||
let
|
||||
inherit (config.rice.palette.shortHex) util;
|
||||
inherit (config.rice.palette.hex) normal bright;
|
||||
in
|
||||
{
|
||||
foreground = util.fg;
|
||||
background = util.bg;
|
||||
cursor-color = util.cursor;
|
||||
palette = [
|
||||
"0=${normal.black}"
|
||||
"1=${normal.red}"
|
||||
"2=${normal.green}"
|
||||
"3=${normal.yellow}"
|
||||
"4=${normal.blue}"
|
||||
"5=${normal.magenta}"
|
||||
"6=${normal.cyan}"
|
||||
"7=${normal.white}"
|
||||
"8=${bright.black}"
|
||||
"9=${bright.red}"
|
||||
"10=${bright.green}"
|
||||
"11=${bright.yellow}"
|
||||
"12=${bright.blue}"
|
||||
"13=${bright.magenta}"
|
||||
"14=${bright.cyan}"
|
||||
"15=${bright.white}"
|
||||
];
|
||||
selection-foreground = util.fg_sel;
|
||||
selection-background = util.bg_sel;
|
||||
};
|
||||
};
|
||||
|
||||
"ghostty/config" = {
|
||||
generator = lib.generators.toKeyValue { };
|
||||
value =
|
||||
let
|
||||
inherit (config) rice;
|
||||
in
|
||||
{
|
||||
theme = "rice";
|
||||
font-size = rice.fonts.monospace.size;
|
||||
font-family = rice.fonts.monospace.name;
|
||||
window-decoration = "server";
|
||||
gtk-titlebar = false;
|
||||
gtk-single-instance = true;
|
||||
linux-cgroup = "always";
|
||||
gtk-wide-tabs = false;
|
||||
};
|
||||
};
|
||||
selection-foreground = pal.util.fg_sel;
|
||||
selection-background = pal.util.bg_sel;
|
||||
};
|
||||
};
|
||||
# hm.programs.ghostty = {
|
||||
# enable = true;
|
||||
# package = null;
|
||||
# installBatSyntax = true;
|
||||
# enableFishIntegration = true;
|
||||
# clearDefaultKeybinds = false;
|
||||
# };
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue