change default terminal emulator to ghostty
This commit is contained in:
parent
154e8a388f
commit
26ffcc4053
@ -7,7 +7,8 @@
|
||||
{
|
||||
imports = [
|
||||
./no-gui.nix
|
||||
./progs/alacritty.nix
|
||||
# ./progs/alacritty.nix
|
||||
./progs/ghostty.nix
|
||||
./progs/emacs.nix
|
||||
# ./progs/gpt4all/gpt4all.nix
|
||||
# ./progs/trezor.nix # - broken
|
||||
@ -162,7 +163,6 @@
|
||||
};
|
||||
|
||||
home.sessionVariables = {
|
||||
TERMINAL = "alacritty";
|
||||
BROWSER = "zen";
|
||||
LD_LIBRARY_PATH = "${pkgs.lib.makeLibraryPath [
|
||||
pkgs.stdenv.cc.cc
|
||||
|
||||
@ -1,5 +1,9 @@
|
||||
{ pkgs, ... }:
|
||||
{
|
||||
home.sessionVariables = {
|
||||
TERMINAL = "alacritty";
|
||||
};
|
||||
|
||||
programs.alacritty = {
|
||||
enable = true;
|
||||
package = pkgs.alacritty;
|
||||
|
||||
16
home-manager/progs/ghostty.nix
Normal file
16
home-manager/progs/ghostty.nix
Normal 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";
|
||||
};
|
||||
}
|
||||
@ -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";
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user