<commit_before>xmobar-stocks
=============

quick and dirty perl script to show market info in xmobar.

## Synopsis ##

To run on the command line:

    xmobar-stocks "jpm$" "^ixic=NASDAQ%"

    JPM:<fc=#00ff00>34.37</fc> | NASDAQ:<fc=#ff0000>-0.86%</fc> | 

Thus, you can stick (something like) the following in your xmobarrc:


    Config { 
        -- ... 
        , commands = [
          -- obviously you can include other commands...
          , Run Com "/usr/bin/perl" ["/path/to/xmobar-stocks", "jpm$", "wf%", "gs+"] "stocks" 60
        ]
        , sepChar = "`"
        , template = " [ ... ]  `stocks` [ ... ] "
    }


## Description ##

Why not show some info about the markets in xmobar? This script lets you 
easily keep track of all the money you're losing. I cannot be held responsible
for any sadness that may arise from this realization. 

I'm really not sure why this isn't built into xmobar, but oh well. This script
because I didn't want to have to recompile xmobar from source to add this 
functionality. Unless I'm missing something (likely: most things in Haskell
are a bit over my head), it seems like you need to recompile xmobar to add 
another plugin. This seems a little silly to me...

### Syntax ###
The syntax is as follows: 

    xmobar-stocks [ ... ]

It accepts a list of arguments in the following form:

    SYM[=alias]{$%+}

where: 
<commit_msg>fix typo in readme<commit_after>xmobar-stocks
=============

quick and dirty perl script to show market info in xmobar.

## Synopsis ##

To run on the command line:

    xmobar-stocks "jpm$" "^ixic=NASDAQ%"

    JPM:<fc=#00ff00>34.37</fc> | NASDAQ:<fc=#ff0000>-0.86%</fc> | 

Thus, you can stick (something like) the following in your xmobarrc:


    Config { 
        -- ... 
        , commands = [
          -- obviously you can include other commands...
          , Run Com "/usr/bin/perl" ["/path/to/xmobar-stocks", "jpm$", "wf%", "gs+"] "stocks" 60
        ]
        , sepChar = "`"
        , template = " [ ... ]  `stocks` [ ... ] "
    }


## Description ##

Why not show some info about the markets in xmobar? This script lets you 
easily keep track of all the money you're losing. I cannot be held responsible
for any sadness that may arise from this realization (that you're losing
lots of money). 

I'm really not sure why this isn't built into xmobar, but oh well. This script
exists because I didn't want to have to recompile xmobar from source to add 
this functionality. Unless I'm missing something (likely: most things in Haskell
are a bit over my head), it seems like you need to recompile xmobar to add 
another plugin. This seems a little silly to me...

### Syntax ###
The syntax is as follows: 

    xmobar-stocks [ ... ]

It accepts a list of arguments in the following form:

    SYM[=alias]{$%+}

where: 

{'fraction_non_alphanumeric': 0.12122289370778529, 'fraction_numerical': 0.012086740135087096, 'mean_word_length': 2.7975708502024292, 'pattern_counts': {'":': 0, '<': 11, '<?xml version=': 0, '>': 11, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3449438', 'n_tokens_mistral': 957, 'n_tokens_neox': 868, 'n_words': 364}