commit aae9e6dda188a336c12bc711f00afd8f2972b31b
parent 65e57924062485cf3ff17aacf5fa6a293a789b48
Author: Vincent Demeester <vincent@sbr.pm>
Date: Mon, 14 Dec 2020 18:43:05 +0100
users/vincent: extract alacritty on its own
Signed-off-by: Vincent Demeester <vincent@sbr.pm>
Diffstat:
2 files changed, 96 insertions(+), 91 deletions(-)
diff --git a/users/vincent/desktop/alacritty.nix b/users/vincent/desktop/alacritty.nix
@@ -0,0 +1,95 @@
+{ config, lib, pkgs, ... }:
+
+{
+ programs.alacritty = {
+ enable = true;
+ settings = {
+ env.TERM = "xterm-256color";
+ font = {
+ normal = {
+ family = "Ubuntu Mono";
+ style = "Regular";
+ };
+ bold = {
+ family = "Ubuntu Mono";
+ style = "Bold";
+ };
+ italic = {
+ family = "Ubuntu Mono";
+ style = "Italic";
+ };
+ size = 11;
+ };
+ colors = {
+ primary = {
+ background = "0x0A0E14";
+ foreground = "0xB3B1AD";
+ };
+ normal = {
+ black = "0x01060E";
+ blue = "0x53BDFA";
+ cyan = "0x90E1C6";
+ green = "0x91B362";
+ magenta = "0xFAE994";
+ red = "0xEA6C73";
+ white = "0xC7C7C7";
+ yellow = "0xF9AF4F";
+ };
+ bright = {
+ black = "0x686868";
+ blue = "0x59C2FF";
+ cyan = "0x95E6CB";
+ green = "0xC2D94C";
+ magenta = "0xFFEE99";
+ red = "0xF07178";
+ white = "0xFFFFFF";
+ yellow = "0xFFB454";
+ };
+ };
+ mouse.url.modifiers = "Control";
+ shell.program = "${pkgs.zsh}/bin/zsh";
+ key_bindings = [
+ {
+ key = "V";
+ mods = "Control|Shift";
+ action = "Paste";
+ }
+ {
+ key = "C";
+ mods = "Control|Shift";
+ action = "Copy";
+ }
+ {
+ key = "Insert";
+ mods = "Shift";
+ action = "PasteSelection";
+ }
+ {
+ key = "Key0";
+ mods = "Control";
+ action = "ResetFontSize";
+ }
+ {
+ key = "Equals";
+ mods = "Control";
+ action = "IncreaseFontSize";
+ }
+ {
+ key = "Plus";
+ mods = "Control";
+ action = "IncreaseFontSize";
+ }
+ {
+ key = "Minus";
+ mods = "Control";
+ action = "DecreaseFontSize";
+ }
+ {
+ key = "Return";
+ mods = "Alt";
+ action = "ToggleFullscreen";
+ }
+ ];
+ };
+ };
+}
diff --git a/users/vincent/desktop/i3.nix b/users/vincent/desktop/i3.nix
@@ -18,6 +18,7 @@ let
in
{
imports = [
+ ./alacritty.nix
./autorandr.nix
./dconf.nix
./xsession.nix
@@ -168,97 +169,6 @@ in
interval = "5h";
};
};
- programs.alacritty = {
- enable = true;
- settings = {
- env.TERM = "xterm-256color";
- font = {
- normal = {
- family = "Ubuntu Mono";
- style = "Regular";
- };
- bold = {
- family = "Ubuntu Mono";
- style = "Bold";
- };
- italic = {
- family = "Ubuntu Mono";
- style = "Italic";
- };
- size = 11;
- };
- colors = {
- primary = {
- background = "0x0A0E14";
- foreground = "0xB3B1AD";
- };
- normal = {
- black = "0x01060E";
- blue = "0x53BDFA";
- cyan = "0x90E1C6";
- green = "0x91B362";
- magenta = "0xFAE994";
- red = "0xEA6C73";
- white = "0xC7C7C7";
- yellow = "0xF9AF4F";
- };
- bright = {
- black = "0x686868";
- blue = "0x59C2FF";
- cyan = "0x95E6CB";
- green = "0xC2D94C";
- magenta = "0xFFEE99";
- red = "0xF07178";
- white = "0xFFFFFF";
- yellow = "0xFFB454";
- };
- };
- mouse.url.modifiers = "Control";
- shell.program = "${pkgs.zsh}/bin/zsh";
- key_bindings = [
- {
- key = "V";
- mods = "Control|Shift";
- action = "Paste";
- }
- {
- key = "C";
- mods = "Control|Shift";
- action = "Copy";
- }
- {
- key = "Insert";
- mods = "Shift";
- action = "PasteSelection";
- }
- {
- key = "Key0";
- mods = "Control";
- action = "ResetFontSize";
- }
- {
- key = "Equals";
- mods = "Control";
- action = "IncreaseFontSize";
- }
- {
- key = "Plus";
- mods = "Control";
- action = "IncreaseFontSize";
- }
- {
- key = "Minus";
- mods = "Control";
- action = "DecreaseFontSize";
- }
- {
- key = "Return";
- mods = "Alt";
- action = "ToggleFullscreen";
- }
- ];
- };
- };
xsession.windowManager.i3 = {
package = pkgs.i3-gaps;
enable = true;