Mercurial > nixos
comparison config/dwm/config.def.h @ 1:f78c8a98f113
Add new stuff and remove useless overlay in home.nix
| author | Yasuri <yasuri@charliesmp.net> |
|---|---|
| date | Fri, 02 Oct 2026 18:58:29 -0500 |
| parents | face7f4d84f7 |
| children | a2c891f7b914 |
comparison
equal
deleted
inserted
replaced
| 0:face7f4d84f7 | 1:f78c8a98f113 |
|---|---|
| 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[] = { "JetBrainsMono Nerd Font Propo:size=10" }; |
| 14 static const char dmenufont[] = "JetBrainsMono Nerd Font Propo:size=10"; | 14 static const char dmenufont[] = "JetBrainsMono Nerd Font Propo:size=10"; |
| 15 static const char col_bg[] = "#1c1a2b"; | 15 static const char col_gray1[] = "#0f1a12"; /* bar bg */ |
| 16 static const char col_border[] = "#4a4668"; | 16 static const char col_gray2[] = "#2e4234"; /* inactive border */ |
| 17 static const char col_fg[] = "#e8e0f0"; | 17 static const char col_gray3[] = "#b9c7bd"; /* bar fg */ |
| 18 static const char col_selfg[] = "#1c1a2b"; | 18 static const char col_gray4[] = "#0f1a12"; /* selected fg */ |
| 19 static const char col_selbg[] = "#f5b0d8"; | 19 static const char col_cyan[] = "#5fae2e"; /* selected bg and border */ |
| 20 static const char col_selbrd[] = "#6ecbff"; | |
| 21 | |
| 22 static const char *colors[][3] = { | 20 static const char *colors[][3] = { |
| 23 /* fg bg border */ | 21 /* fg bg border */ |
| 24 [SchemeNorm] = { col_fg, col_bg, col_border }, | 22 [SchemeNorm] = { col_gray3, col_gray1, col_gray2 }, |
| 25 [SchemeSel] = { col_selfg, col_selbg, col_selbrd }, | 23 [SchemeSel] = { col_gray4, col_cyan, col_cyan }, |
| 26 }; | 24 }; |
| 27 | 25 |
| 28 /* tagging */ | 26 /* tagging */ |
| 29 static const char *tags[] = { "1", "2", "3", "4", "5", "6", "7", "8", "9" }; | 27 static const char *tags[] = { "1", "2", "3", "4", "5", "6", "7", "8", "9" }; |
| 30 | 28 |
| 78 /* helper for spawning shell commands in the pre dwm-5.0 fashion */ | 76 /* helper for spawning shell commands in the pre dwm-5.0 fashion */ |
| 79 #define SHCMD(cmd) { .v = (const char*[]){ "/bin/sh", "-c", cmd, NULL } } | 77 #define SHCMD(cmd) { .v = (const char*[]){ "/bin/sh", "-c", cmd, NULL } } |
| 80 | 78 |
| 81 /* commands */ | 79 /* commands */ |
| 82 static char dmenumon[2] = "0"; /* component of dmenucmd, manipulated in spawn() */ | 80 static char dmenumon[2] = "0"; /* component of dmenucmd, manipulated in spawn() */ |
| 83 static const char *dmenucmd[] = { "dmenu_run", "-m", dmenumon, "-fn", dmenufont, "-nb", col_bg, "-nf", col_fg, "-sb", col_selbg, "-sf", col_selfg, NULL }; | 81 static const char *dmenucmd[] = { "dmenu_run", "-m", dmenumon, "-fn", dmenufont, "-nb", col_gray1, "-nf", col_gray3, "-sb", col_cyan, "-sf", col_gray4, NULL }; |
| 84 static const char *termcmd[] = { "st", NULL }; | 82 static const char *termcmd[] = { "st", "-e", "tmux", NULL }; |
| 85 | 83 |
| 86 static const Key keys[] = { | 84 static const Key keys[] = { |
| 87 /* modifier key function argument */ | 85 /* modifier key function argument */ |
| 88 { MODKEY, XK_d, spawn, {.v = dmenucmd } }, | 86 { MODKEY, XK_d, spawn, {.v = dmenucmd } }, |
| 89 { MODKEY, XK_Return, spawn, {.v = termcmd } }, | 87 { MODKEY, XK_Return, spawn, {.v = termcmd } }, |
