readr

Minimal RSS reader (WIP)
Log | Files | Refs | README | LICENSE

config.h (948B)


      1 #pragma once
      2 
      3 #define VERSION "v1.2"
      4 
      5 // source file for RSS URLS, one per line
      6 // folder and file must exist
      7 #define FEEDS "~/.config/readr/feeds"
      8 
      9 // folder must exist, file will be automatically created
     10 // can technically be cloud shared, dropbox etc. for replication
     11 #define DB_PATH "~/.config/readr/posts.sqlite"
     12 
     13 // the width of the left column (in chars)
     14 #define FEED_CAP 26
     15 
     16 // colours, for colour options, see termbox2.h
     17 #define LOGO_COLOR (TB_WHITE | TB_BRIGHT)
     18 #define TEXT_COLOR (TB_WHITE | TB_DIM)
     19 #define BACK_COLOR TB_DEFAULT
     20 #define LINE_COLOR (TB_WHITE | TB_DIM)
     21 #define FEED_COLOR TB_CYAN
     22 #define POST_COLOR (TB_YELLOW)
     23 #define DOMAIN_COLOR (TB_RED | TB_DIM)
     24 #define SEEN_COLOR (TB_YELLOW | TB_DIM)
     25 
     26 // how many posts we want to see per feed
     27 #define MAX_POST_PER_FEED 100
     28 
     29 // allocation caps, best not to fiddle with this
     30 #define POSTS_CAP 128
     31 #define FEEDS_CAP 32
     32 #define TITLE_CAP 128
     33 #define DOMAIN_CAP 64
     34 #define URL_CAP 8192