From d79c5fc309d314ae7e5bedd231627a2438e5ae86 Mon Sep 17 00:00:00 2001 From: Ian Keane Date: Thu, 30 Jul 2026 02:02:09 -0400 Subject: [PATCH] Nyxt tweaks --- config/fish/fish_variables | 2 +- config/nyxt/config.lisp | 36 ++++++++++++++++++++---------------- link.sh | 2 +- 3 files changed, 22 insertions(+), 18 deletions(-) diff --git a/config/fish/fish_variables b/config/fish/fish_variables index 937a7fe..cab071c 100644 --- a/config/fish/fish_variables +++ b/config/fish/fish_variables @@ -1,4 +1,4 @@ # This file contains fish universal variable definitions. # VERSION: 3.0 SETUVAR __fish_initialized:4300 -SETUVAR fish_user_paths:/home/green/\x2elocal/bin\x1e/home/green/\x2elocal/share/npm/bin +SETUVAR fish_user_paths:/home/green/\x2ecargo/bin\x1e/home/green/\x2elocal/bin\x1e/home/green/\x2elocal/share/npm/bin diff --git a/config/nyxt/config.lisp b/config/nyxt/config.lisp index 0194ab6..7c91fc5 100644 --- a/config/nyxt/config.lisp +++ b/config/nyxt/config.lisp @@ -1,25 +1,31 @@ ;; Nyxt Configuration ;; Theme - OceanicNext +;; background- = inactive tab bg (auto-derived darker, we override explicitly) +;; background+ = selected tab bg (auto-derived lighter) (define-configuration browser ((theme (make-instance 'theme:theme :dark-p t :background-color "#1B2B34" + :background-color- "#0F1B22" ;; inactive tab bg - visibly darker + :background-color+ "#2B3B44" ;; selected tab bg - slightly lighter :on-background-color "#CDD3DE" - :primary-color "#6699CC" - :on-primary-color "#1B2B34" + :primary-color "#343D46" + :on-primary-color "#CDD3DE" :secondary-color "#4F5B66" :on-secondary-color "#CDD3DE" - :accent-color "#99C794" - :on-accent-color "#1B2B34")))) + :action-color "#99C794" + :on-action-color "#1B2B34" + :highlight-color "#99C794" + :on-highlight-color "#1B2B34")) + (zoom-ratio-default 1.25) + (restore-session-p nil))) -;; Enable vi keybindings and dark mode globally +;; Enable vi keybindings, force HTTPS, and CSS-based dark mode globally (define-configuration web-buffer ((default-modes (append '(nyxt/mode/vi:vi-normal-mode nyxt/mode/force-https:force-https-mode) - %slot-value%)) - ;; Request dark mode from sites that support it - (prefers-color-scheme :dark))) + %slot-value%)))) ;; Default search engine (define-configuration context-buffer @@ -28,14 +34,12 @@ :search-url "https://duckduckgo.com/?q=~a" :fallback-url (quri:uri "https://duckduckgo.com")))))) -;; Send video URLs to mpv +;; Fix #selection text color - td specificity overrides it, so we target directly +(define-configuration prompt-buffer + ((style (str:concat %slot-value% + "#selection td { color: #1B2B34 !important; }")))) + +;; Send current page URL to mpv (define-command-global mpv-current-url () "Open the current page URL in mpv." (uiop:launch-program (list "mpv" (render-url (url (current-buffer)))))) - -(define-configuration web-buffer - ((context-menu-commands (append %slot-value% - (list (make-instance 'command :name "Open in mpv" - :fn (lambda () - (uiop:launch-program - (list "mpv" (render-url (url (current-buffer))))))))))))) diff --git a/link.sh b/link.sh index 83026fc..7fd2dd8 100755 --- a/link.sh +++ b/link.sh @@ -31,7 +31,7 @@ backup_and_link "$DOTFILES/config/fish" "$HOME/.config/fish" backup_and_link "$DOTFILES/config/tmux" "$HOME/.config/tmux" backup_and_link "$DOTFILES/config/senpai" "$HOME/.config/senpai" backup_and_link "$DOTFILES/config/kanata" "$HOME/.config/kanata" -backup_and_link "$DOTFILES/config/nyxt" "$HOME/.var/app/engineer.atlas.Nyxt/config/nyxt" +backup_and_link "$DOTFILES/config/nyxt" "$HOME/.config/nyxt" # Zed: link individual files to preserve extra live data (themes, backups, etc.) mkdir -p "$HOME/.config/zed"