diff --git a/home/linux.nix b/home/linux.nix index ca34029..98c296d 100644 --- a/home/linux.nix +++ b/home/linux.nix @@ -44,7 +44,7 @@ ../modules/zoxide ../modules/direnv ../modules/nvim - ../modules/ghostty + ../modules/ghostty/linux.nix ../modules/fish ../modules/zellij ../modules/mpv diff --git a/modules/ghostty/linux.nix b/modules/ghostty/linux.nix new file mode 100644 index 0000000..42b1265 --- /dev/null +++ b/modules/ghostty/linux.nix @@ -0,0 +1,56 @@ +{ + programs.ghostty = { + enable = true; + enableFishIntegration = true; + settings = { + font-size = 18; + font-family = "VictorMono Nerd Font"; + font-style = "SemiBold"; + background-opacity = 0.945; + window-padding-x = 0; + window-padding-y = 0; + window-padding-balance = true; + window-inherit-working-directory = true; + window-theme = "ghostty"; + shell-integration-features = true; + scrollback-limit = 100000; + link-url = true; + link-previews = true; + title = " "; + background = "#0f0b15"; + foreground = "#ffffff"; + cursor-color = "#d369af"; + selection-foreground = "#af85ea"; + selection-background = "#572454"; + palette = [ + "0=#0f0b15" + "1=#f47359" + "2=#29a444" + "3=#b58a52" + "4=#3f95f6" + "5=#d369af" + "6=#4fbaef" + "7=#b8c6d5" + "8=#807c9f" + "9=#ff6a7a" + "10=#00a392" + "11=#df9080" + "12=#029fff" + "13=#af85ea" + "14=#35afbf" + "15=#ffffff" + ]; + keybind = [ + "ctrl+plus=increase_font_size:2" + "ctrl+minus=decrease_font_size:2" + "ctrl+0=reset_font_size" + "ctrl+shift+a=select_all" + "ctrl+shift+c=copy_to_clipboard" + "ctrl+shift+v=paste_from_clipboard" + "cmd+c=copy_to_clipboard" + "cmd+v=paste_from_clipboard" + "global:cmd+semicolon=toggle_quick_terminal" + ]; + }; + }; +} diff --git a/modules/wm/niri/config/config.kdl b/modules/wm/niri/config/config.kdl index ec17c7e..42e9ad0 100644 --- a/modules/wm/niri/config/config.kdl +++ b/modules/wm/niri/config/config.kdl @@ -304,7 +304,7 @@ binds { // Suggested binds for running programs: terminal, app launcher, screen locker. Mod+T hotkey-overlay-title="Open a terminal" { spawn "ghostty"; } Mod+Space hotkey-overlay-title="Launcher" { spawn "fuzzel"; } - Mod+B hotkey-overlay-title="Browser" { spawn "firefox"; } + Mod+B hotkey-overlay-title="Browser" { spawn "zen-beta"; } Mod+M hotkey-overlay-title="System Monitor" { spawn-sh "ghostty -e btop"; } Mod+N hotkey-overlay-title="File Manager" { spawn "nautilus"; } Mod+V hotkey-overlay-title="Clipboard" { spawn-sh "~/.config/fuzzel/bin/fuzzel-cliphist.sh"; }