How come this would only be the case for cal? I can open htop or calcurse 
no problem but not cal... 

The snippet that you sent doesn't seem to do anything on my machine

On Tuesday, 2 March 2021 at 20:34:39 UTC Tycho Andersen wrote:

> 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/bbf8ce62-ecb3-4766-a418-74739bc1811dn%40googlegroups.com.

Reply via email to