From 3591f5d5b3fbc3e07c0393aeadf1216f0f1de97a Mon Sep 17 00:00:00 2001 From: Nico Date: Sat, 3 May 2025 16:16:00 +1000 Subject: [PATCH] ghostty: init --- modules/applications.nix | 2 ++ modules/darwin/applications.nix | 2 +- modules/linux/hyprland.nix | 3 ++- stow/.config/ghostty/config | 7 +++++++ stow/.config/hypr/hyprland.conf | 4 ++-- 5 files changed, 14 insertions(+), 4 deletions(-) create mode 100644 stow/.config/ghostty/config diff --git a/modules/applications.nix b/modules/applications.nix index dbbd15b..ba35c40 100644 --- a/modules/applications.nix +++ b/modules/applications.nix @@ -2,6 +2,8 @@ { environment.systemPackages = with pkgs; [ + ghostty + gimp audacity obsidian diff --git a/modules/darwin/applications.nix b/modules/darwin/applications.nix index 3455944..3984154 100644 --- a/modules/darwin/applications.nix +++ b/modules/darwin/applications.nix @@ -11,7 +11,7 @@ system.defaults.dock.tilesize = 48; system.defaults.dock.persistent-apps = [ "${pkgs.firefox}/Applications/Firefox.app" - "${pkgs.kitty}/Applications/Kitty.app" + "${pkgs.ghostty}/Applications/Ghostty.app" "/System/Applications/Finder.app" ]; diff --git a/modules/linux/hyprland.nix b/modules/linux/hyprland.nix index 67c9ba3..0390616 100644 --- a/modules/linux/hyprland.nix +++ b/modules/linux/hyprland.nix @@ -13,7 +13,8 @@ programs.hyprlock.enable = true; environment.systemPackages = with pkgs; [ - kitty + ghostty + waybar swww grim diff --git a/stow/.config/ghostty/config b/stow/.config/ghostty/config new file mode 100644 index 0000000..59897ac --- /dev/null +++ b/stow/.config/ghostty/config @@ -0,0 +1,7 @@ +theme = tokyonight +background-opacity = 0.9 + +window-decoration = true + +font-family = "JetBrainsMono Nerd Font" +font-size = 18 diff --git a/stow/.config/hypr/hyprland.conf b/stow/.config/hypr/hyprland.conf index ec8f05d..45d5ff6 100755 --- a/stow/.config/hypr/hyprland.conf +++ b/stow/.config/hypr/hyprland.conf @@ -112,7 +112,7 @@ misc { disable_hyprland_logo = true # makes swww startup more seemless enable_swallow = true - swallow_regex = ^(kitty)$ + swallow_regex = ^(com.mitchellh.ghostty)$ } @@ -158,7 +158,7 @@ device { $mainMod = SUPER # Sets "Windows" key as main modifier # Example binds, see https://wiki.hyprland.org/Configuring/Binds/ for more -bind = $mainMod, Q, exec, kitty +bind = $mainMod, Q, exec, ghostty bind = $mainMod, B, exec, firefox bind = $mainMod, D, exec, ulauncher-toggle bind = $mainMod, S, exec, hyprshot -z --clipboard-only -m region