feat: add light theme

This commit is contained in:
Jacob Bachmann 2024-03-25 17:17:53 +01:00
parent 1e8844c6a3
commit fdee4f201d
Signed by: bchmnn
GPG key ID: 732A612DAD28067D
8 changed files with 130 additions and 5 deletions

View file

@ -6,6 +6,7 @@
./git.nix ./git.nix
./gnupg.nix ./gnupg.nix
./keyd.nix ./keyd.nix
./lsd
./neovim ./neovim
./packages.nix ./packages.nix
./scripts ./scripts

View file

@ -3,10 +3,10 @@
gtk = { gtk = {
enable = true; enable = true;
gtk3.extraConfig = { gtk3.extraConfig = {
gtk-application-prefer-dark-theme = 1; gtk-application-prefer-dark-theme = 0;
}; };
gtk4.extraConfig = { gtk4.extraConfig = {
gtk-application-prefer-dark-theme = 1; gtk-application-prefer-dark-theme = 0;
}; };
}; };

View file

@ -65,11 +65,32 @@ in
plugins = [ hy3.packages.x86_64-linux.hy3 ]; plugins = [ hy3.packages.x86_64-linux.hy3 ];
settings = { settings = {
env = with lib; with nixosConfig.bchmnn; optionals nvidia.enable [ env = with lib; with nixosConfig.bchmnn; optionals nvidia.enable [
"CLUTTER_BACKEND,wayland"
"GDK_BACKEND,wayland"
"GDK_DPI_SCALE,1"
"NIXOS_OZONE_WL,1"
"MOZ_ENABLE_WAYLAND,1"
"MOZ_USE_XINPUT2,1"
"XDG_SESSION_TYPE,wayland"
# nvidia
"LIBVA_DRIVER_NAME,nvidia" "LIBVA_DRIVER_NAME,nvidia"
"env = XDG_SESSION_TYPE,wayland" "XDG_SESSION_TYPE,wayland"
"GBM_BACKEND,nvidia-drm" "GBM_BACKEND,nvidia-drm"
"__GLX_VENDOR_LIBRARY_NAME,nvidia" "__GLX_VENDOR_LIBRARY_NAME,nvidia"
"WLR_NO_HARDWARE_CURSORS,1" "WLR_NO_HARDWARE_CURSORS,1"
# sdl
"SDL_VIDEODRIVER,wayland"
# qt
"QT_QPA_PLATFORM,wayland-egl"
# "QT_QPA_PLATFORM,wayland"
"QT_WAYLAND_DISABLE_WINDOWDECORATION,1"
# java
"_JAVA_AWT_WM_NONREPARENTING,1"
"_JAVA_OPTIONS,\"-Dawt.useSystemAAFontSettings=on\""
]; ];
"exec-once" = with pkgs; [ "exec-once" = with pkgs; [
"${swaybg}/bin/swaybg -m fill -i ${common.wallpaper}" "${swaybg}/bin/swaybg -m fill -i ${common.wallpaper}"

View file

@ -3,11 +3,15 @@ let
common = (import ../common.nix) { pkgs = pkgs; lib = lib; }; common = (import ../common.nix) { pkgs = pkgs; lib = lib; };
in in
{ {
# alacritty - a cross-platform, GPU-accelerated terminal emulator
programs.alacritty = { programs.alacritty = {
enable = true; enable = true;
# custom settings
settings = { settings = {
import = [
# Available themes:
# https://github.com/alacritty/alacritty-theme
"${pkgs.alacritty-theme}/atom_one_light.toml"
];
env.TERM = "xterm-256color"; env.TERM = "xterm-256color";
font = { font = {
size = 12; size = 12;

View file

@ -27,6 +27,7 @@ in
"window.titleBarStyle" = "custom"; "window.titleBarStyle" = "custom";
"window.menuBarVisibility" = "toggle"; "window.menuBarVisibility" = "toggle";
"workbench.colorTheme" = "Default Light Modern";
"workbench.iconTheme" = "material-icon-theme"; "workbench.iconTheme" = "material-icon-theme";
"extensions.ignoreRecommendations" = true; "extensions.ignoreRecommendations" = true;

View file

@ -0,0 +1,41 @@
# Color codes:
# https://upload.wikimedia.org/wikipedia/commons/1/15/Xterm_256color_chart.svg
user: 230
group: 187
permission:
read: dark_green
write: dark_yellow
exec: dark_red
exec-sticky: 5
no-access: 245
octal: 6
acl: dark_cyan
context: cyan
date:
hour-old: 40
day-old: 42
older: 36
size:
none: 245
small: 229
medium: 216
large: 172
inode:
valid: 13
invalid: 245
links:
valid: 13
invalid: 245
tree-edge: 245
git-status:
default: 245
unmodified: 245
ignored: 245
new-in-index: dark_green
new-in-workdir: dark_green
typechange: dark_yellow
deleted: dark_red
renamed: dark_green
modified: dark_yellow
conflicted: dark_red

View file

@ -0,0 +1,16 @@
{ ... }: {
xdg.configFile."lsd/colors.yaml" = {
source = ./light.yaml;
};
programs.lsd = {
enable = true;
settings = {
color = {
theme = "custom";
};
};
};
}

View file

@ -0,0 +1,41 @@
# Color codes:
# https://upload.wikimedia.org/wikipedia/commons/1/15/Xterm_256color_chart.svg
user: 70
group: 58
permission:
read: dark_green
write: dark_yellow
exec: dark_red
exec-sticky: 5
no-access: 245
octal: 6
acl: dark_cyan
context: cyan
date:
hour-old: 40
day-old: 42
older: 36
size:
none: 245
small: 70
medium: 214
large: 166
inode:
valid: 13
invalid: 245
links:
valid: 13
invalid: 245
tree-edge: 245
git-status:
default: 245
unmodified: 245
ignored: 245
new-in-index: dark_green
new-in-workdir: dark_green
typechange: dark_yellow
deleted: dark_red
renamed: dark_green
modified: dark_yellow
conflicted: dark_red