From 7756eaaa31523111df898e4af506c66b4b43c0f4 Mon Sep 17 00:00:00 2001 From: jslabik Date: Sat, 20 Mar 2021 01:18:46 +0100 Subject: [PATCH] Adding the ability to change the editor to module todo --- bumblebee_status/modules/contrib/todo.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/bumblebee_status/modules/contrib/todo.py b/bumblebee_status/modules/contrib/todo.py index 878b63f..df2d788 100644 --- a/bumblebee_status/modules/contrib/todo.py +++ b/bumblebee_status/modules/contrib/todo.py @@ -21,9 +21,10 @@ class Module(core.module.Module): super().__init__(config, theme, core.widget.Widget(self.output)) self.__doc = os.path.expanduser(self.parameter("file", "~/Documents/todo.txt")) + self.__editor = self.parameter("editor", "xdg-open") self.__todos = self.count_items() core.input.register( - self, button=core.input.LEFT_MOUSE, cmd="xdg-open {}".format(self.__doc) + self, button=core.input.LEFT_MOUSE, cmd="{} {}".format(self.__editor, self.__doc) ) def output(self, widget):