summaryrefslogtreecommitdiff
path: root/.config
diff options
context:
space:
mode:
authorThanos Apollo <[email protected]>2024-02-27 14:53:14 +0200
committerThanos Apollo <[email protected]>2024-02-27 14:53:14 +0200
commit04e0b9a5d0b400870e6ca39f454e7ed388ffe0af (patch)
tree4edeb5238688397a18196474cdfc2df83ea8c90c /.config
parent67ac84114a5a510a3b5a738e48e03c54a7bdc58c (diff)
nyxt: Rewrite modules
Diffstat (limited to '.config')
-rw-r--r--.config/nyxt/default-search.lisp17
-rw-r--r--.config/nyxt/handle-url.lisp (renamed from .config/nyxt/commands.lisp)0
-rw-r--r--.config/nyxt/style.lisp4
3 files changed, 19 insertions, 2 deletions
diff --git a/.config/nyxt/default-search.lisp b/.config/nyxt/default-search.lisp
new file mode 100644
index 0000000..9d47fc7
--- /dev/null
+++ b/.config/nyxt/default-search.lisp
@@ -0,0 +1,17 @@
+
+(defvar *my-search-engines*
+ (list
+ '("google" "https://google.com/search?q=~a" "https://google.com")
+ '("doi" "https://dx.doi.org/~a" "https://dx.doi.org/")
+ '("python3" "https://docs.python.org/3/search.html?q=~a"
+ "https://docs.python.org/3")
+ '("duck" "https://duckduckgo.com/?q=~a" "https://duckduckgo.com/"))
+ "List of search engines.")
+
+(define-configuration context-buffer
+ "Go through the search engines above and make-search-engine out of them."
+ ((search-engines
+ (append %slot-default%
+ (mapcar
+ (lambda (engine) (apply 'make-search-engine engine))
+ *my-search-engines*)))))
diff --git a/.config/nyxt/commands.lisp b/.config/nyxt/handle-url.lisp
index 1739793..1739793 100644
--- a/.config/nyxt/commands.lisp
+++ b/.config/nyxt/handle-url.lisp
diff --git a/.config/nyxt/style.lisp b/.config/nyxt/style.lisp
index 4dee682..c1b1304 100644
--- a/.config/nyxt/style.lisp
+++ b/.config/nyxt/style.lisp
@@ -135,9 +135,9 @@ automatically, which should be good enough... for most cases.")))
:background-image none "!important"
:color ,badger-blue "!important")
`(* :background-color "#000000" "!important"
+ :background-image none "!important"
:color "#ffffff" "!important"
- :background-image none "!important!")
- `(video :background-color none "!important"))))
+ :background-image none "!important!"))))
:doc
"Notice the use of theme:themed-css for convenient theme color injection.")