[update] Use the dracula theam
This commit is contained in:
		
							parent
							
								
									639c18a095
								
							
						
					
					
						commit
						a23133608a
					
				
					 1 changed files with 74 additions and 59 deletions
				
			
		
							
								
								
									
										133
									
								
								src/config.h
									
										
									
									
									
								
							
							
						
						
									
										133
									
								
								src/config.h
									
										
									
									
									
								
							| 
						 | 
				
			
			@ -1,21 +1,27 @@
 | 
			
		|||
#ifndef CONFIG_H
 | 
			
		||||
#define CONFIG_H
 | 
			
		||||
/* def */
 | 
			
		||||
#define TERMINAL        "kitty"
 | 
			
		||||
#define TERMINAL "kitty"
 | 
			
		||||
 | 
			
		||||
/* appearance */
 | 
			
		||||
static const unsigned int borderpx = 1;        /* border pixel of windows */
 | 
			
		||||
static const unsigned int gappx = 3;        /* gaps size between windows */
 | 
			
		||||
static const unsigned int snap = 32;       /* snap pixel */
 | 
			
		||||
static const unsigned int systraypinning = 0;   /* 0: sloppy systray follows selected monitor, >0: pin systray to monitor X */
 | 
			
		||||
static const unsigned int systrayonleft = 0;    /* 0: systray in the right corner, >0: systray on left of status text */
 | 
			
		||||
static const unsigned int systrayspacing = 2;   /* systray spacing */
 | 
			
		||||
static const int systraypinningfailfirst = 1;   /* 1: if pinning fails, display systray on the first monitor, False: display systray on the last monitor*/
 | 
			
		||||
static const int showsystray = 1;     /* 0 means no systray */
 | 
			
		||||
static const int showbar = 1;        /* 0 means no bar */
 | 
			
		||||
static const int topbar = 1;        /* 0 means bottom bar */
 | 
			
		||||
static const char *fonts[] = {"monospace:size=7", "Noto Color Emoji:size=8",
 | 
			
		||||
                              "Nerd Font Mono:size=16:antialias=true:hinting=true"};
 | 
			
		||||
static const unsigned int borderpx = 1; /* border pixel of windows */
 | 
			
		||||
static const unsigned int gappx = 3;    /* gaps size between windows */
 | 
			
		||||
static const unsigned int snap = 32;    /* snap pixel */
 | 
			
		||||
static const unsigned int systraypinning =
 | 
			
		||||
    0; /* 0: sloppy systray follows selected monitor, >0: pin systray to monitor
 | 
			
		||||
          X */
 | 
			
		||||
static const unsigned int systrayonleft =
 | 
			
		||||
    0; /* 0: systray in the right corner, >0: systray on left of status text */
 | 
			
		||||
static const unsigned int systrayspacing = 2; /* systray spacing */
 | 
			
		||||
static const int systraypinningfailfirst =
 | 
			
		||||
    1; /* 1: if pinning fails, display systray on the first monitor, False:
 | 
			
		||||
          display systray on the last monitor*/
 | 
			
		||||
static const int showsystray = 1; /* 0 means no systray */
 | 
			
		||||
static const int showbar = 1;     /* 0 means no bar */
 | 
			
		||||
static const int topbar = 1;      /* 0 means bottom bar */
 | 
			
		||||
static const char *fonts[] = {
 | 
			
		||||
    "monospace:size=7", "Noto Color Emoji:size=8",
 | 
			
		||||
    "Nerd Font Mono:size=16:antialias=true:hinting=true"};
 | 
			
		||||
static const char dmenufont[] = "monospace:size=8";
 | 
			
		||||
 | 
			
		||||
#ifndef STDDEF_H
 | 
			
		||||
| 
						 | 
				
			
			@ -24,63 +30,72 @@ static const char dmenufont[] = "monospace:size=8";
 | 
			
		|||
 | 
			
		||||
#endif
 | 
			
		||||
 | 
			
		||||
#include "colors/defualt.h"
 | 
			
		||||
#include "colors/dracula.h"
 | 
			
		||||
 | 
			
		||||
// Autostart programs
 | 
			
		||||
