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