feat: add light theme
This commit is contained in:
parent
1e8844c6a3
commit
fdee4f201d
8 changed files with 130 additions and 5 deletions
|
|
@ -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
|
||||||
|
|
|
||||||
|
|
@ -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;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -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}"
|
||||||
|
|
|
||||||
|
|
@ -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;
|
||||||
|
|
|
||||||
|
|
@ -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;
|
||||||
|
|
|
||||||
41
users/gandalf/modules/lsd/dark.yaml
Normal file
41
users/gandalf/modules/lsd/dark.yaml
Normal 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
|
||||||
16
users/gandalf/modules/lsd/default.nix
Normal file
16
users/gandalf/modules/lsd/default.nix
Normal file
|
|
@ -0,0 +1,16 @@
|
||||||
|
{ ... }: {
|
||||||
|
|
||||||
|
xdg.configFile."lsd/colors.yaml" = {
|
||||||
|
source = ./light.yaml;
|
||||||
|
};
|
||||||
|
|
||||||
|
programs.lsd = {
|
||||||
|
enable = true;
|
||||||
|
settings = {
|
||||||
|
color = {
|
||||||
|
theme = "custom";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
}
|
||||||
41
users/gandalf/modules/lsd/light.yaml
Normal file
41
users/gandalf/modules/lsd/light.yaml
Normal 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
|
||||||
Loading…
Add table
Add a link
Reference in a new issue