new theme

This commit is contained in:
Kopatz
2025-03-16 15:13:58 +01:00
parent 7d3f9b37a0
commit 4d4f5c2a24
12 changed files with 92 additions and 67 deletions

View File

@@ -100,7 +100,6 @@
./modules/graphical/stylix.nix ./modules/graphical/stylix.nix
nixos-cosmic.nixosModules.default nixos-cosmic.nixosModules.default
./modules/graphical/cosmic.nix ./modules/graphical/cosmic.nix
({ outputs, ... }: { stylix.image = ./yuyukowallpaper.png; })
]; ];
specialArgs = specialArgs // { inherit inputs outputs; }; specialArgs = specialArgs // { inherit inputs outputs; };
}; };

View File

@@ -288,6 +288,7 @@ in {
##"immediate, class:^(Risk.*)$" ##"immediate, class:^(Risk.*)$"
"stayfocused,class:(steam_app_107410)" "stayfocused,class:(steam_app_107410)"
"immediate, class:^tetrio-desktop$" "immediate, class:^tetrio-desktop$"
"opacity 0.85, class:thunar"
]; ];
exec-once = [ exec-once = [

View File

@@ -4,8 +4,8 @@
padding-right: 5px; padding-right: 5px;
color: @peach; color: @peach;
font-weight: bold; font-weight: bold;
background-color: @surface0; background-color: @backgound;
border: 2px solid @surface1; border: 2px solid @border;
} }
#custom-notification, #custom-notification,
@@ -30,7 +30,7 @@
} }
#pulseaudio{ #pulseaudio{
color: @green; color: @lighttext;
} }
#custom-github { #custom-github {

View File

@@ -8,10 +8,11 @@
margin: 0 0.5em; margin: 0 0.5em;
padding-left: 5px; padding-left: 5px;
padding-right: 5px; padding-right: 5px;
color: @peach; /*color: @peach;*/
color: @text;
font-weight: bold; font-weight: bold;
background-color: @surface0; background-color: @background;
border: 2px solid @surface1; border: 2px solid @border;
} }
#battery, #battery,
#backlight #backlight
@@ -19,12 +20,16 @@
#memory, #memory,
#temperature, #temperature,
#disk, #disk,
#nvidia, #custom-amd-gpu,
#custom-nvidia,
#memory,
#network { #network {
color: @text;
padding: 0 0.5em; padding: 0 0.5em;
} }
/* Unique colors for modules */ /* Unique colors for modules */
/*
#cpu { #cpu {
color: @red; color: @red;
} }
@@ -46,7 +51,7 @@
#custom-amd-gpu { #custom-amd-gpu {
color: @amdgpu-red; color: @amdgpu-red;
} } */
#network.disconnected { #network.disconnected {
background-color: #f53c3c; background-color: #f53c3c;

View File

@@ -94,6 +94,7 @@ box {
#clock { #clock {
font-size: 16px; font-size: 16px;
font-weight: 900; font-weight: 900;
color: @text;
} }
#custom-separator-right, #custom-separator-right,

View File

@@ -4,16 +4,21 @@
* *
*/ */
@define-color base #24273a; /*@define-color base #24273a;*/
@define-color base @base01;
@define-color mantle #1e2030; @define-color mantle #1e2030;
@define-color crust #181926; @define-color crust #181926;
@define-color text #cad3f5; /*@define-color text #cad3f5;*/
@define-color text @base04;
@define-color lighttext @base05;
@define-color subtext0 #b8c0e0; @define-color subtext0 #b8c0e0;
@define-color subtext1 #a5adcb; @define-color subtext1 #a5adcb;
@define-color surface0 #363a4f; /*@define-color surface0 #363a4f;*/
@define-color surface1 #494d64; @define-color background @base;
/*@define-color surface1 #494d64;*/
@define-color border @base02;
@define-color surface2 #5b6078; @define-color surface2 #5b6078;
@define-color overlay0 #6e738d; @define-color overlay0 #6e738d;

View File