static const char *const autostart[] = {
 | 
			
		||||
        // Start my build of slstatus
 | 
			
		||||
        "slstatus", NULL,
 | 
			
		||||
        // Keyboard layouts switch (requires setxkbmap)
 | 
			
		||||
        "setxkbmap", "-model", "pc101", "-layout", "us,ar", "-variant", ",,", "-option", "grp:win_space_toggle", NULL,
 | 
			
		||||
        // "xkbset", "exp", "=sticky", "-twokey", "-latchlock", NULL, // sticky keys
 | 
			
		||||
        "/bin/stickykeys", NULL, // sticky keys script
 | 
			
		||||
        // "picom", NULL, // Start compositor , for transparency
 | 
			
		||||
        "nitrogen", "--restore", NULL, // Restores the wallpaper
 | 
			
		||||
        "nm-applet", NULL, // Start the network manger
 | 
			
		||||
        "copyq", NULL, // clipboard manger
 | 
			
		||||
        NULL /* terminate */
 | 
			
		||||
    // Start my build of slstatus
 | 
			
		||||
    "slstatus", NULL,
 | 
			
		||||
    // Keyboard layouts switch (requires setxkbmap)
 | 
			
		||||
    // "setxkbmap", "-model", "pc101", "-layout", "us,ar", "-variant", ",,",
 | 
			
		||||
    // "-option", "grp:win_space_toggle", NULL,
 | 
			
		||||
    // "xkbset", "exp", "=sticky", "-twokey", "-latchlock", NULL, // sticky keys
 | 
			
		||||
    "/bin/stickykeys", NULL, // sticky keys script
 | 
			
		||||
    // "picom", NULL, // Start compositor , for transparency
 | 
			
		||||
    "nitrogen", "--restore", NULL, // Restores the wallpaper
 | 
			
		||||
    "nm-applet", NULL,             // Start the network manger
 | 
			
		||||
    "copyq", NULL,                 // clipboard manger
 | 
			
		||||
    NULL                           /* terminate */
 | 
			
		||||
};
 | 
			
		||||
 | 
			
		||||
/* tagging */
 | 
			
		||||
// static const char *tags[] = { "I", "II", "III", "IV", "V", "VI", "VII", "VIII", "IX" };
 | 
			
		||||
// static const char *tags[] = { "", "", "", "", "", "", "", "", "" };
 | 
			
		||||
static const char *tags[] = {"www", "dev", "sys", "chat", "lab", "vid", "mus", "vbox", "gfx", ";"};
 | 
			
		||||
// static const char *tags[] = { "I", "II", "III", "IV", "V", "VI", "VII",
 | 
			
		||||
// "VIII", "IX" }; static const char *tags[] = { "", "", "", "",
 | 
			
		||||
// "", "", "", "", "" };
 | 
			
		||||
static const char *tags[] = {"www", "dev", "sys",  "chat", "lab",
 | 
			
		||||
                             "vid", "mus", "vbox", "gfx",  ";"};
 | 
			
		||||
 | 
			
		||||
