diff --git a/CMakeLists.txt b/CMakeLists.txt index f2d5a51..495944d 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -26,6 +26,6 @@ add_executable(yo_dwm src/movestack.c src/transient.c src/util.c - src/util.h src/keys/mouse.c src/keys/mouse.h src/keys/functions.h src/dwm.h) + src/util.h src/keys/mouse.c src/keys/mouse.h src/keys/functions.h src/dwm.h src/colors/dracula.h) target_link_libraries(yo_dwm X11 Xft Xinerama) diff --git a/src/colors.h b/src/colors/defualt.h similarity index 100% rename from src/colors.h rename to src/colors/defualt.h diff --git a/src/colors/dracula.h b/src/colors/dracula.h new file mode 100644 index 0000000..ec213e2 --- /dev/null +++ b/src/colors/dracula.h @@ -0,0 +1,28 @@ +// +// Created by anas on 10/31/22. +// +// inspired from: https://github.com/0x73hahd/dwm-config/blob/dev/source/colors/dracula.h + +#ifndef DRACULA_H +#define DRACULA_H + +static const char norm_fg[] = "#ff79c6"; +static const char norm_bg[] = "#282a36"; +static const char norm_border[] = "#282a36"; + +static const char sel_fg[] = "#ffb86c"; +static const char sel_bg[] = "#282a36"; +static const char sel_border[] = "#ffb86c"; + +static const char urg_fg[] = "#e4ded4"; +static const char urg_bg[] = "#313036"; +static const char urg_border[] = "#312e36"; + +static const char *colors[][3] = { + /* fg bg border */ + [SchemeNorm] = {norm_fg, norm_bg, norm_border}, // unfocused wins + [SchemeSel] = {sel_fg, sel_bg, sel_border}, // the focused win + [SchemeUrg] = {urg_fg, urg_bg, urg_border}, +}; + +#endif //DRACULA_H diff --git a/src/config.h b/src/config.h index 87aebcf..08e41b9 100644 --- a/src/config.h +++ b/src/config.h @@ -23,7 +23,7 @@ static const char dmenufont[] = "monospace:size=8"; #include #endif -#include "colors.h" +#include "colors/defualt.h" // Autostart programs static const char *const autostart[] = { @@ -51,12 +51,12 @@ static const Rule rules[] = { * WM_NAME(STRING) = title */ /* class instance title tags mask isfloating monitor */ - {"Gimp", NULL, NULL, 9, 1, -1}, + {"Gimp", NULL, NULL, 9 << 9, 1, -1}, // { WEBBROWSER, NULL, NULL, 1 << 8, 0, -1 }, - {"Tor Browser", NULL, NULL, 10, 0, -1}, - {"keepassxc", NULL, NULL, 10, 0, -1}, - {"firefoxdeveloperedition", NULL, NULL, 1 << 6, 0, -1}, - {"discord", NULL, NULL, 4 << 5, 0, -1}, + {"Tor Browser", NULL, NULL, 9, 0, -1}, + {"keepassxc", NULL, NULL, 9, 0, -1}, + {"firefoxdeveloperedition", NULL, NULL, 6 << 9, 0, -1}, + {"discord", NULL, NULL, 4 << 9, 0, -1}, }; @@ -69,7 +69,7 @@ static const char *dmenucmd[] = {"dmenu_run", "-m", dmenumon, "-fn", dmenufont, "-nf", norm_fg, "-sb", sel_bg, "-sf", sel_fg, NULL}; static const char *termcmd[] = {TERMINAL, NULL}; /* layout(s) */ -static const float mfact = 0.55; /* factor of master area size [0.05..0.95] */ +static const float mfact = 0.55f; /* factor of master area size [0.05..0.95] */ static const int nmaster = 1; /* number of clients in master area */ static const int resizehints = 1; /* 1 means respect size hints in tiled resizals */ static const int lockfullscreen = 1; /* 1 will force focus on the fullscreen window */