usability improvements
This commit is contained in:
@@ -52,7 +52,8 @@ in
|
||||
|
||||
stylix = {
|
||||
# Stylix is already enabled since the system is configured to use it
|
||||
# enable = true;
|
||||
enable = true;
|
||||
image = ./../../wallpapers/magicpattern-87PP9Zd7MNo-unsplash.jpg;
|
||||
# don't theme applications by default
|
||||
autoEnable = false;
|
||||
|
||||
@@ -68,8 +69,8 @@ in
|
||||
};
|
||||
|
||||
|
||||
image = ./../../wallpapers/magicpattern-87PP9Zd7MNo-unsplash.jpg;
|
||||
|
||||
polarity = lib.mkDefault "dark";
|
||||
|
||||
fonts = {
|
||||
|
||||
@@ -107,41 +108,75 @@ in
|
||||
popups = 0.9;
|
||||
terminal = cfg.terminalOpacity;
|
||||
};
|
||||
|
||||
base16Scheme = {
|
||||
scheme = "onelight";
|
||||
author = "https://github.com/one-dark";
|
||||
base00 = "#fafafa";
|
||||
base01 = "#f4f4f4";
|
||||
base02 = "#e5e5e6";
|
||||
base03 = "#dfdfe0";
|
||||
base04 = "#d7d7d8";
|
||||
base05 = "#383a42";
|
||||
base06 = "#202227";
|
||||
base07 = "#090a0b";
|
||||
base08 = "#d84a3d";
|
||||
base09 = "#a626a4";
|
||||
base0A = "#c18401";
|
||||
base0B = "#50a14f";
|
||||
base0C = "#0070a8";
|
||||
base0D = "#4078f2";
|
||||
base0E = "#a626a4";
|
||||
base0F = "#986801";
|
||||
};
|
||||
|
||||
targets = {
|
||||
hyprpaper.enable = true;
|
||||
hyprlock.enable = true;
|
||||
# disabled because they overwrite too many settings
|
||||
# gnome
|
||||
# wofi
|
||||
# vscode
|
||||
# waybar
|
||||
# kitty
|
||||
|
||||
fontconfig.enable = true;
|
||||
font-packages.enable = true;
|
||||
|
||||
};
|
||||
};
|
||||
|
||||
stylix.base16Scheme = {
|
||||
scheme = "onelight";
|
||||
author = "https://github.com/one-dark";
|
||||
base00 = "#fafafa";
|
||||
base01 = "#f4f4f4";
|
||||
base02 = "#e5e5e6";
|
||||
base03 = "#dfdfe0";
|
||||
base04 = "#d7d7d8";
|
||||
base05 = "#383a42";
|
||||
base06 = "#202227";
|
||||
base07 = "#090a0b";
|
||||
base08 = "#d84a3d";
|
||||
base09 = "#a626a4";
|
||||
base0A = "#c18401";
|
||||
base0B = "#50a14f";
|
||||
base0C = "#0070a8";
|
||||
base0D = "#4078f2";
|
||||
base0E = "#a626a4";
|
||||
base0F = "#986801";
|
||||
|
||||
};
|
||||
# https://pltanton.dev/posts/2024/02/nix-based-dark-light-theme-switch/
|
||||
home.packages = [
|
||||
(lib.lowPrio (pkgs.writeShellApplication {
|
||||
name = "toggle-theme";
|
||||
runtimeInputs = with pkgs; [ home-manager coreutils ripgrep ];
|
||||
text =
|
||||
''
|
||||
"$(home-manager generations | head -1 | rg -o '/[^ ]*')"/specialisation/light-theme/activate
|
||||
echo "Switched to light theme"
|
||||
'';
|
||||
}))
|
||||
];
|
||||
|
||||
stylix.targets = {
|
||||
hyprpaper.enable = true;
|
||||
hyprlock.enable = true;
|
||||
gnome.enable = true;
|
||||
|
||||
# disabled because they overwrite too many settings
|
||||
# wofi.enable = true;
|
||||
# vscode.enable = true;
|
||||
# waybar.enable = true;
|
||||
# kitty.enable = true;
|
||||
specialisation.light-theme.configuration = {
|
||||
stylix = {
|
||||
polarity = "light";
|
||||
};
|
||||
|
||||
home.packages = [
|
||||
(lib.hiPrio (pkgs.writeShellApplication {
|
||||
name = "toggle-theme";
|
||||
runtimeInputs = with pkgs; [ home-manager coreutils ripgrep ];
|
||||
text =
|
||||
''
|
||||
"$(home-manager generations | head -2 | tail -1 | rg -o '/[^ ]*')"/activate
|
||||
echo "Switched to dark theme"
|
||||
'';
|
||||
}))
|
||||
];
|
||||
};
|
||||
};
|
||||
}
|
||||
|
Reference in New Issue
Block a user