[doc] Updated README.md + small logging refactor

* Fix minor grammatical errors in README.md
* Make logfile configuration a bit nicer
This commit is contained in:
Tobias Witek 2017-08-20 10:59:39 +02:00
parent 919dfdd6e1
commit 93768e3380
3 changed files with 4 additions and 4 deletions

View file

@ -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 <name>=<value>`, 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 <name>=<value>`, 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:
```

View file

@ -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(

View file

@ -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