[core] Add option to draw widgets right-to-left

fixes #295
This commit is contained in:
Tobias Witek 2018-09-22 14:40:32 +02:00
parent 8863ce1c5b
commit e80ae8b91e
3 changed files with 12 additions and 3 deletions

View file

@ -57,6 +57,8 @@ def create_parser():
help=LIST_HELP)
parser.add_argument("-d", "--debug", action="store_true",
help=DEBUG_HELP)
parser.add_argument("-r", "--right-to-left", action="store_true",
help="Draw widgets from right to left, rather than left to right (which is the default)")
parser.add_argument("-f", "--logfile", default="~/bumblebee-status-debug.log",
help="Location of the debug log file")
parser.add_argument("-i", "--iconset", default="auto",
@ -100,6 +102,9 @@ class Config(bumblebee.store.Store):
def debug(self):
return self._args.debug
def reverse(self):
return self._args.right_to_left
def logfile(self):
return os.path.expanduser(self._args.logfile)