<commit_before>"""
Display current sound volume using amixer.
Expands on the standard i3status volume module by adding color and percentage threshold settings.

NOTE: 	If you want to refresh the module quicker than the i3status interval,
	send a USR1 signal to py3status in the keybinding.
	Example: killall -s USR1 py3status

Configuration parameters:
	- format : format the output, available variables: {percentage}
	- format_mute : format the output when the volume is muted
	- cache_timeout : 0 by default, you usually want continuous monitoring
	- threshold_degraded : 50 by default, percentage to change color to color_degraded
	- threshold_bad : 20 by default, percentage to change color to color_bad
	- color_good : #00FF00 by default, good volume color
	- color_degraded : #FFFF00 by default, degraded volume color
	- color_bad : #FF0000 by default, bad volume color
	- channel : "Master" by default, alsamixer channel to track
@author <<NAME>> <<EMAIL>>
@license BSD
"""

from time import time
import re
from subprocess import check_output


class Py3status:
	format = "♪: {percentage}%"
	format_muted = "♪: muted"
	cache_timeout = 0

	threshold_degraded = 50
	threshold_bad = 20

	color_good = "#00FF00"
	color_degraded = "#FFFF00"<commit_msg>Added hashbang and encoding. Added alsa-utils package as a dependency.<commit_after>#!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
Display current sound volume using amixer.
Expands on the standard i3status volume module by adding color and percentage threshold settings.

NOTE: 	If you want to refresh the module quicker than the i3status interval,
	send a USR1 signal to py3status in the keybinding.
	Example: killall -s USR1 py3status

Dependencies:
	alsa-utils (tested with alsa-utils 1.0.29-1)

Configuration parameters:
	- format : format the output, available variables: {percentage}
	- format_mute : format the output when the volume is muted
	- cache_timeout : 0 by default, you usually want continuous monitoring
	- threshold_degraded : 50 by default, percentage to change color to color_degraded
	- threshold_bad : 20 by default, percentage to change color to color_bad
	- color_good : #00FF00 by default, good volume color
	- color_degraded : #FFFF00 by default, degraded volume color
	- color_bad : #FF0000 by default, bad volume color
	- channel : "Master" by default, alsamixer channel to track
@author <<NAME>> <<EMAIL>>
@license BSD
"""

from time import time
import re
from subprocess import check_output


class Py3status:
	format = "♪: {percentage}%"
	format_muted = "♪: muted"
	cache_timeout = 0

	threshold_degraded = 50
	threshold_bad = 20

	color_good = "#00FF00"
	color_degraded = "#FFFF00"
{'fraction_non_alphanumeric': 0.07372754491017965, 'fraction_numerical': 0.02694610778443114, 'mean_word_length': 4.53416149068323, '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': '3849127', 'n_tokens_mistral': 835, 'n_tokens_neox': 775, 'n_words': 331}