config.h (1188B)
1 #ifndef CONFIG_H 2 #define CONFIG_H 3 4 #include "util.h" 5 6 /* TODO: Automate config definitions with macros */ 7 typedef struct 8 { 9 /* Main */ 10 const char *name; 11 12 /* Theme */ 13 scout_color_t bg; 14 scout_color_t bg2; 15 scout_color_t ui; 16 scout_color_t ui2; 17 scout_color_t ui3; 18 scout_color_t tx3; 19 scout_color_t tx2; 20 scout_color_t tx; 21 scout_color_t acc; 22 scout_color_t acc2; 23 24 } scout_cfg_t; 25 26 static const scout_cfg_t DEFAULT_CFG = { 27 /* Main */ 28 .name = "SCOUT Launcher", 29 30 /* Theme */ 31 .bg = HEX(0x100F0F), 32 .bg2 = HEX(0x1C1B1A), 33 .ui = HEX(0x282726), 34 .ui2 = HEX(0x343331), 35 .ui3 = HEX(0x403E3C), 36 .tx3 = HEX(0x575653), 37 .tx2 = HEX(0x878580), 38 .tx = HEX(0x878580), 39 .acc = HEX(0xDA702C), 40 .acc2 = HEX(0xBC5215) 41 }; 42 43 typedef struct 44 { 45 char *title; 46 char *description; 47 char *command; 48 char *image_path; 49 } scout_card_t; 50 51 static const scout_card_t DEFAULT_CARD = { 52 .title = "No Title", 53 .description = "No description...", 54 .command = "notify-send \"No command set\"", 55 .image_path = "" 56 }; 57 58 void load_config(scout_cfg_t *pcfg, uint32_t *num_cards, scout_card_t **pcards); 59 60 #endif