From 6749e1c0451924ad5b10e31acb8be1f17f32d61d Mon Sep 17 00:00:00 2001 From: Guilherme Rugai Freire Date: Wed, 1 Jun 2022 12:16:16 -0300 Subject: [PATCH] qtile: use variable to store calendar program --- .config/qtile/config.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.config/qtile/config.py b/.config/qtile/config.py index 787445e..68a54a6 100644 --- a/.config/qtile/config.py +++ b/.config/qtile/config.py @@ -20,6 +20,7 @@ SCREENSHOT = "gnome-screenshot" SCREENSHOT_UTILITY = "gnome-screenshot -i" ZOOM_UTILITY = "boomer" CALCULATOR = "gnome-calculator" +CALENDAR = "gsimplecal" POWER_MENU = os.path.expanduser( "~/.scripts/bin/simple-power-menu" ) @@ -318,7 +319,7 @@ def main_bar(): [ widget.Clock( format="%d / %m / %y", - mouse_callbacks={"Button1": lambda: qtile.cmd_spawn("gsimplecal")}, + mouse_callbacks={"Button1": lambda: qtile.cmd_spawn(CALENDAR)}, ), widget.Clock(format="%I:%M %p", font=FONT + " Bold"), ],