-
Notifications
You must be signed in to change notification settings - Fork 1
/
Nyxt-init-lisp
99 lines (91 loc) · 3.29 KB
/
Nyxt-init-lisp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
;; https://github.com/aartaka/nyxt-config black theme
;; nyxt with emacs: https://ag91.github.io/blog/2021/06/22/back-to-emacs-while-in-nyxt-how-to-edit-the-web-in-a-lispy-editor/
;; https://github.com/jmercouris/configuration/blob/master/.config/nyxt/init.lisp#L9
;;https://github.com/ericdrgn/drgn.nyxt
(in-package #:nyxt-user)
(define-configuration window
((message-buffer-style
(str:concat
%slot-default%
(cl-css:css
'((body
:background-color "black"
:color "white")))))))
(define-configuration prompt-buffer
((style (str:concat
%slot-default%
(cl-css:css
'((body
:background-color "black"
:color "white")
("#prompt-area"
:background-color "purple")
("#input"
:background-color "white")
(".source-name"
:color "black"
:background-color "gray")
(".source-content"
:background-color "black")
(".source-content th"
:border "1px solid purple"
:background-color "white")
("#selection"
:background-color "gray"
:color "black")
(.marked :background-color "#8B3A3A"
:font-weight "bold"
:color "white")
(.selected :background-color "black"
:color "white")))))))
;; (define-configuration browser
;; ((theme (make-instance
;; 'theme
;; :dark-p t
;; :background-color "black"
;; :text-color "white"
;; :accent-color "#CD5C5C"
;; :primary-color "#556B2F"
;; :secondary-color "lightgray"
;; :tertiary-color "gray"
;; :quaternary-color "dimgray"))))
(define-configuration status-buffer
((style (str:concat
%slot-default%
(cl-css:css
'(("#container"
;; Columns: controls, url
:grid-template-columns "0% 40% 0% 60%")
("#controls"
:border-top "1px solid white")
("#url"
:background-color "black"
:color "white"
:border-top "1px solid white")
("#modes"
:background-color "black"
:border-top "1px solid white")
("#tabs"
:background-color "black"
:color "black"
:border-top "1px solid white")))))))
(define-configuration buffer
;;If you want to reuse the default map,
;;you can use %slot-default instead of (make-keymap ...)
((override-map (define-key %slot-default%
"S-x" 'execute-command
"M-d" 'delete-buffer
"M-v" 'nyxt/visual-mode:visual-mode
"C-s" 'nyxt/web-mode:search-buffer
"C-w" 'delete-current-buffer))))
(define-configuration (buffer web-buffer)
((default-modes (append %slot-default%
;; '(dark-mode)
'(blocker-mode)
'(noscript-mode)
;; '(noimage-mode)
'(reduce-tracking-mode)
'(nosound-mode)
'(emacs-mode)
'(auto-mode)
'(nowebgl-mode)))))