From 0ea8a43135be5b907ef02f20be2ebba6550a4d4c Mon Sep 17 00:00:00 2001 From: "Casper V. Kristensen" Date: Wed, 23 Aug 2023 21:18:40 +0200 Subject: [PATCH] alacritty --- modules/desktop/alacritty.nix | 14 ++++++++++++++ modules/desktop/default.nix | 1 + modules/desktop/sway.nix | 1 - 3 files changed, 15 insertions(+), 1 deletion(-) create mode 100644 modules/desktop/alacritty.nix diff --git a/modules/desktop/alacritty.nix b/modules/desktop/alacritty.nix new file mode 100644 index 0000000..bc906ae --- /dev/null +++ b/modules/desktop/alacritty.nix @@ -0,0 +1,14 @@ +{ home-manager, ... }: { + # https://wiki.archlinux.org/title/Alacritty + + home-manager.users.caspervk = { + programs.alacritty = { + enable = true; + settings = { + key_bindings = [ + { key = "Return"; mods = "Control|Shift"; action = "SpawnNewInstance"; } + ]; + }; + }; + }; +} diff --git a/modules/desktop/default.nix b/modules/desktop/default.nix index 005186a..f0c8678 100644 --- a/modules/desktop/default.nix +++ b/modules/desktop/default.nix @@ -1,5 +1,6 @@ { pkgs, ... }: { imports = [ + ./alacritty.nix ./network.nix ./ssh.nix ./sway.nix diff --git a/modules/desktop/sway.nix b/modules/desktop/sway.nix index 198a151..d39f705 100644 --- a/modules/desktop/sway.nix +++ b/modules/desktop/sway.nix @@ -284,7 +284,6 @@ security.rtkit.enable = true; environment.systemPackages = with pkgs; [ - alacritty # terminal brightnessctl clipman # TODO gnome3.adwaita-icon-theme # cursor TODO