Nyxt tweaks
This commit is contained in:
parent
4f0c727797
commit
d79c5fc309
3 changed files with 22 additions and 18 deletions
|
|
@ -1,4 +1,4 @@
|
||||||
# This file contains fish universal variable definitions.
|
# This file contains fish universal variable definitions.
|
||||||
# VERSION: 3.0
|
# VERSION: 3.0
|
||||||
SETUVAR __fish_initialized:4300
|
SETUVAR __fish_initialized:4300
|
||||||
SETUVAR fish_user_paths:/home/green/\x2elocal/bin\x1e/home/green/\x2elocal/share/npm/bin
|
SETUVAR fish_user_paths:/home/green/\x2ecargo/bin\x1e/home/green/\x2elocal/bin\x1e/home/green/\x2elocal/share/npm/bin
|
||||||
|
|
|
||||||
|
|
@ -1,25 +1,31 @@
|
||||||
;; Nyxt Configuration
|
;; Nyxt Configuration
|
||||||
|
|
||||||
;; Theme - OceanicNext
|
;; Theme - OceanicNext
|
||||||
|
;; background- = inactive tab bg (auto-derived darker, we override explicitly)
|
||||||
|
;; background+ = selected tab bg (auto-derived lighter)
|
||||||
(define-configuration browser
|
(define-configuration browser
|
||||||
((theme (make-instance 'theme:theme
|
((theme (make-instance 'theme:theme
|
||||||
:dark-p t
|
:dark-p t
|
||||||
:background-color "#1B2B34"
|
:background-color "#1B2B34"
|
||||||
|
:background-color- "#0F1B22" ;; inactive tab bg - visibly darker
|
||||||
|
:background-color+ "#2B3B44" ;; selected tab bg - slightly lighter
|
||||||
:on-background-color "#CDD3DE"
|
:on-background-color "#CDD3DE"
|
||||||
:primary-color "#6699CC"
|
:primary-color "#343D46"
|
||||||
:on-primary-color "#1B2B34"
|
:on-primary-color "#CDD3DE"
|
||||||
:secondary-color "#4F5B66"
|
:secondary-color "#4F5B66"
|
||||||
:on-secondary-color "#CDD3DE"
|
:on-secondary-color "#CDD3DE"
|
||||||
:accent-color "#99C794"
|
:action-color "#99C794"
|
||||||
:on-accent-color "#1B2B34"))))
|
:on-action-color "#1B2B34"
|
||||||
|
:highlight-color "#99C794"
|
||||||
|
:on-highlight-color "#1B2B34"))
|
||||||
|
(zoom-ratio-default 1.25)
|
||||||
|
(restore-session-p nil)))
|
||||||
|
|
||||||
;; Enable vi keybindings and dark mode globally
|
;; Enable vi keybindings, force HTTPS, and CSS-based dark mode globally
|
||||||
(define-configuration web-buffer
|
(define-configuration web-buffer
|
||||||
((default-modes (append '(nyxt/mode/vi:vi-normal-mode
|
((default-modes (append '(nyxt/mode/vi:vi-normal-mode
|
||||||
nyxt/mode/force-https:force-https-mode)
|
nyxt/mode/force-https:force-https-mode)
|
||||||
%slot-value%))
|
%slot-value%))))
|
||||||
;; Request dark mode from sites that support it
|
|
||||||
(prefers-color-scheme :dark)))
|
|
||||||
|
|
||||||
;; Default search engine
|
;; Default search engine
|
||||||
(define-configuration context-buffer
|
(define-configuration context-buffer
|
||||||
|
|
@ -28,14 +34,12 @@
|
||||||
:search-url "https://duckduckgo.com/?q=~a"
|
:search-url "https://duckduckgo.com/?q=~a"
|
||||||
:fallback-url (quri:uri "https://duckduckgo.com"))))))
|
:fallback-url (quri:uri "https://duckduckgo.com"))))))
|
||||||
|
|
||||||
;; Send video URLs to mpv
|
;; Fix #selection text color - td specificity overrides it, so we target directly
|
||||||
|
(define-configuration prompt-buffer
|
||||||
|
((style (str:concat %slot-value%
|
||||||
|
"#selection td { color: #1B2B34 !important; }"))))
|
||||||
|
|
||||||
|
;; Send current page URL to mpv
|
||||||
(define-command-global mpv-current-url ()
|
(define-command-global mpv-current-url ()
|
||||||
"Open the current page URL in mpv."
|
"Open the current page URL in mpv."
|
||||||
(uiop:launch-program (list "mpv" (render-url (url (current-buffer))))))
|
(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)))))))))))))
|
|
||||||
|
|
|
||||||
2
link.sh
2
link.sh
|
|
@ -31,7 +31,7 @@ backup_and_link "$DOTFILES/config/fish" "$HOME/.config/fish"
|
||||||
backup_and_link "$DOTFILES/config/tmux" "$HOME/.config/tmux"
|
backup_and_link "$DOTFILES/config/tmux" "$HOME/.config/tmux"
|
||||||
backup_and_link "$DOTFILES/config/senpai" "$HOME/.config/senpai"
|
backup_and_link "$DOTFILES/config/senpai" "$HOME/.config/senpai"
|
||||||
backup_and_link "$DOTFILES/config/kanata" "$HOME/.config/kanata"
|
backup_and_link "$DOTFILES/config/kanata" "$HOME/.config/kanata"
|
||||||
backup_and_link "$DOTFILES/config/nyxt" "$HOME/.var/app/engineer.atlas.Nyxt/config/nyxt"
|
backup_and_link "$DOTFILES/config/nyxt" "$HOME/.config/nyxt"
|
||||||
|
|
||||||
# Zed: link individual files to preserve extra live data (themes, backups, etc.)
|
# Zed: link individual files to preserve extra live data (themes, backups, etc.)
|
||||||
mkdir -p "$HOME/.config/zed"
|
mkdir -p "$HOME/.config/zed"
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue