dotfiles/config/nyxt/config.lisp

46 lines
1.9 KiB
Common Lisp
Raw Normal View History

2026-07-30 04:40:03 -04:00
;; Nyxt Configuration
;; Theme - OceanicNext
2026-07-30 02:02:09 -04:00
;; background- = inactive tab bg (auto-derived darker, we override explicitly)
;; background+ = selected tab bg (auto-derived lighter)
2026-07-30 04:40:03 -04:00
(define-configuration browser
((theme (make-instance 'theme:theme
:dark-p t
:background-color "#1B2B34"
2026-07-30 02:02:09 -04:00
:background-color- "#0F1B22" ;; inactive tab bg - visibly darker
:background-color+ "#2B3B44" ;; selected tab bg - slightly lighter
2026-07-30 04:40:03 -04:00
:on-background-color "#CDD3DE"
2026-07-30 02:02:09 -04:00
:primary-color "#343D46"
:on-primary-color "#CDD3DE"
2026-07-30 04:40:03 -04:00
:secondary-color "#4F5B66"
:on-secondary-color "#CDD3DE"
2026-07-30 02:02:09 -04:00
:action-color "#99C794"
:on-action-color "#1B2B34"
:highlight-color "#99C794"
:on-highlight-color "#1B2B34"))
(zoom-ratio-default 1.25)
(restore-session-p nil)))
2026-07-30 04:40:03 -04:00
2026-07-30 02:02:09 -04:00
;; Enable vi keybindings, force HTTPS, and CSS-based dark mode globally
2026-07-30 04:40:03 -04:00
(define-configuration web-buffer
((default-modes (append '(nyxt/mode/vi:vi-normal-mode
nyxt/mode/force-https:force-https-mode)
2026-07-30 02:02:09 -04:00
%slot-value%))))
2026-07-30 04:40:03 -04:00
;; Default search engine
(define-configuration context-buffer
((search-engines (list (make-instance 'search-engine
:shortcut "ddg"
:search-url "https://duckduckgo.com/?q=~a"
:fallback-url (quri:uri "https://duckduckgo.com"))))))
2026-07-30 02:02:09 -04:00
;; 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
2026-07-30 04:40:03 -04:00
(define-command-global mpv-current-url ()
"Open the current page URL in mpv."
2026-07-30 23:04:33 -04:00
(uiop:launch-program (list "flatpak-spawn" "--host" "mpv" (render-url (url (current-buffer))))))