switch to ghostty

This commit is contained in:
Yan Lin 2025-10-21 21:18:05 +02:00
parent 5826ee52fc
commit 77f1bfacc6
4 changed files with 15 additions and 20 deletions

View file

@ -62,10 +62,6 @@
fastfetch fastfetch
coreutils # GNU core utilities (base64, etc.) coreutils # GNU core utilities (base64, etc.)
# Clipboard utilities for tmux integration
wl-clipboard # Wayland clipboard (wl-copy/wl-paste)
xclip # X11 clipboard fallback
# Development and build tools # Development and build tools
python312 python312
uv uv

View file

@ -11,6 +11,7 @@
../../../modules/tex.nix ../../../modules/tex.nix
../../../modules/gnome.nix ../../../modules/gnome.nix
../../../modules/firefox.nix ../../../modules/firefox.nix
../../../modules/ghostty.nix
]; ];
# Enable GNOME configuration # Enable GNOME configuration
@ -18,6 +19,14 @@
enable = true; enable = true;
}; };
# Enable Ghostty terminal with OSC-52 clipboard support
programs.ghostty-custom = {
enable = true;
package = pkgs.ghostty;
fontSize = 12;
windowMode = "maximized";
};
# Enable Firefox browser # Enable Firefox browser
programs.firefox-custom = { programs.firefox-custom = {
enable = true; enable = true;

View file

@ -53,7 +53,7 @@ in
"org.gnome.Nautilus.desktop" "org.gnome.Nautilus.desktop"
"firefox.desktop" "firefox.desktop"
"obsidian.desktop" "obsidian.desktop"
"org.gnome.Console.desktop" "com.mitchellh.ghostty.desktop"
"org.keepassxc.KeePassXC.desktop" "org.keepassxc.KeePassXC.desktop"
]; ];
}; };
@ -66,14 +66,6 @@ in
mouse-sensitive-fullscreen-window = false; mouse-sensitive-fullscreen-window = false;
}; };
# GNOME Console configuration
"org/gnome/Console" = {
audible-bell = false;
custom-font = "JetBrainsMono Nerd Font Mono 12";
use-system-font = false;
};
# Nautilus (GNOME Files) configuration # Nautilus (GNOME Files) configuration
"org/gnome/nautilus/preferences" = { "org/gnome/nautilus/preferences" = {
show-hidden-files = true; show-hidden-files = true;

View file

@ -14,6 +14,9 @@
set -g default-terminal "screen-256color" set -g default-terminal "screen-256color"
set -ga terminal-overrides ",xterm-256color:Tc" set -ga terminal-overrides ",xterm-256color:Tc"
# Enable OSC-52 clipboard integration (works with Ghostty)
set -g set-clipboard on
# Gruvbox Dark Theme (Truecolor) # Gruvbox Dark Theme (Truecolor)
# Status bar colors # Status bar colors
set -g status-style 'bg=#282828,fg=#ebdbb2' set -g status-style 'bg=#282828,fg=#ebdbb2'
@ -73,14 +76,9 @@
# Reload config file # Reload config file
bind r source-file ~/.config/tmux/tmux.conf \; display-message "Config reloaded!" bind r source-file ~/.config/tmux/tmux.conf \; display-message "Config reloaded!"
# Better copy mode # Better copy mode with OSC-52 clipboard
bind-key -T copy-mode-vi v send-keys -X begin-selection bind-key -T copy-mode-vi v send-keys -X begin-selection
# Platform-aware clipboard: pbcopy (macOS) | wl-copy (Wayland) | xclip (X11) bind-key -T copy-mode-vi y send-keys -X copy-pipe-and-cancel
bind-key -T copy-mode-vi y if-shell 'command -v pbcopy' \
'send-keys -X copy-pipe-and-cancel "pbcopy"' \
'if-shell "test -n \"$WAYLAND_DISPLAY\"" \
"send-keys -X copy-pipe-and-cancel \"wl-copy --foreground\"" \
"send-keys -X copy-pipe-and-cancel \"xclip -selection clipboard\""'
bind-key -T copy-mode-vi r send-keys -X rectangle-toggle bind-key -T copy-mode-vi r send-keys -X rectangle-toggle
# New window with current path # New window with current path