Nyxt tweaks

This commit is contained in:
Ian Keane 2026-07-30 02:02:09 -04:00
parent 4f0c727797
commit d79c5fc309
3 changed files with 22 additions and 18 deletions

View file

@ -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

View file

@ -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)))))))))))))

View file

@ -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"