static const Rule rules[] = {
 | 
			
		||||
        /* xprop(1):
 | 
			
		||||
         *	WM_CLASS(STRING) = instance, class
 | 
			
		||||
         *	WM_NAME(STRING) = title
 | 
			
		||||
         *	It's just a bitwise shift. Binary of 5 is 101, then you shift it left on 6 and get 101000000,
 | 
			
		||||
         *	which means 7 and 9 in dwm ( because 1-s are on 7 and 9 position from right).
 | 
			
		||||
         *	https://www.reddit.com/r/dwm/comments/f2omo9/comment/fjr93yt/?utm_source=share&utm_medium=web2x&context=3
 | 
			
		||||
         */
 | 
			
		||||
        /* class      instance    title       tags mask     isfloating   monitor */
 | 
			
		||||
        {"Gimp", NULL, NULL, 9 << 8, 1, -1}, // 0100000000 (gfx tag)
 | 
			
		||||
        {"Tor Browser", "Navigator", NULL, 9 << 9, 0, -1}, // Open it in tag 10 (9 in array) (; tag)
 | 
			
		||||
        {"KeePassXC", "keepassxc", NULL, 9 << 9, 0, -1}, // 1000000000 (; tag)
 | 
			
		||||
        {"firefoxdeveloperedition", "Navigator",  NULL, 1 << 0, 0, -1}, // 0000000001 (www tag)
 | 
			
		||||
        {"discord", NULL, NULL, 4 << 1, 0, -1}, // 0000001000 (chat tag)
 | 
			
		||||
        {"Virt-manager", "virt-manager", NULL, 9 << 7, 0, -1}, // 0010000000 (vbox tag)
 | 
			
		||||
        {"VirtualBox Manager", "VirtualBox Manager", NULL, 9 << 7, 0, -1}, // 0010000000 (vbox tag)
 | 
			
		||||
        {NULL, "open.spotify.com", NULL, 8 << 3, 0, -1}, // 0001000000 (mus tag)
 | 
			
		||||
        {"cmus", NULL, NULL, 8 << 3, 0, -1}, // 0001000000 (mus tag)
 | 
			
		||||
        {"jetbrains-clion", NULL, NULL, 1 << 1, 0, -1}, // 0000000010 (dev tag)
 | 
			
		||||
        {"jetbrains-idea", NULL, NULL, 1 << 1, 0, -1}, // 0000000010 (dev tag)
 | 
			
		||||
        {"jetbrains-pycharm", NULL, NULL, 1 << 1, 0, -1}, // 0000000010 (dev tag)
 | 
			
		||||
        {"jetbrains-studio", NULL, NULL, 1 << 1, 0, -1}, // 0000000010 (dev tag)
 | 
			
		||||
        {"jetbrains-webstorm", NULL, NULL, 1 << 1, 0, -1}, // 0000000010 (dev tag)
 | 
			
		||||
        {"jetbrains-phpstorm", NULL, NULL, 1 << 1, 0, -1}, // 0000000010 (dev tag)
 | 
			
		||||
        {"jetbrains-rubymine", NULL, NULL, 1 << 1, 0, -1}, // 0000000010 (dev tag)
 | 
			
		||||
        {"jetbrains-goland", NULL, NULL, 1 << 1, 0, -1}, // 0000000010 (dev tag)
 | 
			
		||||
        {"jetbrains-datagrip", NULL, NULL, 1 << 1, 0, -1}, // 0000000010 (dev tag)
 | 
			
		||||
        {"PacketTracer", NULL, NULL, 1 << 4, 0, -1} // 0000010000 (lab tag)
 | 
			
		||||
    /* xprop(1):
 | 
			
		||||
     *	WM_CLASS(STRING) = instance, class
 | 
			
		||||
     *	WM_NAME(STRING) = title
 | 
			
		||||
     *	It's just a bitwise shift. Binary of 5 is 101, then you shift it left on
 | 
			
		||||
     *6 and get 101000000, which means 7 and 9 in dwm ( because 1-s are on 7 and
 | 
			
		||||
     *9 position from right).
 | 
			
		||||
     *	https://www.reddit.com/r/dwm/comments/f2omo9/comment/fjr93yt/?utm_source=share&utm_medium=web2x&context=3
 | 
			
		||||
     */
 | 
			
		||||
    /* class      instance    title       tags mask     isfloating   monitor */
 | 
			
		||||
    {"Gimp", NULL, NULL, 9 << 8, 1, -1}, // 0100000000 (gfx tag)
 | 
			
		||||
    {"Tor Browser", "Navigator", NULL, 9 << 9, 0,
 | 
			
		||||
     -1}, // Open it in tag 10 (9 in array) (; tag)
 | 
			
		||||
    {"KeePassXC", "keepassxc", NULL, 9 << 9, 0, -1}, // 1000000000 (; tag)
 | 
			
		||||
    {"firefoxdeveloperedition", "Navigator", NULL, 1 << 0, 0,
 | 
			
		||||
     -1},                                   // 0000000001 (www tag)
 | 
			
		||||
    {"discord", NULL, NULL, 4 << 1, 0, -1}, // 0000001000 (chat tag)
 | 
			
		||||
    {"Virt-manager", "virt-manager", NULL, 9 << 7, 0,
 | 
			
		||||
     -1}, // 0010000000 (vbox tag)
 | 
			
		||||
    {"VirtualBox Manager", "VirtualBox Manager", NULL, 9 << 7, 0,
 | 
			
		||||
     -1},                                              // 0010000000 (vbox tag)
 | 
			
		||||
    {NULL, "open.spotify.com", NULL, 8 << 3, 0, -1},   // 0001000000 (mus tag)
 | 
			
		||||
    {"cmus", NULL, NULL, 8 << 3, 0, -1},               // 0001000000 (mus tag)
 | 
			
		||||
    {"jetbrains-clion", NULL, NULL, 1 << 1, 0, -1},    // 0000000010 (dev tag)
 | 
			
		||||
    {"jetbrains-idea", NULL, NULL, 1 << 1, 0, -1},     // 0000000010 (dev tag)
 | 
			
		||||
    {"jetbrains-pycharm", NULL, NULL, 1 << 1, 0, -1},  // 0000000010 (dev tag)
 | 
			
		||||
    {"jetbrains-studio", NULL, NULL, 1 << 1, 0, -1},   // 0000000010 (dev tag)
 | 
			
		||||
    {"jetbrains-webstorm", NULL, NULL, 1 << 1, 0, -1}, // 0000000010 (dev tag)
 | 
			
		||||
    {"jetbrains-phpstorm", NULL, NULL, 1 << 1, 0, -1}, // 0000000010 (dev tag)
 | 
			
		||||
    {"jetbrains-rubymine", NULL, NULL, 1 << 1, 0, -1}, // 0000000010 (dev tag)
 | 
			
		||||
    {"jetbrains-goland", NULL, NULL, 1 << 1, 0, -1},   // 0000000010 (dev tag)
 | 
			
		||||
    {"jetbrains-datagrip", NULL, NULL, 1 << 1, 0, -1}, // 0000000010 (dev tag)
 | 
			
		||||
    {"PacketTracer", NULL, NULL, 1 << 4, 0, -1}        // 0000010000 (lab tag)
 | 
			
		||||
};
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
/* layout(s) */
 | 
			
		||||
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 */
 | 
			
		||||
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 */
 | 
			
		||||
 | 
			
		||||
#endif // CONFIG_H
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue