From 5d66539359236d231eaeb13cd0f2d9850b03ef94 Mon Sep 17 00:00:00 2001 From: lasers Date: Sun, 24 Mar 2019 01:36:08 -0500 Subject: [PATCH] solaar: fix module, update docs (#720) --- i3pystatus/solaar.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/i3pystatus/solaar.py b/i3pystatus/solaar.py index 04f2e69..752eca9 100644 --- a/i3pystatus/solaar.py +++ b/i3pystatus/solaar.py @@ -15,7 +15,7 @@ class NoBatteryStatus(Exception): class Solaar(IntervalModule): """ - Shows status and load percentage of bluetooth-device + Shows status and load percentage of logitech's unifying device .. rubric:: Available formatters @@ -27,7 +27,7 @@ class Solaar(IntervalModule): interval = 30 settings = ( - ("nameOfDevice", "name of the bluetooth-device"), + ("nameOfDevice", "name of the logitech's unifying device"), ("color", "standard color"), ("error_color", "color to use when non zero exit code is returned"), ) @@ -35,7 +35,7 @@ class Solaar(IntervalModule): required = ("nameOfDevice",) def findDeviceNumber(self): - command = 'solaar-cli show' + command = 'solaar show' retvalue, out, stderr = run_through_shell(command, enable_shell=True) for line in out.split('\n'): if line.count(self.nameOfDevice) > 0 and line.count(':') > 0: @@ -44,7 +44,7 @@ class Solaar(IntervalModule): raise DeviceNotFound() def findBatteryStatus(self, numberOfDevice): - command = 'solaar-cli show -v %s' % (numberOfDevice) + command = 'solaar show %s' % (numberOfDevice) retvalue, out, stderr = run_through_shell(command, enable_shell=True) for line in out.split('\n'): if line.count('Battery') > 0: