Mercurial > nixos
comparison config/dwm/config.def.h @ 2:a2c891f7b914
Occasional commit 2
| author | Yasuri <yasuri@charliesmp.net> |
|---|---|
| date | Sat, 03 Oct 2026 18:53:08 -0500 |
| parents | f78c8a98f113 |
| children |
comparison
equal
deleted
inserted
replaced
| 1:f78c8a98f113 | 2:a2c891f7b914 |
|---|---|
| 8 static const unsigned int gappoh = 0; /* horiz outer gap between windows and screen edge */ | 8 static const unsigned int gappoh = 0; /* horiz outer gap between windows and screen edge */ |
| 9 static const unsigned int gappov = 0; /* vert outer gap between windows and screen edge */ | 9 static const unsigned int gappov = 0; /* vert outer gap between windows and screen edge */ |
| 10 static int smartgaps = 0; /* 1 means no outer gap when there is only one window */ | 10 static int smartgaps = 0; /* 1 means no outer gap when there is only one window */ |
| 11 static const int showbar = 1; /* 0 means no bar */ | 11 static const int showbar = 1; /* 0 means no bar */ |
| 12 static const int topbar = 1; /* 0 means bottom bar */ | 12 static const int topbar = 1; /* 0 means bottom bar */ |
| 13 static const char *fonts[] = { "JetBrainsMono Nerd Font Propo:size=10" }; | 13 static const char *fonts[] = { "Iosevka Nerd Font Propo:size=10" }; |
| 14 static const char dmenufont[] = "JetBrainsMono Nerd Font Propo:size=10"; | 14 static const char dmenufont[] = "Iosevka Nerd Font Propo:size=10"; |
| 15 static const char col_gray1[] = "#0f1a12"; /* bar bg */ | 15 static const char col_bg[] = "#1d1b2a"; |
| 16 static const char col_gray2[] = "#2e4234"; /* inactive border */ | 16 static const char col_border[] = "#38364b"; |
| 17 static const char col_gray3[] = "#b9c7bd"; /* bar fg */ | 17 static const char col_fg[] = "#9a9db8"; |
| 18 static const char col_gray4[] = "#0f1a12"; /* selected fg */ | 18 static const char col_selfg[] = "#dfdbec"; |
| 19 static const char col_cyan[] = "#5fae2e"; /* selected bg and border */ | 19 static const char col_selbg[] = "#526882"; |
| 20 static const char col_selbrd[] = "#57708b"; | |
| 20 static const char *colors[][3] = { | 21 static const char *colors[][3] = { |
| 21 /* fg bg border */ | 22 /* fg bg border */ |
| 22 [SchemeNorm] = { col_gray3, col_gray1, col_gray2 }, | 23 [SchemeNorm] = { col_fg, col_bg, col_border }, |
| 23 [SchemeSel] = { col_gray4, col_cyan, col_cyan }, | 24 [SchemeSel] = { col_selfg, col_selbg, col_selbrd }, |
| 24 }; | 25 }; |
| 25 | 26 |
| 26 /* tagging */ | 27 /* tagging */ |
| 27 static const char *tags[] = { "1", "2", "3", "4", "5", "6", "7", "8", "9" }; | 28 static const char *tags[] = { "1", "2", "3", "4", "5", "6", "7", "8", "9" }; |
| 28 | 29 |
| 46 #define FORCE_VSPLIT 1 /* nrowgrid layout: force two clients to always split vertically */ | 47 #define FORCE_VSPLIT 1 /* nrowgrid layout: force two clients to always split vertically */ |
| 47 #include "vanitygaps.c" | 48 #include "vanitygaps.c" |
| 48 | 49 |
| 49 static const Layout layouts[] = { | 50 static const Layout layouts[] = { |
| 50 /* symbol arrange function */ | 51 /* symbol arrange function */ |
| 51 { "[]=", tile }, /* first entry is default */ | 52 { "[F]", NULL }, /* first entry is default */ |
| 52 { "[M]", monocle }, | 53 { "[M]", monocle }, |
| 53 { "[@]", spiral }, | 54 { "[@]", spiral }, |
| 54 { "[\\]", dwindle }, | 55 { "[\\]", dwindle }, |
| 55 { "H[]", deck }, | 56 { "H[]", deck }, |
| 56 { "TTT", bstack }, | 57 { "TTT", bstack }, |
| 76 /* helper for spawning shell commands in the pre dwm-5.0 fashion */ | 77 /* helper for spawning shell commands in the pre dwm-5.0 fashion */ |
| 77 #define SHCMD(cmd) { .v = (const char*[]){ "/bin/sh", "-c", cmd, NULL } } | 78 #define SHCMD(cmd) { .v = (const char*[]){ "/bin/sh", "-c", cmd, NULL } } |
| 78 | 79 |
| 79 /* commands */ | 80 /* commands */ |
| 80 static char dmenumon[2] = "0"; /* component of dmenucmd, manipulated in spawn() */ | 81 static char dmenumon[2] = "0"; /* component of dmenucmd, manipulated in spawn() */ |
| 81 static const char *dmenucmd[] = { "dmenu_run", "-m", dmenumon, "-fn", dmenufont, "-nb", col_gray1, "-nf", col_gray3, "-sb", col_cyan, "-sf", col_gray4, NULL }; | 82 static const char *dmenucmd[] = { |
| 83 "dmenu_run", "-m", dmenumon, | |
| 84 "-nb", col_bg, "-nf", col_fg, | |
| 85 "-sb", col_selbg, "-sf", col_selfg, | |
| 86 NULL | |
| 87 }; | |
| 82 static const char *termcmd[] = { "st", "-e", "tmux", NULL }; | 88 static const char *termcmd[] = { "st", "-e", "tmux", NULL }; |
| 83 | 89 |
| 84 static const Key keys[] = { | 90 static const Key keys[] = { |
| 85 /* modifier key function argument */ | 91 /* modifier key function argument */ |
| 86 { MODKEY, XK_d, spawn, {.v = dmenucmd } }, | 92 { MODKEY, XK_d, spawn, {.v = dmenucmd } }, |
