nixos/home/nyxt/config.lisp

79 lines
3 KiB
Common Lisp
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

(define-configuration buffer
((default-modes (pushnew 'nyxt/mode/emacs:emacs-mode %slot-value%))
(default-modes (pushnew 'nyxt/mode/blocker:blocker-mode %slot-value%))
(default-modes (pushnew 'nyxt/mode/reduce-tracking:reduce-tracking-mode %slot-value%))
(default-modes (pushnew 'nyxt/mode/force-https:force-https-mode %slot-value%))))
(define-configuration status-buffer
((glyph-mode-presentation-p t)
(display-tabs-by-last-access-p t)))
(define-configuration :emacs-mode ((glyph "ε")))
(define-configuration :force-https-mode ((glyph "ϕ")))
(define-configuration :user-script-mode ((glyph "u")))
(define-configuration :blocker-mode ((glyph "β")))
(define-configuration :proxy-mode ((glyph "π")))
(define-configuration :reduce-tracking-mode ((glyph "τ")))
(define-configuration :certificate-exception-mode ((glyph "χ")))
(define-configuration :style-mode ((glyph "ϕ")))
(define-configuration :cruise-control-mode ((glyph "σ")))
(define-configuration :document-mode
"Extend with custom keybinds"
((keyscheme-map (keymaps:define-keyscheme-map "custom" (list :import %slot-value%)
nyxt/keyscheme:emacs (list
"C-c u" 'copy-username
"C-c p" 'copy-password)))))
(define-configuration :autofill-mode
"Add autofill functions for passwords"
((autofills (list
(nyxt/mode/autofill:make-autofill :name "name" :fill "Evie Litherland-Smith")
(nyxt/mode/autofill:make-autofill :name "email" :fill "evie@xenia.me.uk")))))
(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")