mirror of
https://github.com/moons-14/dotfiles.git
synced 2026-10-06 08:48:11 +09:00
ghostty
This commit is contained in:
Generated
+5
-5
@@ -364,15 +364,15 @@
|
|||||||
"zon2nix": "zon2nix"
|
"zon2nix": "zon2nix"
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1783284634,
|
"lastModified": 1783580960,
|
||||||
"narHash": "sha256-COKtJ+SAIHYsMIheVWCn2e4IrBncdivwxcZLAf7IlNI=",
|
"narHash": "sha256-41eBs4g66qLFEa6esgaCAs1hp1et5551Tqs/jriyI3c=",
|
||||||
"owner": "ghostty-org",
|
"owner": "moons-14",
|
||||||
"repo": "ghostty",
|
"repo": "ghostty",
|
||||||
"rev": "b213a72c03b427607b43c89ff4223a7baa079fe8",
|
"rev": "6260e9da0baba6c94c3e8f537558bc69085229b9",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
"owner": "ghostty-org",
|
"owner": "moons-14",
|
||||||
"repo": "ghostty",
|
"repo": "ghostty",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -24,7 +24,9 @@
|
|||||||
};
|
};
|
||||||
|
|
||||||
# Terminal
|
# Terminal
|
||||||
ghostty.url = "github:ghostty-org/ghostty";
|
ghostty = {
|
||||||
|
url = "github:moons-14/ghostty";
|
||||||
|
};
|
||||||
|
|
||||||
# Shell / Launcher
|
# Shell / Launcher
|
||||||
vicinae.url = "github:vicinaehq/vicinae";
|
vicinae.url = "github:vicinaehq/vicinae";
|
||||||
|
|||||||
@@ -1,10 +1,16 @@
|
|||||||
{
|
{
|
||||||
|
pkgs,
|
||||||
lib,
|
lib,
|
||||||
config,
|
config,
|
||||||
|
inputs,
|
||||||
...
|
...
|
||||||
}:
|
}:
|
||||||
let
|
let
|
||||||
cfg = config.my.applications.ghostty.homeManager;
|
cfg = config.my.applications.ghostty.homeManager;
|
||||||
|
|
||||||
|
system = pkgs.stdenv.hostPlatform.system;
|
||||||
|
|
||||||
|
ghosttyPkg = inputs.ghostty.packages.${system}.ghostty-releasefast;
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
options.my.applications.ghostty.homeManager = {
|
options.my.applications.ghostty.homeManager = {
|
||||||
@@ -19,6 +25,8 @@ in
|
|||||||
programs.ghostty = {
|
programs.ghostty = {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
|
||||||
|
package = ghosttyPkg;
|
||||||
|
|
||||||
systemd.enable = true;
|
systemd.enable = true;
|
||||||
|
|
||||||
settings = {
|
settings = {
|
||||||
@@ -51,20 +59,14 @@ in
|
|||||||
# Font size
|
# Font size
|
||||||
"ctrl+shift+semicolon=increase_font_size:1"
|
"ctrl+shift+semicolon=increase_font_size:1"
|
||||||
"ctrl+shift+minus=decrease_font_size:1"
|
"ctrl+shift+minus=decrease_font_size:1"
|
||||||
|
|
||||||
# Quick terminal
|
|
||||||
"global:super+space=toggle_quick_terminal"
|
|
||||||
];
|
];
|
||||||
|
|
||||||
# Quick terminal
|
# Quick terminal
|
||||||
quick-terminal-position = "top";
|
quick-terminal-position = "top";
|
||||||
|
|
||||||
quick-terminal-size = "100%";
|
quick-terminal-size = "100%";
|
||||||
|
|
||||||
gtk-quick-terminal-layer = "overlay";
|
gtk-quick-terminal-layer = "overlay";
|
||||||
|
|
||||||
quick-terminal-keyboard-interactivity = "exclusive";
|
quick-terminal-keyboard-interactivity = "exclusive";
|
||||||
|
|
||||||
quick-terminal-autohide = false;
|
quick-terminal-autohide = false;
|
||||||
|
|
||||||
quit-after-last-window-closed = false;
|
quit-after-last-window-closed = false;
|
||||||
|
|||||||
@@ -2,10 +2,15 @@
|
|||||||
pkgs,
|
pkgs,
|
||||||
lib,
|
lib,
|
||||||
config,
|
config,
|
||||||
|
inputs,
|
||||||
...
|
...
|
||||||
}:
|
}:
|
||||||
let
|
let
|
||||||
cfg = config.my.applications.ghostty.system;
|
cfg = config.my.applications.ghostty.system;
|
||||||
|
|
||||||
|
system = pkgs.stdenv.hostPlatform.system;
|
||||||
|
|
||||||
|
ghosttyPkg = inputs.ghostty.packages.${system}.ghostty-releasefast;
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
options.my.applications.ghostty.system = {
|
options.my.applications.ghostty.system = {
|
||||||
@@ -13,9 +18,9 @@ in
|
|||||||
};
|
};
|
||||||
|
|
||||||
config = lib.mkIf cfg.enable {
|
config = lib.mkIf cfg.enable {
|
||||||
environment.systemPackages = with pkgs; [
|
environment.systemPackages = [
|
||||||
ghostty # A fast and minimal terminal emulator for Wayland
|
ghosttyPkg # A fast and minimal terminal emulator for Wayland
|
||||||
ghostty.terminfo # Terminfo database for ghostty
|
ghosttyPkg.terminfo # Terminfo database for ghostty
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -137,6 +137,13 @@ in
|
|||||||
];
|
];
|
||||||
hotkey-overlay.title = "Clipboard History";
|
hotkey-overlay.title = "Clipboard History";
|
||||||
};
|
};
|
||||||
|
"Mod+Space" = {
|
||||||
|
action.spawn = [
|
||||||
|
"ghostty"
|
||||||
|
"+toggle-quick-terminal"
|
||||||
|
];
|
||||||
|
hotkey-overlay.title = "Toggle Quick Terminal: ghostty";
|
||||||
|
};
|
||||||
|
|
||||||
# Focus monitor
|
# Focus monitor
|
||||||
"Mod+Shift+Left" = {
|
"Mod+Shift+Left" = {
|
||||||
|
|||||||
Reference in New Issue
Block a user