mirror of
https://github.com/kmein/niveum
synced 2026-03-18 19:11:08 +01:00
feat(alacritty): add flipped variant
This commit is contained in:
@@ -1,17 +1,8 @@
|
|||||||
{ pkgs, lib, config, ... }:
|
{ pkgs, lib, config, ... }:
|
||||||
{
|
let
|
||||||
environment.variables.TERMINAL = "alacritty";
|
colourNames = [ "black" "red" "green" "yellow" "blue" "magenta" "cyan" "white" ];
|
||||||
|
colours = lib.getAttrs colourNames config.niveum.colours;
|
||||||
environment.systemPackages = with pkgs; [
|
alacrittyConfig = {
|
||||||
alacritty
|
|
||||||
alacritty.terminfo
|
|
||||||
];
|
|
||||||
|
|
||||||
home-manager.users.me.xdg.configFile."alacritty/alacritty.yml".text =
|
|
||||||
let
|
|
||||||
colourNames = [ "black" "red" "green" "yellow" "blue" "magenta" "cyan" "white" ];
|
|
||||||
colours = lib.getAttrs colourNames config.niveum.colours;
|
|
||||||
in builtins.toJSON {
|
|
||||||
background_opacity = 0.9;
|
background_opacity = 0.9;
|
||||||
colors = {
|
colors = {
|
||||||
primary = {
|
primary = {
|
||||||
@@ -27,6 +18,28 @@
|
|||||||
key_bindings = [
|
key_bindings = [
|
||||||
{ key = "Add"; mods = "Control"; action = "IncreaseFontSize"; }
|
{ key = "Add"; mods = "Control"; action = "IncreaseFontSize"; }
|
||||||
{ key = "Minus"; mods = "Control"; action = "DecreaseFontSize"; }
|
{ key = "Minus"; mods = "Control"; action = "DecreaseFontSize"; }
|
||||||
|
{ key = "Key0"; mods = "Control"; action = "ResetFontSize"; }
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
|
flippedAlacrittyConfig = alacrittyConfig // {
|
||||||
|
colors.primary = {
|
||||||
|
background = config.niveum.colours.foreground;
|
||||||
|
foreground = config.niveum.colours.background;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
in
|
||||||
|
{
|
||||||
|
environment.variables.TERMINAL = "alacritty";
|
||||||
|
|
||||||
|
environment.systemPackages = with pkgs; [
|
||||||
|
alacritty
|
||||||
|
alacritty.terminfo
|
||||||
|
(pkgs.writers.writeDashBin "alacritty-flipped" ''
|
||||||
|
${pkgs.alacritty}/bin/alacritty --config-file ${pkgs.writeText "alacritty.yml" (builtins.toJSON flippedAlacrittyConfig)} $@
|
||||||
|
'')
|
||||||
|
];
|
||||||
|
|
||||||
|
home-manager.users.me.xdg.configFile = {
|
||||||
|
"alacritty/alacritty.yml".text = builtins.toJSON alacrittyConfig;
|
||||||
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user