@@ -4,8 +4,8 @@
padding-right: 5px; padding-right: 5px;
color: @peach; color: @peach;
font-weight: bold; font-weight: bold;
background-color: @surface0; background-color: @background;
border: 2px solid @surface1; border: 2px solid @border;
} }
#workspaces label { #workspaces label {
@@ -15,7 +15,7 @@
#workspaces button { #workspaces button {
padding: 0 0.5em; padding: 0 0.5em;
background-color: @surface0; background-color: @background;
color: @text; color: @text;
margin: 0.25em; margin: 0.25em;
} }
@@ -25,14 +25,15 @@
color: @overlay0; color: @overlay0;
} }
#workspaces button.visible { /*#workspaces button.visible {
/* background-color: @surface2; */ background-color: @surface2;
color: @blue; color: @blue;
} }*/
#workspaces button.visible,
#workspaces button.focused,
#workspaces button.active { #workspaces button.active {
/* background-color: @surface2; */ /* background-color: @surface2; */
color: @green; color: @lighttext;
} }
#workspaces button.urgent { #workspaces button.urgent {

View File

@@ -4,7 +4,11 @@ let cfg = osConfig.custom.graphical.hyprland;
in { in {
config = let config = let
# styles from https://github.com/khaneliman/khanelinix/blob/8375f8cfbe5bfd87565b4dc34c9d30630c17336d/modules/home/desktop/addons/waybar/default.nix # styles from https://github.com/khaneliman/khanelinix/blob/8375f8cfbe5bfd87565b4dc34c9d30630c17336d/modules/home/desktop/addons/waybar/default.nix
theme = builtins.readFile ./styles/catppuccin.css; base16 = config.stylix.base16Scheme;
readAndReplace = path: replace: builtins.readFile (pkgs.replaceVars path replace);
# base 1, 7, 0
#theme = readAndReplace ./styles/theme.css { BASE="#5c4133"; BORDER="#fef1de"; TEXT="#dab353";};
theme = builtins.readFile ./styles/theme.css;
style = builtins.readFile ./styles/style.css; style = builtins.readFile ./styles/style.css;
notificationsStyle = builtins.readFile ./styles/notifications.css; notificationsStyle = builtins.readFile ./styles/notifications.css;
powerStyle = builtins.readFile ./styles/power.css; powerStyle = builtins.readFile ./styles/power.css;

View File

@@ -1,5 +1,6 @@
{ osConfig, pkgs, config, lib, ... }: { osConfig, pkgs, config, lib, ... }:
let cfg = osConfig.custom.graphical.stylix; let cfg = osConfig.custom.graphical.stylix;
base16 = config.stylix.base16Scheme;
in { in {
config = lib.mkIf cfg.enable { config = lib.mkIf cfg.enable {
stylix = { stylix = {
@@ -7,13 +8,17 @@ in {
targets = { targets = {
hyprlock.enable = false; hyprlock.enable = false;
hyprland.enable = false; hyprland.enable = false;
waybar.enable = false; waybar = {
enable = true;
addCss = false;
};
gtk.flatpakSupport.enable = true; #edits ~/.themes/adw-gtk3 gtk.flatpakSupport.enable = true; #edits ~/.themes/adw-gtk3
}; };
}; };
wayland.windowManager.hyprland.settings.env = lib.mkIf osConfig.custom.graphical.hyprland.enable [ wayland.windowManager.hyprland.settings = lib.mkIf osConfig.custom.graphical.hyprland.enable {
"GTK_THEME,adw-gtk3" env = ["GTK_THEME,adw-gtk3"];
]; general."col.active_border" = lib.mkForce "rgb(${base16.base07}) rgb(${base16.base04}) 45deg";
};
}; };
} }

View File

@@ -12,6 +12,7 @@ in {
}; };
override = mkOption { override = mkOption {
type = types.attrs; type = types.attrs;
#default = {};
default = { default = {
base08 = "ed8796"; # red base08 = "ed8796"; # red
base09 = "f5a97f"; # peach base09 = "f5a97f"; # peach

View File

@@ -83,7 +83,10 @@
#cosmic.enable = true; #cosmic.enable = true;
shared.enable = true; shared.enable = true;
basics.enable = true; basics.enable = true;
stylix.enable = true; stylix = {
enable = true;
image = ../../tsukasa.jpg;
};
}; };
}; };
services.ollama = { services.ollama = {

BIN
tsukasa.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 397 KiB