Add NYXT browser back with some config tweaks
This commit is contained in:
parent
cc57e16c87
commit
4fd459a621
|
@ -139,6 +139,7 @@
|
|||
./home/hyprland.nix
|
||||
./home/terminal/default.nix
|
||||
./home/browser/firefox.nix
|
||||
./home/browser/nyxt.nix
|
||||
./home/emacs/default.nix
|
||||
./home/email/default.nix
|
||||
./home/calendar/default.nix
|
||||
|
|
|
@ -63,5 +63,3 @@
|
|||
|
||||
(define-configuration browser
|
||||
((restore-session-on-startup-p nil)))
|
||||
|
||||
(setf (uiop/os:getenv "GTK_THEME") "Adwaita:light")
|
||||
|
|
|
@ -5,16 +5,20 @@
|
|||
configFile = {
|
||||
"nyxt/config.lisp".text =
|
||||
let
|
||||
inherit (config.lib.stylix.scheme) variant;
|
||||
fonts = config.stylix.fonts;
|
||||
scheme = config.lib.stylix.scheme.withHashtag;
|
||||
accent = scheme.base0E;
|
||||
in
|
||||
''
|
||||
;; Import custom configuration
|
||||
(nyxt::load-lisp "${./config.lisp}")
|
||||
;; Set theme variant from GTK_THEME if available
|
||||
(setf (uiop/os:getenv "GTK_THEME") "Adwaita:${variant}")
|
||||
;; Define custom theme
|
||||
(define-configuration browser
|
||||
((theme (make-instance 'theme:theme
|
||||
:dark-p nil
|
||||
:dark-p ${if variant == "light" then "nil" else "t"}
|
||||
:font-family "${fonts.sansSerif.name}"
|
||||
:monospace-font-family "${fonts.monospace.name}"
|
||||
:background-color "${scheme.base00}"
|
||||
|
@ -23,7 +27,7 @@
|
|||
:on-primary-color "${scheme.base05}"
|
||||
:secondary-color "${scheme.base03}"
|
||||
:on-secondary-color "${scheme.base05}"
|
||||
:accent-color "${scheme.magenta}"
|
||||
:accent-color "${accent}"
|
||||
:on-accent-color "${scheme.base01}"
|
||||
:action-color "${scheme.cyan}"
|
||||
:on-action-color "${scheme.base01}"
|
||||
|
|
Loading…
Reference in a new issue