From a43938b1c8469e560489b6a7300b1d8b0733318c Mon Sep 17 00:00:00 2001 From: Tobi-wan Kenobi Date: Wed, 9 Nov 2016 19:38:32 +0100 Subject: [PATCH] [modules/cmus] Add vim line + change default text Slightly adapt default text to indicate that cmus is not running. --- bumblebee/modules/cmus.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/bumblebee/modules/cmus.py b/bumblebee/modules/cmus.py index dc2b70f..5a68a9c 100644 --- a/bumblebee/modules/cmus.py +++ b/bumblebee/modules/cmus.py @@ -17,7 +17,7 @@ class Module(bumblebee.module.Module): self._query, self._error = self._process.communicate() self._query = self._query.decode("utf-8").split("\n") 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: if "status playing" in line: self._status = 1 @@ -44,3 +44,4 @@ class Module(bumblebee.module.Module): return "stopped" return "default" +# vim: tabstop=8 expandtab shiftwidth=4 softtabstop=4