Remove altAccentColourName and associated uses

Enable no-script-mode by default in NYXT
This commit is contained in:
Evie Litherland-Smith 2024-06-29 06:37:54 +01:00
parent a9c96b8a06
commit d2b5a25e93
4 changed files with 8 additions and 8 deletions

View file

@ -44,7 +44,6 @@
inherit hostname; inherit hostname;
inherit (plasma-manager.packages.${system}) rc2nix; inherit (plasma-manager.packages.${system}) rc2nix;
accentColourName = "base0C"; accentColourName = "base0C";
altAccentColourName = "base0D";
iosevkaCustom = { iosevkaCustom = {
packages = iosevka-custom.outputs.packages.${system}; packages = iosevka-custom.outputs.packages.${system};
names = iosevka-custom.outputs.names; names = iosevka-custom.outputs.names;

View file

@ -2,7 +2,9 @@
((default-modes ((default-modes
(pushnew 'nyxt/mode/emacs:emacs-mode %slot-value%)) (pushnew 'nyxt/mode/emacs:emacs-mode %slot-value%))
(default-modes (default-modes
(pushnew 'nyxt/mode/blocker:blocker-mode %slot-value%)))) (pushnew 'nyxt/mode/blocker:blocker-mode %slot-value%))
(default-modes
(pushnew 'nyxt/mode/no-script:no-script-mode %slot-value%))))
(define-configuration status-buffer (define-configuration status-buffer
((glyph-mode-presentation-p t) ((glyph-mode-presentation-p t)
@ -10,6 +12,7 @@
(define-configuration :emacs-mode ((glyph "ε"))) (define-configuration :emacs-mode ((glyph "ε")))
(define-configuration :force-https-mode ((glyph "ϕ"))) (define-configuration :force-https-mode ((glyph "ϕ")))
(define-configuration :no-script-mode ((glyph "j")))
(define-configuration :user-script-mode ((glyph "u"))) (define-configuration :user-script-mode ((glyph "u")))
(define-configuration :blocker-mode ((glyph "β"))) (define-configuration :blocker-mode ((glyph "β")))
(define-configuration :proxy-mode ((glyph "π"))) (define-configuration :proxy-mode ((glyph "π")))

View file

@ -3,7 +3,6 @@
pkgs, pkgs,
fonts, fonts,
accentColourName, accentColourName,
altAccentColourName,
... ...
}: { }: {
home.packages = [pkgs.nyxt]; home.packages = [pkgs.nyxt];
@ -22,11 +21,11 @@
:monospace-font-family "${fonts.monospace.name}" :monospace-font-family "${fonts.monospace.name}"
:background-color "${sc.base00}" :background-color "${sc.base00}"
:on-background-color "${sc.base05}" :on-background-color "${sc.base05}"
:primary-color "${sc.${accentColourName}}" :primary-color "${sc.base02}"
:on-primary-color "${sc.base01}" :on-primary-color "${sc.base05}"
:secondary-color "${sc.base03}" :secondary-color "${sc.base03}"
:on-secondary-color "${sc.base05}" :on-secondary-color "${sc.base05}"
:accent-color "${sc.${altAccentColourName}}" :accent-color "${sc.${accentColourName}}"
:on-accent-color "${sc.base01}" :on-accent-color "${sc.base01}"
:action-color "${sc.cyan}" :action-color "${sc.cyan}"
:on-action-color "${sc.base01}" :on-action-color "${sc.base01}"

View file

@ -4,7 +4,6 @@
pkgs, pkgs,
fonts, fonts,
accentColourName, accentColourName,
altAccentColourName,
... ...
}: { }: {
programs.waybar.systemd.target = lib.mkIf config.wayland.windowManager.sway.systemd.enable "sway-session.target"; programs.waybar.systemd.target = lib.mkIf config.wayland.windowManager.sway.systemd.enable "sway-session.target";
@ -51,7 +50,7 @@
colors = let colors = let
sc = config.scheme.withHashtag; sc = config.scheme.withHashtag;
text = toString sc.base05; text = toString sc.base05;
indicator = toString sc.${altAccentColourName}; indicator = toString sc.${accentColourName};
background = toString sc.base00; background = toString sc.base00;
in { in {
inherit background; inherit background;