From ccb50b02341a849c63db8b26614b59530d989fdb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C5=82=20Czy=C5=BC?= Date: Fri, 27 Dec 2024 17:40:38 +0100 Subject: [PATCH] fix: compilation fixes --- config.def.h | 46 ++++++++++++++++++++++------------------------ flake.nix | 2 +- patches.def.h | 2 +- 3 files changed, 24 insertions(+), 26 deletions(-) diff --git a/config.def.h b/config.def.h index f10a3a8..449ce11 100644 --- a/config.def.h +++ b/config.def.h @@ -172,35 +172,33 @@ static const char *fonts[] = { "JetBrainsMono Nerd Font:size=16:an #endif // BAR_PANGO_PATCH static const char dmenufont[] = "JetBrainsMono Nerd Font:size=16:antialias=true"; -static char base[] = "#191724"; -static char surface[] = "#1f1d2e"; -static char overlay[] = "#26233a"; - -static char muted[] = "#6e6a86"; -static char subtle[] = "#908caa"; -static char text[] = "#e0def4"; - -static char love[] = "#eb6f92"; -static char gold[] = "#f6c177"; -static char rose[] = "#ebbcba"; -static char pine[] = "#31748f"; -static char foam[] = "#9ccfd8"; -static char iris[] = "#c4a7e7"; - -static char highlightLow[] = "#21202e"; -static char highlightMed[] = "#403d52"; -static char highlightHigh[] = "#524f67"; +#define BASE "#191724" +#define SURFACE "#1f1d2e" +#define OVERLAY "#26233a" +#define MUTED "#6e6a86" +#define SUBTLE "#908caa" +#define TEXT "#e0def4" +#define LOVE "#eb6f92" +#define GOLD "#f6c177" +#define ROSE "#ebbcba" +#define PINE "#31748f" +#define FOAM "#9ccfd8" +#define IRIS "#c4a7e7" + +#define HIGHLIGHT_LOW "#21202e" +#define HIGHLIGHT_MED "#403d52" +#define HIGHLIGHT_HIGH "#524f67" static char c000000[] = "#000000"; // placeholder value -static char normfgcolor[] = text; -static char normbgcolor[] = surface; -static char normbordercolor[] = overlay; -static char normfloatcolor[] = highlightMed; +static char normfgcolor[] = TEXT; +static char normbgcolor[] = SURFACE; +static char normbordercolor[] = OVERLAY; +static char normfloatcolor[] = HIGHLIGHT_MED; -static char selfgcolor[] = ; +static char selfgcolor[] = OVERLAY; static char selbgcolor[] = "#005577"; static char selbordercolor[] = "#005577"; static char selfloatcolor[] = "#005577"; @@ -970,7 +968,7 @@ static const Key keys[] = { { 0, XF86XK_WLAN, spawn, {.v = wlan}}, { 0, XF86XK_Tools, spawn, {.v = tools}}, // { 0, XF86XK_Search, spawn, {.v = search}}, - { 0, XF86XK_LaunchA, alttabstart, {0}}, + /*{ 0, XF86XK_LaunchA, alttabstart, {0}},*/ { 0, XF86XK_Explorer, spawn, {.v = explorer}}, { MODKEY|Mod1Mask, XK_F1, spawn, {.v = upvol}}, { MODKEY|Mod1Mask, XK_F3, spawn, {.v = downvol}}, diff --git a/flake.nix b/flake.nix index 8a2ebbf..63f93e9 100644 --- a/flake.nix +++ b/flake.nix @@ -14,7 +14,7 @@ xorg.libXinerama ]; - makeFlags = [ "CC=${pkgs.gcc}/bin/gcc" ]; + makeFlags = [ "CC=${pkgs.gcc}/bin/cc" ]; installPhase = '' mkdir -p $out/bin diff --git a/patches.def.h b/patches.def.h index f083f20..7fe3d0e 100644 --- a/patches.def.h +++ b/patches.def.h @@ -645,7 +645,7 @@ * This patch takes precedence over the fakefullscreen client patch below. * https://dwm.suckless.org/patches/fakefullscreen/ */ -#define FAKEFULLSCREEN_PATCH 1 +#define FAKEFULLSCREEN_PATCH 0 /* Similarly to the fakefullscreen patch this patch only allows clients to "fullscreen" into * the space currently given to them.