qtile: use variable to store calendar program

This commit is contained in:
Guilherme Rugai Freire 2022-06-01 12:16:16 -03:00
parent 26d5d44c96
commit 6749e1c045
No known key found for this signature in database
GPG Key ID: FC05BE5CD322C427

View File

@ -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"),
],