fixes for light mode

This commit is contained in:
Noah Masur 2022-11-05 13:41:09 -04:00
parent 4ea56b0aab
commit c871f59791
6 changed files with 56 additions and 44 deletions

View File

@ -17,8 +17,8 @@ nixpkgs.lib.nixosSystem {
identityFile = "/home/${globals.user}/.ssh/id_ed25519";
gui.enable = true;
theme = {
colors = (import ../../modules/colorscheme/gruvbox).dark;
dark = true;
colors = (import ../../modules/colorscheme/gruvbox).light;
dark = false;
};
wallpaper = "${wallpapers}/gruvbox/road.jpg";
gtk.theme.name = nixpkgs.lib.mkDefault "Adwaita-dark";

View File

@ -45,6 +45,8 @@
"toolkit.legacyUserProfileCustomizations.stylesheets" =
true; # Allow userChrome.css
"layout.css.color-mix.enabled" = true;
"ui.systemUsesDarkTheme" =
if config.theme.dark == true then 1 else 0;
};
userChrome = ''
:root {

View File

@ -20,6 +20,7 @@
base0E = "#d3869b"; # purple
base0F = "#d65d0e"; # brown
neovimConfig = ./neovim.lua;
batTheme = "gruvbox-dark";
};
light = {
base00 = "#fbf1c7"; # ----
@ -38,6 +39,7 @@
base0D = "#076678"; # blue
base0E = "#8f3f71"; # purple
base0F = "#d65d0e"; # brown
neovimConfig = ./neovim-light.lua;
neovimConfig = ./neovim.lua;
batTheme = "gruvbox-light";
};
}

View File

@ -6,7 +6,6 @@ M.packer = function(use)
config = function()
vim.g.gruvbox_italicize_strings = 0
vim.cmd("colorscheme gruvbox8")
vim.cmd("set background=dark")
end,
})
end

View File

@ -19,9 +19,9 @@
};
"nvim/lua/packer/colors.lua".source = config.theme.colors.neovimConfig;
"nvim/lua/background.lua".text = ''
vim.cmd("set background=${
vim.o.background = "${
if config.theme.dark == true then "dark" else "light"
}")
}"
'';
};

View File

@ -13,13 +13,14 @@ let
in {
config = {
home-manager.users.${config.user} = {
home.packages = with pkgs; [
unzip # Extract zips
rsync # Copy folders
ripgrep # grep
bat # cat
fd # find
sd # sed
jq # JSON manipulation
@ -31,7 +32,7 @@ in {
vimv-rs # Batch rename files
dig # DNS lookup
lf # File viewer
# whois # Lookup IPs
inetutils # Includes telnet, whois
age # Encryption
];
@ -43,6 +44,11 @@ in {
".digrc".text = "+noall +answer"; # Cleaner dig commands
};
programs.bat = {
enable = true; # cat replacement
config = { theme = config.theme.colors.batTheme; };
};
programs.fish.shellAbbrs = {
cat = "bat"; # Swap cat with bat
};
@ -54,11 +60,14 @@ in {
body = "${pkgs.prettyping}/bin/prettyping --nolegend $target";
};
qr = {
# Fix for non-macOS
body =
"${pkgs.qrencode}/bin/qrencode $argv[1] -o /tmp/qr.png | open /tmp/qr.png"; # Fix for non-macOS
"${pkgs.qrencode}/bin/qrencode $argv[1] -o /tmp/qr.png | ${pkgs.gnome.sushi}/bin/sushi /tmp/qr.png";
};
};
};
};
}