theme dms with stylix

This commit is contained in:
2025-11-29 17:29:53 +02:00
parent b2286df218
commit 36e6ab1e77

View File

@@ -53,8 +53,8 @@ in {
mkEnableOption "enable DankMaterialShell";
};
config = mkIf cfg.enable {
stylix.targets.gtk.enable = false;
stylix.targets.qt.enable = false;
# stylix.targets.gtk.enable = false;
# stylix.targets.qt.enable = false;
# stylix.targets.niri.enable = false;
@@ -84,18 +84,42 @@ in {
pwvucontrol # pipewire gui in rust
wdisplays # wlroots display configurator
];
gtk = {
enable = true;
theme = {
name = "adw-gtk3";
package = pkgs.adw-gtk3;
};
# gtk = {
# enable = true;
# theme = {
# name = "adw-gtk3";
# package = pkgs.adw-gtk3;
# };
# };
xdg.configFile = {
"DankMaterialShell/stylix.json".source = with config.lib.stylix.colors.withHashtag;
lib.mkIf config.stylix.enable (
pkgs.writers.writeJSON "dms-stylix-theme.json" {
"name" = "Stylix";
"primary" = base0C;
"primaryText" = base00;
"primaryContainer" = base0D;
"secondary" = base0E;
"surface" = base00;
"surfaceText" = base05;
"surfaceVariant" = base01;
"surfaceVariantText" = base04;
"surfaceTint" = base0C;
"background" = base00;
"backgroundText" = base07;
"outline" = base03;
"surfaceContainer" = base01;
"surfaceContainerHigh" = base02;
"error" = base08;
"warning" = base0A;
"info" = base0D;
}
);
# niri = import ./niri.nix commonArgs;
"mimeapps.list".force = true;
};
xdg = {
configFile = {
# niri = import ./niri.nix commonArgs;
"mimeapps.list".force = true;
};
mime.enable = true;
mimeApps = {
enable = true;
@@ -279,6 +303,10 @@ in {
allow-when-locked = true;
action = dms-ipc "audio" "mute";
};
"Shift+XF86AudioMute" = {
allow-when-locked = true;
action = dms-ipc "audio" "micmute";
};
"XF86AudioMicMute" = {
allow-when-locked = true;
action = dms-ipc "audio" "micmute";
@@ -303,6 +331,10 @@ in {
"Mod+Return" = {action = sh "$TERMINAL";};
"Print" = {action = dms-ipc "niri" "screenshot";};
"Ctrl+Print" = {action = dms-ipc "niri" "screenshotScreen";};
"Shift+Print" = {action = dms-ipc "niri" "screenshotWindow";};
"Mod+Ctrl+Space" = {
repeat = false;
action = toggle-overview;