+doom +nyxt +bat +zellij

This commit is contained in:
m3tam3re
2024-03-23 05:46:12 +01:00
parent 57298a6bbc
commit 94423f7e3e
44 changed files with 6461 additions and 0 deletions

3
nyxt/auto-config.3.lisp Normal file
View File

@@ -0,0 +1,3 @@
(defmethod customize-instance ((input-buffer input-buffer) &key)
(disable-modes* 'nyxt/mode/emacs:emacs-mode input-buffer)
(enable-modes* 'nyxt/mode/vi:vi-normal-mode input-buffer))

15
nyxt/bookmarks.lisp Normal file
View File

@@ -0,0 +1,15 @@
(
(:url "https://gitlab.com/dwt1/dotfiles/-/blob/master/.config/doom/config.el" :title ".config/doom/config.el · master · Derek Taylor / Dotfiles · GitLab" :date "2023-04-08T18:21:12.378304Z")
(:url "https://nixos.wiki/wiki/Shell_Scripts" :title "Shell Scripts - NixOS Wiki" :date "2023-04-16T04:38:48.618353Z")
(:url "https://nyxt.atlas.engineer/start" :title "Nyxt browser: start" :date "2023-04-08T15:40:06.011757Z")
(:url "https://open-assistant.io/de/dashboard" :title "Dashboard - Open Assistant" :date "2023-04-09T09:03:45.693075Z" :tags ("ai" "ki" "chat"))
(:url "https://projects.laion.ai/Open-Assistant/docs/faq" :title "Frequently Asked Questions | Open Assistant" :date "2023-04-09T09:13:54.602604Z")
(:url "https://ryantm.github.io/nixpkgs/builders/fetchers/" :title "Fetchers | nixpkgs" :date "2023-04-16T10:05:16.994106Z")
(:url "https://search.lanakk.com/search" :title "SearXNG" :date "2023-04-08T15:39:57.034596Z")
(:url "https://search.nixos.org/packages?channel=22.11&from=0&size=50&sort=relevance&type=packages&query=dired-open" :title "NixOS Search - Packages" :date "2023-04-08T18:26:23.268911Z")
(:url "https://video.lanakk.com/feed/popular" :title "Invidious" :date "2023-03-01T10:21:50.245112Z" :tags ("video"))
(:url "https://video.lanakk.com/watch?v=b8kxdiskGzI&autoplay=1&continue=1" :title "Searching For The Right Minimal Browser - Invidious" :date "2023-03-01T12:22:09.872434Z")
(:url "https://www.lisperati.com/syntax.html" :date "2023-04-30T12:17:00.675115Z" :tags ("lisp"))
(:url "https://xeiaso.net/blog" :title "Blogposts - Xe Iaso" :date "2023-04-14T15:53:08.624185Z" :tags ("blog"))
(:url "https://zero-to-nix.com/" :title "Zero to Nix" :date "2023-04-16T10:47:16.466618Z" :tags ("nix"))
)

24
nyxt/config.lisp Normal file
View File

@@ -0,0 +1,24 @@
(in-package #:nyxt-user)
(setf (uiop:getenv "GTK_THEME") "Dracula")
(define-configuration browser
((theme (make-instance 'theme:theme
:background-color "#22212C"
:on-background-color "#F8F8F2"
:primary-color "#9580FF"
:on-primary-color "#F9F9F1"
:secondary-color "#9986F9"
:on-secondary-color "white"
:accent-color "#FF80BF"
:on-accent-color "black"))))
(define-configuration buffer
((default-modes
(pushnew 'nyxt/mode/vi:vi-normal-mode %slot-value%))))
(define-configuration prompt-buffer
((default-modes (append '(vi-insert-mode) %slot-default%))))
;; Import Files
(nyxt::load-lisp "~/.config/nyxt/search-engines.lisp")

14
nyxt/search-engines.lisp Normal file
View File

@@ -0,0 +1,14 @@
(in-package #:nyxt-user)
(defvar *my-search-engines*
(list
'("pkgs" "https://search.nixos.org/packages?channel=unstable&size=50&sort=relevance&type=packages&query=~a" "https://search.nixos.org/packages" )
'("wiki" "https://de.wikipedia.org/index.php?search=~a" "https://de.wikipedia.org" )
'("vid" "https://video.lanakk.com/search?q=~a" "https://search.lanakk.com" )
'("osm" "https://www.openstreetmap.org/search?query=~a" "https://www.openstreetmap.org" )
'("s" "https://search.lanakk.com/search?q=~a" "https://search.lanakk.com" )
))
(define-configuration buffer
((search-engines (append %slot-default%
(mapcar (lambda (engine) (apply 'make-search-engine engine))
*my-search-engines*)))))

73
nyxt/statusline.lisp Normal file
View File

@@ -0,0 +1,73 @@
(in-package #:nyxt-user)
;; Set StatusLines Mode Icons
(define-configuration status-buffer ((glyph-mode-presentation-p t)))
(define-configuration nyxt/force-https-mode:force-https-mode ((glyph "")))
(define-configuration nyxt/blocker-mode:blocker-mode ((glyph "")))
(define-configuration nyxt/proxy-mode:proxy-mode ((glyph "")))
(define-configuration nyxt/reduce-tracking-mode:reduce-tracking-mode ((glyph "")))
(define-configuration nyxt/certificate-exception-mode:certificate-exception-mode ((glyph "")))
(define-configuration nyxt/style-mode:style-mode ((glyph "")))
(define-configuration nyxt/help-mode:help-mode ((glyph "")))
(define-configuration nyxt/web-mode:web-mode ((glyph "ω")))
(define-configuration nyxt/auto-mode:auto-mode ((glyph "α")))
;;;; Set StatusLines URL Icons
(defun laconic-format-status-load-status (buffer)
(if (web-buffer-p buffer)
(case (slot-value buffer 'nyxt::load-status)
(:unloaded "∅")
(:loading "∞")
(:finished ""))
""))
Remove https/www from URL
(defun laconic-format-status-url (buffer)
(markup:markup
(:span
(format nil "~a ~a"
(laconic-format-status-load-status buffer)
(ppcre:regex-replace-all
"(https://|www\\.|/$)"
(render-url (url buffer))
"")))))
;;
;;;; Set StatusLines Webpage Loadtime
(defun laconic-format-status-modes (buffer window)
(str:concat
(format-status-modes buffer window)
" | "
(format nil "~d:~d"
(mod (+ 5 (local-time:timestamp-hour (local-time:now))) 24)
(local-time:timestamp-minute (local-time:now)))))
;;
;;;; Configure StatusLines Design
(defun laconic-format-status (window)
(flet ((input-indicating-background ()
(format nil "background-color: ~:[#50fa7b~;#ff5555~]"
(or (current-mode 'vi-insert)
(current-mode 'input-edit)))))
(let ((buffer (current-buffer window)))
(markup:markup
(:div :id "container"
(:div :id "controls"
:style (input-indicating-background)
(markup:raw ""))
(:div :class "arrow arrow-right"
:style (input-indicating-background) "")
(:div :id "url"
(markup:raw
(laconic-format-status-url buffer)))
(:div :class "arrow arrow-right"
:style "background-color:#21222C" "")
(:div :id "tabs"
(title buffer))
(:div :class "arrow arrow-left"
:style "background-color:#21222C" "")
(:div :id "modes"
:title (nyxt::list-modes buffer)
(laconic-format-status-modes buffer window)))))))
;;
;;;; Define Current Configuration
(define-configuration window
((status-formatter #'laconic-format-status)))

147
nyxt/stylesheet.lisp Normal file
View File

@@ -0,0 +1,147 @@
;; For version 3
(in-package #:nyxt-user)
;; This only works on the versions of Nyxt after 2.2.4.
(define-configuration browser
((theme (make-instance
'theme:theme
:dark-p t
:background-color "#282a36"
:text-color "#f8f8f2"
:accent-color "#ff5555"
:primary-color "#50fa7b"
:secondary-color "#bd93f9"
:tertiary-color "#6272a4"
:quaternary-color "#44475a"))))
;; Custom Dark-mode for webpages
(define-configuration nyxt/style-mode:dark-mode
((style #.(cl-css:css
'((*
:background-color "#282a36 !important"
:background-image "none !important"
:color "#f8f8f2")
(a
:background-color "#282a36 !important"
:background-image "none !important"
:color "#6272a4 !important"))))))
;;For version 2.2.4 AND below use this:
;;
;;;; Configure Webpage Colors
;;(define-configuration window
;; ((message-buffer-style
;; (str:concat
;; %slot-default%
;; (cl-css:css
;; '((body
;; :background-color "#282a36"
;; :color "#f8f8f2")))))))
;;
;;;; Configure Prompt Section
;;(define-configuration prompt-buffer
;; ((style (str:concat
;; %slot-default%
;; (cl-css:css
;; '((body
;; :background-color "#282a36"
;; :color "#f8f8f2")
;; ("#prompt-area"
;; :background-color "#282a36")
;; ("#input"
;; :background-color "#6272a4"
;; :color "#f8f8f2")
;; (".source-name"
;; :color "#f8f8f2"
;; :background-color "#bd93f9")
;; (".source-content"
;; :background-color "#282a36")
;; (".source-content th"
;; :border "1px solid #bd93f9"
;; :background-color "#282a36")
;; ("#selection"
;; :background-color "#44475a"
;; :color "#f8f8f2")
;; (.marked :background-color "#ff5555"
;; :font-weight "bold"
;; :color "#f8f8f2")
;; (.selected :background-color "#282a36"
;; :color "#f8f8f2")))))))
;;
;;(define-configuration internal-buffer
;; ((style
;; (str:concat
;; %slot-default%
;; (cl-css:css
;; '((title
;; :color "#ff79c6")
;; (body
;; :background-color "#21222C"
;; :color "#f8f8f2")
;; (hr
;; :color "#44475a")
;; (a
;; :color "#6272a4")
;; (.button
;; :color "#f8f8f2"
;; :background-color "#44475a")))))))
;;
;;;; Configure History Tree Mode
;;(define-configuration nyxt/history-tree-mode:history-tree-mode
;; ((nyxt/history-tree-mode::style
;; (str:concat
;; %slot-default%
;; (cl-css:css
;; '((body
;; :background-color "#21222C"
;; :color "lightgray")
;; (hr
;; :color "darkgray")
;; (a
;; :color "#50fa7b")
;; ("ul li::before"
;; :background-color "#f8f8f2")
;; ("ul li::after"
;; :background-color "#f8f8f2")
;; ("ul li:only-child::before"
;; :background-color "#f8f8f2")))))))
;;
;;;; Highlight Hint Buttons
;;(define-configuration nyxt/web-mode:web-mode
;; ((nyxt/web-mode:highlighted-box-style
;; (cl-css:css
;; '((".nyxt-hint.nyxt-highlight-hint"
;; :background "#ff5555")))
;; :documentation "The style of highlighted boxes, e.g. link hints.")))
;;
;;;; Configure StatusLines Styles
;;(define-configuration status-buffer
;; ((style (str:concat
;; %slot-default%
;; (cl-css:css
;; '(("#controls"
;; :border-top "1px solid #6272a4"
;; :background-color "#21222C")
;; ("#url"
;; :background-color "#21222C"
;; :color "#f8f8f2"
;; :border-top "1px solid #6272a4")
;; ("#modes"
;; :background-color "#21222C"
;; :border-top "1px solid #6272a4")
;; ("#tabs"
;; :background-color "#6272a4"
;; :color "#f8f8f2"
;; :border-top "1px solid #6272a4")))))))
;;
;;(define-configuration nyxt/style-mode:dark-mode
;; ((style #.(cl-css:css
;; '((*
;; :background-color "#21222C !important"
;; :background-image "none !important"
;; :color "#f8f8f2")
;; (a
;; :background-color "#21222C !important"
;; :background-image "none !important"
;; :color "#556B2F !important"))))))