78 lines
3 KiB
Common Lisp
78 lines
3 KiB
Common Lisp
(define-configuration buffer
|
|
((default-modes (pushnew 'nyxt/mode/blocker:blocker-mode %slot-value%))
|
|
(default-modes (pushnew 'nyxt/mode/no-script:no-script-mode %slot-value%))
|
|
(default-modes (pushnew 'nyxt/mode/emacs:emacs-mode %slot-value%))))
|
|
|
|
(define-configuration status-buffer
|
|
((glyph-mode-presentation-p t)
|
|
(display-tabs-by-last-access-p t)))
|
|
|
|
(define-configuration context-buffer
|
|
((search-engines (list
|
|
(make-instance 'search-engine
|
|
:name "Wikipedia"
|
|
:shortcut "wiki"
|
|
:search-url "https://en.wikipedia.org/w/index.php?search=~a"
|
|
:fallback-url (quri.uri:uri "https://en.wikipedia.org/"))
|
|
(make-instance 'search-engine :name "MyNixOS"
|
|
:shortcut "mn"
|
|
:search-url "https://mynixos.com/search?q=~a"
|
|
:fallback-url (quri.uri:uri "https://mynixos.com/"))
|
|
(make-instance 'search-engine
|
|
:name "DuckDuckGo"
|
|
:shortcut "ddg"
|
|
:search-url "https://html.duckduckgo.com/html/?q=~a"
|
|
:fallback-url (quri.uri:uri "https://html.duckduckgo.com/html/"))
|
|
(make-instance 'search-engine
|
|
:name "Atlas SearXNG instance"
|
|
:shortcut "a"
|
|
:search-url
|
|
"https://search.atlas.engineer/searxng/search?q=~a"
|
|
:fallback-url (quri.uri:uri "https://search.atlas.engineer"))))))
|
|
|
|
(define-configuration browser
|
|
((restore-session-on-startup-p nil)
|
|
(theme (make-instance
|
|
'theme:theme
|
|
:dark-p t
|
|
:font-family "Iosevka Nerd Font"
|
|
:monospace-font-family "Iosevka Nerd Font"
|
|
:text-color "#ffffff"
|
|
:text-color+ "#ffffff"
|
|
:text-color- "#ffffff"
|
|
:contrast-text-color "#000000"
|
|
:background-color "#0d0e1c"
|
|
:background-color+ "#0d0e1c"
|
|
:background-color- "#0d0e1c"
|
|
:on-background-color "#ffffff"
|
|
:accent-color "#c6daff"
|
|
:accent-color+ "#c6daff"
|
|
:accent-color- "#c6daff"
|
|
:on-accent-color "#000000"
|
|
:primary-color "#b4befe"
|
|
:primary-color+ "#b4befe"
|
|
:primary-color- "#b4befe"
|
|
:on-primary-color "#000000"
|
|
:secondary-color "#61647a"
|
|
:secondary-color+ "#61647a"
|
|
:secondary-color- "#61647a"
|
|
:on-secondary-color "#ffffff"
|
|
:warning-color "#f38ba8"
|
|
:warning-color+ "#f38ba8"
|
|
:warning-color- "#f38ba8"
|
|
:on-warning-color "#000000"
|
|
:highlight-color "#f9e2af"
|
|
:highlight-color+ "#f9e2af"
|
|
:highlight-color- "#f9e2af"
|
|
:on-highlight-color "#000000"
|
|
:action-color "#89b4fa"
|
|
:action-color+ "#89b4fa"
|
|
:action-color- "#89b4fa"
|
|
:on-action-color "#000000"
|
|
:codeblock-color "#1d2235"
|
|
:codeblock-color+ "#1d2235"
|
|
:codeblock-color- "#1d2235"
|
|
:on-codeblock-color "#ffffff"))))
|
|
|
|
(setf (uiop/os:getenv "GTK_THEME") "Adwaita:dark")
|