feat: add alacritty
This commit is contained in:
parent
c1c279a0ae
commit
c56561aa35
2 changed files with 46 additions and 1 deletions
home/shell
29
home/shell/alacritty-gruvbox-dark.yml
Normal file
29
home/shell/alacritty-gruvbox-dark.yml
Normal file
|
@ -0,0 +1,29 @@
|
||||||
|
colors:
|
||||||
|
# Default colors
|
||||||
|
primary:
|
||||||
|
# hard contrast: background = '#1d2021'
|
||||||
|
background: '#282828'
|
||||||
|
# soft contrast: background = '#32302f'
|
||||||
|
foreground: '#ebdbb2'
|
||||||
|
|
||||||
|
# Normal colors
|
||||||
|
normal:
|
||||||
|
black: '#282828'
|
||||||
|
red: '#cc241d'
|
||||||
|
green: '#98971a'
|
||||||
|
yellow: '#d79921'
|
||||||
|
blue: '#458588'
|
||||||
|
magenta: '#b16286'
|
||||||
|
cyan: '#689d6a'
|
||||||
|
white: '#a89984'
|
||||||
|
|
||||||
|
# Bright colors
|
||||||
|
bright:
|
||||||
|
black: '#928374'
|
||||||
|
red: '#fb4934'
|
||||||
|
green: '#b8bb26'
|
||||||
|
yellow: '#fabd2f'
|
||||||
|
blue: '#83a598'
|
||||||
|
magenta: '#d3869b'
|
||||||
|
cyan: '#8ec07c'
|
||||||
|
white: '#ebdbb2'
|
|
@ -1,6 +1,22 @@
|
||||||
{ config, pkgs, ... }:
|
{ config, pkgs, lib, ... }:
|
||||||
|
|
||||||
|
with pkgs; with lib;
|
||||||
|
let
|
||||||
|
yamlToJSON = path: runCommand "yaml.json" { nativeBuildInputs = [ pkgs.ruby ]; } ''
|
||||||
|
ruby -rjson -ryaml -e "puts YAML.load(ARGF).to_json" < ${path} > $out
|
||||||
|
'';
|
||||||
|
in
|
||||||
{
|
{
|
||||||
|
# doesn't support font ligatures yet
|
||||||
|
# emoji support needs to be setup
|
||||||
|
# use with tabbed for tab support: tabbed -c alacritty --embed
|
||||||
|
# TODO create PR for adding programs.alacritty.package
|
||||||
|
programs.alacritty = {
|
||||||
|
enable = true;
|
||||||
|
settings = recursiveUpdate {
|
||||||
|
} (trivial.importJSON (yamlToJSON ./alacritty-gruvbox-dark.yml));
|
||||||
|
};
|
||||||
|
|
||||||
programs.kitty = {
|
programs.kitty = {
|
||||||
enable = true;
|
enable = true;
|
||||||
font = {
|
font = {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue