From 93768e3380f55c9f27abd74a9cccc064bd3135d1 Mon Sep 17 00:00:00 2001 From: Tobias Witek Date: Sun, 20 Aug 2017 10:59:39 +0200 Subject: [PATCH] [doc] Updated README.md + small logging refactor * Fix minor grammatical errors in README.md * Make logfile configuration a bit nicer --- README.md | 4 ++-- bumblebee-status | 2 +- bumblebee/config.py | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 5a70d49..4965fbc 100644 --- a/README.md +++ b/README.md @@ -40,7 +40,7 @@ $ git clone git://github.com/tobi-wan-kenobi/bumblebee-status # Usage ## Normal usage -Next, open your i3wm configuration and modify the *status_command* for your i3bar like this: +In your i3wm configuration, modify the *status_command* for your i3bar like this: ``` bar { @@ -55,7 +55,7 @@ $ ./bumblebee-status -l themes $ ./bumblebee-status -l modules ``` -Any parameter you can specify with `-p =`, you can alternatively specify in `~/.bumblebee-status.conf` or `~/.config/bumblebee-status.conf`. This parameters act as a **fallback**, so value specified with `-p` have priority. +Any parameter you can specify with `-p =`, you can alternatively specify in `~/.bumblebee-status.conf` or `~/.config/bumblebee-status.conf`. This parameters act as a **fallback**, so values specified with `-p` have priority. Configuration files have a format like this: ``` diff --git a/bumblebee-status b/bumblebee-status index 4745e40..f28dc7c 100755 --- a/bumblebee-status +++ b/bumblebee-status @@ -17,7 +17,7 @@ def main(): logging.basicConfig( level=logging.DEBUG, format="[%(asctime)s] %(levelname)-8s %(message)s", - filename=os.path.expanduser(config.logfile()) + filename=config.logfile() ) else: logging.basicConfig( diff --git a/bumblebee/config.py b/bumblebee/config.py index b8c9960..be1ee97 100644 --- a/bumblebee/config.py +++ b/bumblebee/config.py @@ -94,6 +94,6 @@ class Config(bumblebee.store.Store): return self._args.debug def logfile(self): - return self._args.logfile + return os.path.expanduser(self._args.logfile) # vim: tabstop=8 expandtab shiftwidth=4 softtabstop=4