diff options
author | Thanos Apollo <[email protected]> | 2023-09-27 02:10:25 +0300 |
---|---|---|
committer | Thanos Apollo <[email protected]> | 2023-09-27 02:10:25 +0300 |
commit | 47b73144d1b30514df003560851de3bd06e88b81 (patch) | |
tree | 27b0b2e914c6867d90f6ce456b123606803a8a09 /.config/nyxt/status.lisp | |
parent | 696a16039e28e5844a164d69f60006b9c11a0067 (diff) |
[New] Add nyxt, slightly modified config from aartaka
Diffstat (limited to '.config/nyxt/status.lisp')
-rw-r--r-- | .config/nyxt/status.lisp | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/.config/nyxt/status.lisp b/.config/nyxt/status.lisp new file mode 100644 index 0000000..9b47a24 --- /dev/null +++ b/.config/nyxt/status.lisp @@ -0,0 +1,33 @@ +(in-package #:nyxt-user) + +(define-configuration :status-buffer + "Display modes as short glyphs." + ((glyph-mode-presentation-p t))) + +;(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 status-buffer + "Hide most of the status elements but URL and modes." + ((style (str:concat + %slot-value% + (theme:themed-css (theme *browser*) + `("#controls,#tabs" + :display none !important)))))) + +(defmethod format-status-load-status ((status status-buffer)) + "A fancier load status." + (spinneret:with-html-string + (:span (if (and (current-buffer) + (web-buffer-p (current-buffer))) + (case (slot-value (current-buffer) 'nyxt::status) + (:unloaded "∅") + (:loading "∞") + (:finished "")) + "")))) |