<commit_before># i3blocks-sonos

## About
i3blocks-sonos is an i3blocks blocklet script to output the status and current song playing on your Sonos and to toggle playing.

## Dependencies
fonts-font-awesome, soco, python3

## Look
Paused / Playing:
![](https://raw.githubusercontent.com/Lilleengen/i3blocks-sonos/master/images/paused.png) / ![](https://raw.githubusercontent.com/Lilleengen/i3blocks-sonos/master/images/playing.png)

## Getting started
Install [font-awesome](https://fortawesome.github.io/Font-Awesome/)
Install soco using `pip install soco`
Copy the blocklet configuration in the given `i3blocks.conf` (or below) into your i3blocks configuration file
```INI
[sonos]
command=$SCRIPT_DIR/i3blocks-sonos.py $BLOCK_BUTTON
markup=pango
interval=5
```

## Usage
Press it to toggle playing<commit_msg>Fixed newlines in README.md<commit_after># i3blocks-sonos

## About
i3blocks-sonos is an i3blocks blocklet script to output the status and current song playing on your Sonos and to toggle playing.

## Dependencies
fonts-font-awesome, soco, python3

## Look
Paused / Playing:
![](https://raw.githubusercontent.com/Lilleengen/i3blocks-sonos/master/images/paused.png) / ![](https://raw.githubusercontent.com/Lilleengen/i3blocks-sonos/master/images/playing.png)

## Getting started
Install [font-awesome](https://fortawesome.github.io/Font-Awesome/)

Install soco using `pip install soco`

Copy the blocklet configuration in the given `i3blocks.conf` (or below) into your i3blocks configuration file
```INI
[sonos]
command=$SCRIPT_DIR/i3blocks-sonos.py $BLOCK_BUTTON
markup=pango
interval=5
```

## Usage
Press it to toggle playing
{'fraction_non_alphanumeric': 0.11538461538461539, 'fraction_numerical': 0.01221001221001221, 'mean_word_length': 5.478260869565218, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 6, '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': '5023286', 'n_tokens_mistral': 564, 'n_tokens_neox': 533, 'n_words': 142}