diff options
| author | Polesznyák Márk <contact@pml68.dev> | 2025-09-23 17:05:25 +0200 |
|---|---|---|
| committer | Polesznyák Márk <contact@pml68.dev> | 2025-09-23 17:05:25 +0200 |
| commit | b089cc6ed9ae82bf7d94d2b6f02aa01e21d43793 (patch) | |
| tree | 216156843f171edd7ba21d55ead33dfd08733966 /fetcha/config.def.h | |
| parent | feat(dmenu): add inlinePrompt patch (diff) | |
| download | suckless-setup-b089cc6ed9ae82bf7d94d2b6f02aa01e21d43793.tar.gz | |
feat: switch from neofetch to Cryobs/fetcha
Diffstat (limited to '')
| -rw-r--r-- | fetcha/config.def.h | 74 |
1 files changed, 74 insertions, 0 deletions
diff --git a/fetcha/config.def.h b/fetcha/config.def.h new file mode 100644 index 0000000..99c43a5 --- /dev/null +++ b/fetcha/config.def.h @@ -0,0 +1,74 @@ +#include "modules.h" +#include <stdio.h> + + +static const int ascii_pad = 3; /* padding ascii/info */ +static const int info_align = 0; /* align info by separator */ +static const int header_show = 1; /* if 0 doot print header */ +static const int color_palette_show = 1; +static const char *info_sep = ": "; +static const int numerate_same = 1; + +/* + * colors ANSI + * NAME Normal Light + * Black : 30 (90) + * Red : 31 (91) + * Green : 32 (92) + * Yellow: 33 (93) + * Blue : 34 (94) + * Purple: 35 (95) + * Aqua : 36 (96) + * White : 37 (97) + * + * colorpallete: + * [0-4] - secondary colors + * [5-9] - text colors: + * 5 - info text + * 6 - info separator + * 7 - header separator + * 8 - boundary + * 9 - ? + */ + +static const int colors[10] = {34, 34, 35, 33, 34, 97, 34, 90, 34, 34}; + +/* + * character header/info + * if 1 char: boundary len == header len + * if 2 char: boundary len == 2 * header len + */ +static const char *boundary_char = ""; + +/* + * separator for header info + */ +static const char *header_sep = "@"; + +/* + * information + * Label, func + */ +static info_item config_items[] = { + { "Distro", get_os }, + { "Kernel", get_kernel }, + { "Packages", get_packages }, + { "WM", get_wm }, + { "Terminal", get_terminal }, + { "Memory", get_memory }, + +}; + +const size_t config_items_len = sizeof config_items / sizeof config_items[0]; + + +static const char *ascii_art = +"$2 /\\\n" +" / \\\n" +" /\\ \\\n" +"$1 / \\\n" +" / ,, \\\n" +" / | | -\\\n" +"/_-'' ''-_\\\n" +; + |
