dots-of-war/files/nix-stuff/nixpkgs/config/alacritty.nix

49 lines
988 B
Nix
Raw Normal View History

2020-07-03 22:47:14 +00:00
{ pkgs, myConf, ... }:
2020-07-02 13:40:06 +00:00
{
enable = true;
2020-07-03 22:47:14 +00:00
package = (
pkgs.writeScriptBin "alacritty" ''
#!/bin/sh
exec nixGLIntel ${pkgs.alacritty}/bin/alacritty "$@"
''
);
2020-07-02 13:40:06 +00:00
settings = {
window = {
padding.x = 20;
padding.y = 20;
dynamic_padding = true;
2020-08-09 11:42:22 +00:00
dynamic_title = true;
2020-07-02 13:40:06 +00:00
};
cursor = {
style = "Block";
unfocused_hollow = true;
};
2020-07-03 22:47:14 +00:00
shell = "/home/leon/.nix-profile/bin/zsh";
2020-07-04 17:05:32 +00:00
#shell = "/usr/bin/fish";
2020-07-02 13:40:06 +00:00
mouse = {
double_click.threshold = 300;
triple_click.threshold = 300;
hide_when_typing = true;
url.launcher.program = "xdg-open";
};
2020-08-09 11:42:22 +00:00
key_bindings = [
{
key = "N";
mods = "Control|Shift";
action = "SpawnNewInstance";
}
];
2020-07-02 13:40:06 +00:00
background_opacity = 1;
2020-07-03 22:47:14 +00:00
font = {
2020-07-02 13:40:06 +00:00
size = 12;
2020-07-03 22:47:14 +00:00
#normal.family = "Iosevka";
2020-07-02 13:40:06 +00:00
normal.family = "Terminus (TTF)";
offset.x = 0;
2020-07-07 09:11:11 +00:00
offset.y = -2;
2020-07-02 13:40:06 +00:00
};
2020-07-03 22:47:14 +00:00
colors = myConf.colors;
2020-07-02 13:40:06 +00:00
};
}