about summary refs log tree commit diff
path: root/modules/nixos/dwm.nix
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--modules/nixos/dwm.nix23
1 files changed, 11 insertions, 12 deletions
diff --git a/modules/nixos/dwm.nix b/modules/nixos/dwm.nix
index 9c5e283..a32ed29 100644
--- a/modules/nixos/dwm.nix
+++ b/modules/nixos/dwm.nix
@@ -18,8 +18,7 @@ in {
       windowManager.command = let
         pkg = pkgs.dwm.override {
           conf = let
-            font = with config.fontScheme.monospaceFont; "${family}:size=${toString size}";
-            colour = config.colourScheme;
+            font = with config.stylix.fonts; "${monospace.name}:size=${toString sizes.terminal}";
           in ''
             static const unsigned int borderpx = 1;
             static const unsigned int snap = 32;
@@ -32,14 +31,14 @@ in {
 
             static const char *colors[][3] = {
               [SchemeNorm] = {
-                "${colour.white}",
-                "${colour.black}",
-                "${colour.black}",
+                "${config.color.base06}",
+                "${config.color.base01}",
+                "${config.color.base01}",
               },
               [SchemeSel] = {
-                "${colour.black}",
-                "${colour.white}",
-                "${colour.white}",
+                "${config.color.base01}",
+                "${config.color.base06}",
+                "${config.color.base06}",
               },
             };
 
@@ -82,10 +81,10 @@ in {
               "${pkgs.dmenu}/bin/dmenu_run",
               "-m", dmenumon,
               "-fn", "${font}",
-              "-nb", "${colour.black}",
-              "-nf", "${colour.white}",
-              "-sb", "${colour.white}",
-              "-sf", "${colour.black}",
+              "-nb", "${config.color.base01}",
+              "-nf", "${config.color.base06}",
+              "-sb", "${config.color.base06}",
+              "-sf", "${config.color.base01}",
               NULL,
             };
             static const char *termcmd[] = {

Consider giving Nix/NixOS a try! <3