diff options
| author | J.M. Dana <jmdana@gmail.com> | 2015-04-02 19:10:14 +0100 |
|---|---|---|
| committer | J.M. Dana <jmdana@gmail.com> | 2015-04-02 19:10:14 +0100 |
| commit | fdab47f35982bbb007d04759af2b57f768ac334c (patch) | |
| tree | c2439a8ac2cb92604734d9bccc2600522dd549f5 | |
| parent | 648728327b31b45e887a8ee92bbab82acad8f1e0 (diff) | |
QA for nvidia_temp
| -rwxr-xr-x | py3status/modules/nvidia_temp.py | 15 |
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 |
