[modules/cmus] Add vim line + change default text
Slightly adapt default text to indicate that cmus is not running.
This commit is contained in:
parent
ba466d5179
commit
a43938b1c8
1 changed files with 2 additions and 1 deletions
|
@ -17,7 +17,7 @@ class Module(bumblebee.module.Module):
|
||||||
self._query, self._error = self._process.communicate()
|
self._query, self._error = self._process.communicate()
|
||||||
self._query = self._query.decode("utf-8").split("\n")
|
self._query = self._query.decode("utf-8").split("\n")
|
||||||
if b'cmus is not running' in self._error:
|
if b'cmus is not running' in self._error:
|
||||||
return bumblebee.output.Widget(self, "Cmus isn't running")
|
return bumblebee.output.Widget(self, "-")
|
||||||
for line in self._query:
|
for line in self._query:
|
||||||
if "status playing" in line:
|
if "status playing" in line:
|
||||||
self._status = 1
|
self._status = 1
|
||||||
|
@ -44,3 +44,4 @@ class Module(bumblebee.module.Module):
|
||||||
return "stopped"
|
return "stopped"
|
||||||
return "default"
|
return "default"
|
||||||
|
|
||||||
|
# vim: tabstop=8 expandtab shiftwidth=4 softtabstop=4
|
||||||
|
|
Loading…
Reference in a new issue