-
Notifications
You must be signed in to change notification settings - Fork 17
/
config.h
executable file
·114 lines (97 loc) · 5.12 KB
/
config.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
/* See LICENSE file for copyright and license details. */
/* Constants */
#define TERMINAL "st"
#define TERMCLASS "St"
/* appearance */
static const unsigned int borderpx = 3; /* border pixel of windows */
static const unsigned int snap = 25; /* snap pixel */
static const unsigned int gappih = 20; /* horiz inner gap between windows */
static const unsigned int gappiv = 10; /* vert inner gap between windows */
static const unsigned int gappoh = 15; /* horiz outer gap between windows and screen edge */
static const unsigned int gappov = 8; /* vert outer gap between windows and screen edge */
static const int swallowfloating = 0; /* 1 means swallow floating windows by default */
static const int smartgaps = 0; /* 1 means no outer gap when there is only one window */
static const int showbar = 1; /* 0 means no bar */
static const int topbar = 1; /* 0 means bottom bar */
static const int user_dh = 80;
static const int docklrmargin = 64;
static const int user_bh = 40; /* 0 means normal bar height, >1 means user bar height */
static const char *fonts[] = { "JetBrains Mono:style=Regular:size=16", "Symbols Nerd Font:style=2048-em:size=23","JoyPixels:size=16:antialias=true:autohint=true"};
static char dmenufont[] = "JetBrains Mono:style=Regular:size=16";
static char dmenuh[] = "40";
#include "patches/themes/catpuccin.h"
/* Default icon width, height, margin and delimiter width */
static const unsigned int sb_icon_wh = 32;
static const unsigned int sb_icon_margin_x = 12;
static const unsigned int sb_delimiter_w = 4;
/* Status bar x y margin */
static const unsigned int sb_padding_x = 12;
static const unsigned int sb_padding_y = 12;
static char *colors[][3] = {
/* fg bg border */
[SchemeNorm] = { black, black, gray2 },
[SchemeSel] = { blue2, green, blue },
[SchemeStatus] = { black, black, "#000000" },
[SchemeTagsSel] = { black, blue, "#000000" },
[SchemeTagsNorm] = { blue, black, "#000000" },
[SchemeInfoSel] = { blue, black, "#000000" },
[SchemeInfoNorm] = { black, black, "#000000" },
[SchemeStatus] = { white, black, "#000000" },
[SchemeOptimal] = { green, black, "#000000" },
[SchemeCritical] = { red, black, "#000000" } ,
};
const char *key_tui[] = {TERMINAL, "-n", "key_tui", "-g", "120x34", "-e", "mandwmtui", "dwm", NULL};
const Config config[] = {
{key_tui, ""},
};
typedef struct {
const char *name;
const void *cmd;
} Sp;
const char *spcmd1[] = {TERMINAL, "-n", "spterm", "-g", "120x34", NULL };
static Sp scratchpads[] = {
/* name cmd */
{"spterm", spcmd1},
};
/* tagging */
static const char *tags[] = { "1", "2", "3", "4", "5", "6", "7", "8", "9" };
/* layout(s) */
static const float mfact = 0.55; /* 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 */
#define FORCE_VSPLIT 1 /* nrowgrid layout: force two clients to always split vertically */
#include "patches/vanitygaps.c"
static const Layout layouts[] = {
/* symbol arrange function */
{ "[]=", tile }, /* Default: Master on left, slaves on right */
{ "TTT", bstack }, /* Master on top, slaves on bottom */
{ "[M]", monocle }, /* All windows on top of eachother */
{ "H[]", deck }, /* Master on left, slaves in monocle-like mode on right */
{ "[@]", spiral }, /* Fibonacci spiral */
{ "[\\]", dwindle }, /* Decreasing in size right and leftward */
{ "|M|", centeredmaster }, /* Master in middle, slaves on sides */
{ ">M>", centeredfloatingmaster }, /* Same but master floats */
{ "><>", NULL }, /* no layout function means floating behavior */
{ NULL, NULL }
};
/* key definitions */
#define MODKEY Mod4Mask
#define MOD2KEY Mod1Mask
#define TAGKEYS(KEY,TAG) \
{ MODKEY, KEY, view, {.ui = 1 << TAG} }, \
{ MODKEY|ControlMask, KEY, toggleview, {.ui = 1 << TAG} }, \
{ MODKEY|ShiftMask, KEY, tag, {.ui = 1 << TAG} }, \
{ MODKEY|ControlMask|ShiftMask, KEY, toggletag, {.ui = 1 << TAG} }, \
{ MODKEY|MOD2KEY, KEY, swaptags, {.ui = 1 << TAG} },
#define STACKKEYS(MOD,ACTION) \
{ MOD, XK_j, ACTION##stack, {.i = INC(+1) } }, \
{ MOD, XK_k, ACTION##stack, {.i = 0 } }, \
{ MOD, XK_v, ACTION##stack, {.i = 0 } }, \
/* commands */
static char dmenumon[2] = "0"; /* component of dmenucmd, manipulated in spawn() */
static const char *dmenucmd[] = { "dmenu_run", "-m", dmenumon, "-fn", dmenufont, "-nb", "#000000", "-nf", blue, "-sb", blue, "-sf", black, "-h", dmenuh, NULL };
static const char *termcmd[] = { TERMINAL, NULL };
static const char *layoutmenu_cmd = "pOS-layoutmenu";
#include <X11/XF86keysym.h>
#include "patches/shiftview.c"
#include "keys.h"