41 lines
1.7 KiB
Common Lisp
41 lines
1.7 KiB
Common Lisp
;; Nyxt Configuration
|
|
|
|
;; Theme - OceanicNext
|
|
(define-configuration browser
|
|
((theme (make-instance 'theme:theme
|
|
:dark-p t
|
|
:background-color "#1B2B34"
|
|
:on-background-color "#CDD3DE"
|
|
:primary-color "#6699CC"
|
|
:on-primary-color "#1B2B34"
|
|
:secondary-color "#4F5B66"
|
|
:on-secondary-color "#CDD3DE"
|
|
:accent-color "#99C794"
|
|
:on-accent-color "#1B2B34"))))
|
|
|
|
;; Enable vi keybindings and 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)))
|
|
|
|
;; 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"))))))
|
|
|
|
;; Send video URLs 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)))))))))))))
|