On Tue, Mar 02, 2021 at 12:29:48PM -0800, David Budzynski wrote:
> Hi,
> 
> I'm experimenting with mouse callbacks so I wanted to get calendar when I 
> click on the clock widget. For some reason I cannot get cal to be opened. 
> other commands that I tested it on like htop, plain terminal(alacritty), 
> and calcurse  seem to be working fine. I use this to get the callback: 
> 
> widget.Clock( 
> format = '%b %d %A %H:%M:%S', 
> mouse_callbacks = {"Button1": lambda: qtile.cmd_spawn("alacritty -e cal -3"
> )} 
> )
> 
> when I click on the clock it looks like alacritty opens for a split of a 
> second and quickly disappears. Any reasons why I cannot get cal command to 
> open?

It is probably working just fine: alacritty opens, cal runs, exits,
and then alacritty closes since the process `cal' exited.

Try the equivalent of "sh -c 'cal && sleep 200'".

Tycho

-- 
You received this message because you are subscribed to the Google Groups 
"qtile-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/qtile-dev/20210302203418.GF421111%40cisco.

Reply via email to