From a9314842950b3f60d17cc3365748ca915342ce5d Mon Sep 17 00:00:00 2001 From: Simon Walker Date: Wed, 22 May 2024 09:18:52 +0100 Subject: [PATCH] Use kitty on linux --- home/bspwm.nix | 2 +- home/home.nix | 5 ++++- home/i3.nix | 2 +- system/nixos/astoria/configuration.nix | 1 - 4 files changed, 6 insertions(+), 4 deletions(-) diff --git a/home/bspwm.nix b/home/bspwm.nix index 5b474bf5..be5bb5cb 100644 --- a/home/bspwm.nix +++ b/home/bspwm.nix @@ -123,7 +123,7 @@ in { services.sxhkd = { enable = true; keybindings = { - "${mod} + Return" = "alacritty"; + "${mod} + Return" = config.me.defaults.terminal; "${mod} + c" = browser; "${mod} + @space" = "rofi -show drun"; "${mod} + Escape" = "pkill -USR1 -x sxhkd"; diff --git a/home/home.nix b/home/home.nix index fbfb6355..1264675e 100644 --- a/home/home.nix +++ b/home/home.nix @@ -96,7 +96,10 @@ in { vscode-theme = "Dracula"; defaults = { browser = "firefox"; - terminal = "alacritty"; + terminal = + if isLinux + then "kitty" + else "alacritty"; }; is-dark-theme = true; } diff --git a/home/i3.nix b/home/i3.nix index 03ae31eb..e674c5bf 100644 --- a/home/i3.nix +++ b/home/i3.nix @@ -158,7 +158,7 @@ in { "${mod}+Ctrl+Shift+E" = "exit"; "${mod}+c" = browser-command; - "${mod}+Return" = "exec alacritty"; + "${mod}+Return" = "exec ${config.me.defaults.terminal}"; "${mod}+d" = "exec ${pkgs.rofi}/bin/rofi -show drun"; "${mod}+space" = "exec ${pkgs.rofi}/bin/rofi -show drun"; diff --git a/system/nixos/astoria/configuration.nix b/system/nixos/astoria/configuration.nix index 2a5d769a..4b5c26d2 100644 --- a/system/nixos/astoria/configuration.nix +++ b/system/nixos/astoria/configuration.nix @@ -268,7 +268,6 @@ in { # List packages installed in system profile. To search, run: # $ nix search wget environment.systemPackages = with pkgs; [ - alacritty barrier chromium google-chrome