summaryrefslogtreecommitdiffstats
path: root/py3status/modules/volume_status.py
diff options
context:
space:
mode:
authorJan T <keppinakki@gmail.com>2015-06-10 02:30:48 +0300
committerJan T <keppinakki@gmail.com>2015-06-10 02:30:48 +0300
commit503f2eb95ef73109949a227795a03fee2fad8f72 (patch)
tree08e87104e1db4ab7d7b3f48c45c9738611ebacfe /py3status/modules/volume_status.py
parente4273aa83bd537d1f159f1f0bc68308434e956c4 (diff)
Fixed typos and comments.
Diffstat (limited to 'py3status/modules/volume_status.py')
-rw-r--r--py3status/modules/volume_status.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/py3status/modules/volume_status.py b/py3status/modules/volume_status.py
index b436b5c..90c81a8 100644
--- a/py3status/modules/volume_status.py
+++ b/py3status/modules/volume_status.py
@@ -1,6 +1,6 @@
"""
-Show current volume from amixer.
-Extend on the standard i3status volume module by adding color and threshold settings.
+Display current sound volume using amixer.
+Expands on the standard i3status volume module by adding color and percentage threshold settings.
Configuration parameters:
- format : format the output, available variables: {percentage}
- format_mute : format the output when the volume is muted
@@ -34,9 +34,11 @@ class Py3status:
channel = "Master"
+ # constructor
def __init__(self):
self.text = ""
+ # compares current volume to the thresholds, returns a color code
def _perc_to_color(self, string):
try:
value = int(string)