summaryrefslogtreecommitdiffstats
path: root/py3status/modules
diff options
context:
space:
mode:
authorJ.M. Dana <jmdana@gmail.com>2015-04-02 19:10:14 +0100
committerJ.M. Dana <jmdana@gmail.com>2015-04-02 19:10:14 +0100
commitfdab47f35982bbb007d04759af2b57f768ac334c (patch)
treec2439a8ac2cb92604734d9bccc2600522dd549f5 /py3status/modules
parent648728327b31b45e887a8ee92bbab82acad8f1e0 (diff)
QA for nvidia_temp
Diffstat (limited to 'py3status/modules')
-rwxr-xr-xpy3status/modules/nvidia_temp.py15
1 files changed, 11 insertions, 4 deletions
diff --git a/py3status/modules/nvidia_temp.py b/py3status/modules/nvidia_temp.py
index 4f6a40e..b9340e9 100755
--- a/py3status/modules/nvidia_temp.py
+++ b/py3status/modules/nvidia_temp.py
@@ -1,5 +1,4 @@
-#!/usr/bin/env python
-# encoding: utf-8
+# -*- coding: utf-8 -*-
"""
Module for displaying NVIDIA GPU temperature
@@ -7,8 +6,16 @@ Module for displaying NVIDIA GPU temperature
Requires:
- nvidia-smi
+Configuration parameters:
+ - cache_timeout: how often we refresh this module in seconds
+ - color_good: the color used if everything is OK.
+ - color_bad: the color used if the temperature can't be read.
+ - format_prefix: a prefix for the output.
+ - format_units: the temperature units. Will appear at the end.
+ - separator: the separator char between temperatures (only if more than one GPU)
+
@author jmdana <https://github.com/jmdana>
-@license GPLv3 <http://www.gnu.org/licenses/gpl-3.0.txt>
+@license BSD
"""
import re
@@ -58,8 +65,8 @@ class Py3status:
response = {
'cached_until': time() + self.cache_timeout,
- 'full_text': output,
'color': color,
+ 'full_text': output,
}
return response