summaryrefslogtreecommitdiffstats
path: root/py3status
diff options
context:
space:
mode:
authorJ.M. Dana <jmdana@gmail.com>2015-02-24 21:23:39 +0000
committerJ.M. Dana <jmdana@gmail.com>2015-02-24 21:23:39 +0000
commit98d149f5c424bff4c03bdd2c9abe7f97d4660555 (patch)
tree81ad680882a01f23d24940b6ba8d12187ef28153 /py3status
parenta5616fdad821b02ca224d169e993f934747e2f65 (diff)
QA modifications
Diffstat (limited to 'py3status')
-rw-r--r--py3status/modules/bluetooth.py17
1 files changed, 4 insertions, 13 deletions
diff --git a/py3status/modules/bluetooth.py b/py3status/modules/bluetooth.py
index 00fdb84..ee33b09 100644
--- a/py3status/modules/bluetooth.py
+++ b/py3status/modules/bluetooth.py
@@ -12,9 +12,9 @@ Requires:
@license GPLv3 <http://www.gnu.org/licenses/gpl-3.0.txt>
"""
-from time import time
-import subprocess
import shlex
+import subprocess
+from time import time
class Py3status:
# configuration parameters
@@ -22,16 +22,7 @@ class Py3status:
color_good = None
color_bad = None
- def __init__(self):
- pass
-
- def kill(self, i3s_output_list, i3s_config):
- pass
-
- def on_click(self, i3s_output_list, i3s_config, event):
- pass
-
- def get_status(self, i3s_output_list, i3s_config):
+ def bluetooth(self, i3s_output_list, i3s_config):
# The whole command:
# hcitool name `hcitool con | sed -n -r 's/.*([0-9A-F:]{17}).*/\\1/p'`
@@ -78,5 +69,5 @@ if __name__ == "__main__":
}
while True:
- print(x.get_status([], config))
+ print(x.bluetooth([], config))
sleep(1)