change default terminal emulator to ghostty

This commit is contained in:
2025-06-18 22:55:31 -07:00
parent 154e8a388f
commit 26ffcc4053
4 changed files with 23 additions and 3 deletions

View File

@@ -1,5 +1,9 @@
{ pkgs, ... }:
{
home.sessionVariables = {
TERMINAL = "alacritty";
};
programs.alacritty = {
enable = true;
package = pkgs.alacritty;

View File

@@ -0,0 +1,16 @@
{ pkgs, ... }:
{
# https://mynixos.com/home-manager/option/programs.ghostty
programs.ghostty = {
enable = true;
enableFishIntegration = true;
settings = {
theme = "Adventure";
background-opacity = 0.7;
};
};
home.sessionVariables = {
TERMINAL = "ghostty";
};
}

View File

@@ -133,7 +133,7 @@
"Mod+O".action = toggle-overview;
# open a terminal
"Mod+T".action = spawn "${pkgs.alacritty}/bin/alacritty";
"Mod+T".action = spawn config.home.sessionVariables.TERMINAL;
# lock the screen
"Mod+X".action = spawn "${pkgs.swaylock}/bin/swaylock";