Add dracula theme and fix the rules
This commit is contained in:
		
							parent
							
								
									99f899be42
								
							
						
					
					
						commit
						a7d9d11968
					
				
					 4 changed files with 36 additions and 8 deletions
				
			
		| 
						 | 
					@ -26,6 +26,6 @@ add_executable(yo_dwm
 | 
				
			||||||
        src/movestack.c
 | 
					        src/movestack.c
 | 
				
			||||||
        src/transient.c
 | 
					        src/transient.c
 | 
				
			||||||
        src/util.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)
 | 
					target_link_libraries(yo_dwm X11 Xft Xinerama)
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
							
								
								
									
										28
									
								
								src/colors/dracula.h
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										28
									
								
								src/colors/dracula.h
									
										
									
									
									
										Normal file
									
								
							| 
						 | 
					@ -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
 | 
				
			||||||
							
								
								
									
										14
									
								
								src/config.h
									
										
									
									
									
								
							
							
						
						
									
										14
									
								
								src/config.h
									
										
									
									
									
								
							| 
						 | 
					@ -23,7 +23,7 @@ static const char dmenufont[] = "monospace:size=8";
 | 
				
			||||||
#include <stddef.h>
 | 
					#include <stddef.h>
 | 
				
			||||||
#endif
 | 
					#endif
 | 
				
			||||||
 | 
					
 | 
				
			||||||
#include "colors.h"
 | 
					#include "colors/defualt.h"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
// Autostart programs
 | 
					// Autostart programs
 | 
				
			||||||
static const char *const autostart[] = {
 | 
					static const char *const autostart[] = {
 | 
				
			||||||
| 
						 | 
					@ -51,12 +51,12 @@ static const Rule rules[] = {
 | 
				
			||||||
         *	WM_NAME(STRING) = title
 | 
					         *	WM_NAME(STRING) = title
 | 
				
			||||||
         */
 | 
					         */
 | 
				
			||||||
        /* class      instance    title       tags mask     isfloating   monitor */
 | 
					        /* 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 },
 | 
					        // { WEBBROWSER, NULL,       NULL,       1 << 8,       0,           -1 },
 | 
				
			||||||
        {"Tor Browser",             NULL, NULL, 10,     0, -1},
 | 
					        {"Tor Browser",             NULL, NULL, 9,     0, -1},
 | 
				
			||||||
        {"keepassxc",               NULL, NULL, 10,     0, -1},
 | 
					        {"keepassxc",               NULL, NULL, 9,     0, -1},
 | 
				
			||||||
        {"firefoxdeveloperedition", NULL, NULL, 1 << 6, 0, -1},
 | 
					        {"firefoxdeveloperedition", NULL, NULL, 6 << 9, 0, -1},
 | 
				
			||||||
        {"discord",                 NULL, NULL, 4 << 5, 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};
 | 
					                                 "-nf", norm_fg, "-sb", sel_bg, "-sf", sel_fg, NULL};
 | 
				
			||||||
static const char *termcmd[] = {TERMINAL, NULL};
 | 
					static const char *termcmd[] = {TERMINAL, NULL};
 | 
				
			||||||
/* layout(s) */
 | 
					/* 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 nmaster = 1;    /* number of clients in master area */
 | 
				
			||||||
static const int resizehints = 1;    /* 1 means respect size hints in tiled resizals */
 | 
					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 */
 | 
					static const int lockfullscreen = 1; /* 1 will force focus on the fullscreen window */
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue