123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566 |
- /*
- * for components info see: wiki/COMPONENTS.md
- *
- * extra configs in can be found in `components_config.h`
- */
- /* for usleep */
- #define _SEC *1000
- #define _MIN *(60 _SEC)
- #define _HR *(60 _MIN)
- /* interval to run only once */
- #define ONCE ((unsigned int)-1)
- /* text to show if no value can be retrieved */
- static const char unknown_str[] = "n/a";
- /* maximum output string length */
- #define MAXLEN 256
- /*
- * if you want to change buffer size for each segment,
- * then change `BUFF_SZ` in lib/util.h
- */
- #define IFC "wlan0" /* wifi interface */
- // Colors for dwm
- #define COL1 "\x0b"
- #define COL2 "\x0c"
- #define COL3 "\x0d"
- #define COL4 "\x0e"
- #define COL5 "\x0f"
- #define COL6 "\x10"
- #define COL7 "\x11"
- /* clang-format off */
- static struct arg_t args[] = {
- /* function format argument interval (in ms) */
- #if USE_X
- /* { bspwm_ws, " [ %s ]%%{r}", NULL, 0, END }, */
- #endif
- // { disk_perc, " [# %s%%", "/", 25 _SEC, END },
- // { disk_free, " %s]", "/", 25 _SEC, END },
- // { load_avg, "-[%s]", NULL, 3 _SEC, END },
- { vol_perc, COL1 "%s ", NULL, 0, END },
- { cpu_freq, COL2 " %sHz", NULL, 1 _SEC, END },
- { cpu_perc, " %s%% ", NULL, 1 _SEC, END },
- { ram_used, COL3 " %sB", NULL, 1 _SEC, END },
- { ram_perc, " %s%% ", NULL, 1 _SEC, END },
- // { wifi_essid, "-[直 \"%s\"", IFC, 2 _SEC, END },
- // { wifi_perc, " %3s%%]", IFC, 2 _SEC, END },
- { battery_state, COL4 " %s", "BAT0", 1 _MIN, END },
- { battery_perc, "%s%% ", "BAT0", 1 _MIN, END },
- #if USE_WEATHER
- { weather, COL5 " %s °F ", NULL, 30 _MIN, END },
- #endif
- { datetime, COL6 " %s", " %b %-m : %a %-d " COL7 " %-l:%M %p", 1 _SEC, END },
- // #if USE_X && USE_XKB
- // { keymap, "-[ %s] ", NULL, 0, END },
- // #endif
- };
- /* clang-format on */
|