Add search engine configuration

Signed-off-by: Jacob Hrbek <kreyren@fsfe.org>
This commit is contained in:
Jacob Hrbek 2021-06-06 20:21:37 +02:00
parent 25555b3e1c
commit 5ab70c2777
No known key found for this signature in database
GPG Key ID: 351B356FBF17C5C7
3 changed files with 38 additions and 1 deletions

@ -1 +1,2 @@
(in-package #:nyxt-user)
(load (nyxt-init-file "search-engines.clisp"))
(load (nyxt-init-file "user.clisp"))

27
search-engines.clisp Normal file

@ -0,0 +1,27 @@
;;; This file customized the default search-engines
(in-package #:nyxt-user)
;; NOTE(Krey): Last search-engine becomes the default
(define-configuration buffer
((search-engines
(list
(make-instance 'search-engine
:shortcut "wiki"
:search-url "https://en.wikipedia.org/w/index.php?search=~a")
(make-instance 'search-engine
:shortcut "ddg"
:search-url "https://duckduckgo.com/?q=~a")
(make-instance 'search-engine
:shortcut "yt"
:search-url "https://www.youtube.com/results?search_query=~a")
(make-instance 'search-engine
:shortcut "osm"
:search-url "https://www.openstreetmap.org/search?query=~a")
(make-instance 'search-engine
:shortcut "ggl"
:search-url "https://www.google.com/search?q=~a")
(make-instance 'search-engine
:shortcut "searX"
:search-url "https://search.snopyta.org/search?q=~a"
:fallback-url "https://search.disroot.org/search?q=~a") ))))

9
user.clisp Normal file

@ -0,0 +1,9 @@
;;; This file is exclusively used for user configuration
(in-package #:nyxt-user)
;; NOTE(Krey): Never restore previous sessions as it's annoying on the startup and shows the history which is unwanted
(define-configuration browser
((session-restore-prompt :never-restore)) )
(define-configuration password:keepassxc-interface
((password:password-file "/home/kreyren/Cloud/Kreyren.kdbx")))