all repos — nixfiles @ 334c968d83c5353bb80baccfb9f8d1c2daa3703c

System and user configuration, managed by nix and home-manager

theme: switch vivid theme alongside theme.sh

Alan Pearce
commit

334c968d83c5353bb80baccfb9f8d1c2daa3703c

parent

22ed806a6ec0eb2fcbadba733f349fecc9b1ccea

1 file changed, 12 insertions(+), 1 deletion(-)

changed files
M user/settings/theme.nix → user/settings/theme.nix
@@ -1,5 +1,7 @@
{ + config, pkgs, + lib, inputs, ... }:
@@ -53,7 +55,16 @@ else
theme.sh flexoki-light end - bind \co last_theme + function __vivid_update --on-variable VIVID_THEME + set -gx LS_COLORS $(vivid ${ + let + vivid = config.programs.vivid; + in + lib.optionalString (vivid.colorMode != null) "-m ${vivid.colorMode}" + } generate $VIVID_THEME) + end + + bind \co toggle-light-dark ''; };