add ghostty config
This commit is contained in:
parent
67526406f3
commit
105485397f
4 changed files with 30 additions and 19 deletions
|
|
@ -45,7 +45,7 @@
|
||||||
tt-terminal,
|
tt-terminal,
|
||||||
}@inputs:
|
}@inputs:
|
||||||
let
|
let
|
||||||
scheme = "gruvbox-dark";
|
scheme = "catppuccin-mocha";
|
||||||
schemePath = inputs.nixpkgs.lib.strings.concatStrings [
|
schemePath = inputs.nixpkgs.lib.strings.concatStrings [
|
||||||
"${inputs.tt-schemes}/base16/"
|
"${inputs.tt-schemes}/base16/"
|
||||||
"${scheme}"
|
"${scheme}"
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,6 @@
|
||||||
{
|
{
|
||||||
imports = [
|
imports = [
|
||||||
./maid.nix
|
./maid.nix
|
||||||
|
./ghostty.nix
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -4,8 +4,16 @@
|
||||||
inputs,
|
inputs,
|
||||||
...
|
...
|
||||||
}:
|
}:
|
||||||
|
let
|
||||||
|
ghosttyTheme = config.scheme {
|
||||||
|
templateRepo = inputs.tt-terminal;
|
||||||
|
target = "ghostty-base24";
|
||||||
|
check-parsed-config-yaml = false;
|
||||||
|
};
|
||||||
|
in
|
||||||
{
|
{
|
||||||
file.xdg_config.ghostty = {
|
users.users.lucy.maid.file = {
|
||||||
|
xdg_config.ghostty = {
|
||||||
text = ''
|
text = ''
|
||||||
quit-after-last-window-closed = false
|
quit-after-last-window-closed = false
|
||||||
theme = "tinted-theming"
|
theme = "tinted-theming"
|
||||||
|
|
@ -18,8 +26,9 @@
|
||||||
'';
|
'';
|
||||||
target = "ghostty/config.ghostty";
|
target = "ghostty/config.ghostty";
|
||||||
};
|
};
|
||||||
# file.xdg_config.ghostty_theme = {
|
xdg_config.ghostty_theme = {
|
||||||
# text = "${builtins.readFile (config.scheme "${inputs.tt-terminal}/themes/ghostty/")}";
|
text = builtins.readFile ghosttyTheme;
|
||||||
# target = "ghostty/themes/tinted-theming";
|
target = "ghostty/themes/tinted-theming";
|
||||||
# };
|
};
|
||||||
|
};
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -8,7 +8,7 @@
|
||||||
{
|
{
|
||||||
users.users.lucy.maid = { config, ... }: {
|
users.users.lucy.maid = { config, ... }: {
|
||||||
imports = [
|
imports = [
|
||||||
./ghostty.nix
|
|
||||||
];
|
];
|
||||||
gsettings.settings = {
|
gsettings.settings = {
|
||||||
org.gnome.desktop.interface = {
|
org.gnome.desktop.interface = {
|
||||||
|
|
@ -28,8 +28,9 @@
|
||||||
];
|
];
|
||||||
requires = [ "dbus.socket" ];
|
requires = [ "dbus.socket" ];
|
||||||
wantedBy = [ config.maid.systemdGraphicalTarget ];
|
wantedBy = [ config.maid.systemdGraphicalTarget ];
|
||||||
|
reloadIfChanged = true;
|
||||||
serviceConfig = {
|
serviceConfig = {
|
||||||
Type = "notify"; # reload waits for ghostty to sd_notify READY=1
|
Type = "notify";
|
||||||
ExecReload = "${pkgs.coreutils}/bin/kill -USR2 $MAINPID";
|
ExecReload = "${pkgs.coreutils}/bin/kill -USR2 $MAINPID";
|
||||||
BusName = "com.mitchellh.ghostty";
|
BusName = "com.mitchellh.ghostty";
|
||||||
ExecStart = "${pkgs.ghostty}/bin/ghostty --gtk-single-instance=true --initial-window=false";
|
ExecStart = "${pkgs.ghostty}/bin/ghostty --gtk-single-instance=true --initial-window=false";
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue