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