theme dms with stylix
This commit is contained in:
@@ -53,8 +53,8 @@ in {
|
|||||||
mkEnableOption "enable DankMaterialShell";
|
mkEnableOption "enable DankMaterialShell";
|
||||||
};
|
};
|
||||||
config = mkIf cfg.enable {
|
config = mkIf cfg.enable {
|
||||||
stylix.targets.gtk.enable = false;
|
# stylix.targets.gtk.enable = false;
|
||||||
stylix.targets.qt.enable = false;
|
# stylix.targets.qt.enable = false;
|
||||||
|
|
||||||
# stylix.targets.niri.enable = false;
|
# stylix.targets.niri.enable = false;
|
||||||
|
|
||||||
@@ -84,18 +84,42 @@ in {
|
|||||||
pwvucontrol # pipewire gui in rust
|
pwvucontrol # pipewire gui in rust
|
||||||
wdisplays # wlroots display configurator
|
wdisplays # wlroots display configurator
|
||||||
];
|
];
|
||||||
gtk = {
|
# gtk = {
|
||||||
enable = true;
|
# enable = true;
|
||||||
theme = {
|
# theme = {
|
||||||
name = "adw-gtk3";
|
# name = "adw-gtk3";
|
||||||
package = pkgs.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 = {
|
xdg = {
|
||||||
configFile = {
|
|
||||||
# niri = import ./niri.nix commonArgs;
|
|
||||||
"mimeapps.list".force = true;
|
|
||||||
};
|
|
||||||
mime.enable = true;
|
mime.enable = true;
|
||||||
mimeApps = {
|
mimeApps = {
|
||||||
enable = true;
|
enable = true;
|
||||||
@@ -279,6 +303,10 @@ in {
|
|||||||
allow-when-locked = true;
|
allow-when-locked = true;
|
||||||
action = dms-ipc "audio" "mute";
|
action = dms-ipc "audio" "mute";
|
||||||
};
|
};
|
||||||
|
"Shift+XF86AudioMute" = {
|
||||||
|
allow-when-locked = true;
|
||||||
|
action = dms-ipc "audio" "micmute";
|
||||||
|
};
|
||||||
"XF86AudioMicMute" = {
|
"XF86AudioMicMute" = {
|
||||||
allow-when-locked = true;
|
allow-when-locked = true;
|
||||||
action = dms-ipc "audio" "micmute";
|
action = dms-ipc "audio" "micmute";
|
||||||
@@ -303,6 +331,10 @@ in {
|
|||||||
|
|
||||||
"Mod+Return" = {action = sh "$TERMINAL";};
|
"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" = {
|
"Mod+Ctrl+Space" = {
|
||||||
repeat = false;
|
repeat = false;
|
||||||
action = toggle-overview;
|
action = toggle-overview;
|
||||||
|
|||||||
Reference in New Issue
Block a user