2023-11-04 20:07:12 +00:00
|
|
|
(defmethod customize-instance ((browser browser) &key)
|
|
|
|
(setf (slot-value browser 'restore-session-on-startup-p) nil))
|
2023-11-04 10:01:21 +00:00
|
|
|
(setf (uiop:getenv "GTK_THEME") "Adwaita:dark")
|
2023-11-07 09:29:45 +00:00
|
|
|
(setf (uiop/os:getenv "WEBKIT_DISABLE_COMPOSITING_MODE") "1")
|
2023-11-04 10:01:21 +00:00
|
|
|
(define-configuration buffer
|
|
|
|
((default-modes (pushnew 'nyxt/mode/emacs:emacs-mode %slot-value%))))
|
|
|
|
(define-configuration web-buffer
|
|
|
|
((default-modes (pushnew 'nyxt/mode/blocker:blocker-mode %slot-value%))))
|
2023-11-07 10:20:51 +00:00
|
|
|
(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/"))
|
2023-11-07 10:25:39 +00:00
|
|
|
(make-instance 'search-engine
|
|
|
|
:name "MyNixOS"
|
|
|
|
:shortcut "nix"
|
|
|
|
:search-url "https://mynixos.com/search?q=~a"
|
|
|
|
:fallback-url (quri.uri:uri "https://mynixos.com/"))
|
2023-11-07 10:20:51 +00:00
|
|
|
(make-instance 'search-engine
|
|
|
|
:name "DuckDuckGo"
|
|
|
|
:shortcut "ddg"
|
2023-11-07 10:25:39 +00:00
|
|
|
:search-url "https://duckduckgo.com/?q=~a"
|
|
|
|
:fallback-url (quri.uri:uri "https://duckduckgo.com/"))))))
|
2023-11-12 14:13:03 +00:00
|
|
|
(define-configuration browser
|
|
|
|
((theme (make-instance
|
|
|
|
'theme:theme
|
|
|
|
:font-family "Fira Sans"
|
|
|
|
:background-color "#1a1b26"
|
|
|
|
:background-alt-color "#414868"
|
|
|
|
:accent-color "#bb9af7"
|
|
|
|
:primary-color "#bb9af7"
|
|
|
|
:secondary-color "#a9b1d6"
|
|
|
|
:warning-color "#f7768e"))))
|