First few new slackware configs
This commit is contained in:
parent
2f46871e56
commit
585cc29048
9 changed files with 215 additions and 9 deletions
41
config/nyxt/config.lisp
Normal file
41
config/nyxt/config.lisp
Normal file
|
|
@ -0,0 +1,41 @@
|
|||
;; Nyxt Configuration
|
||||
|
||||
;; Theme - OceanicNext
|
||||
(define-configuration browser
|
||||
((theme (make-instance 'theme:theme
|
||||
:dark-p t
|
||||
:background-color "#1B2B34"
|
||||
:on-background-color "#CDD3DE"
|
||||
:primary-color "#6699CC"
|
||||
:on-primary-color "#1B2B34"
|
||||
:secondary-color "#4F5B66"
|
||||
:on-secondary-color "#CDD3DE"
|
||||
:accent-color "#99C794"
|
||||
:on-accent-color "#1B2B34"))))
|
||||
|
||||
;; Enable vi keybindings and dark mode globally
|
||||
(define-configuration web-buffer
|
||||
((default-modes (append '(nyxt/mode/vi:vi-normal-mode
|
||||
nyxt/mode/force-https:force-https-mode)
|
||||
%slot-value%))
|
||||
;; Request dark mode from sites that support it
|
||||
(prefers-color-scheme :dark)))
|
||||
|
||||
;; Default search engine
|
||||
(define-configuration context-buffer
|
||||
((search-engines (list (make-instance 'search-engine
|
||||
:shortcut "ddg"
|
||||
:search-url "https://duckduckgo.com/?q=~a"
|
||||
:fallback-url (quri:uri "https://duckduckgo.com"))))))
|
||||
|
||||
;; Send video URLs to mpv
|
||||
(define-command-global mpv-current-url ()
|
||||
"Open the current page URL in mpv."
|
||||
(uiop:launch-program (list "mpv" (render-url (url (current-buffer))))))
|
||||
|
||||
(define-configuration web-buffer
|
||||
((context-menu-commands (append %slot-value%
|
||||
(list (make-instance 'command :name "Open in mpv"
|
||||
:fn (lambda ()
|
||||
(uiop:launch-program
|
||||
(list "mpv" (render-url (url (current-buffer)))))))))))))
|
||||
Loading…
Add table
Add a link
Reference in a new issue