I want to make shutdown button with 5 seconds delay and canceling.

mouse_callbacks = {'Button1': lambda qtile: qtile.cmd_spawn("sleep 5 && 
> shutdown now"), 'Button3': lambda qtile: qtile.cmd_spawn("pkill sleep")}


This code is not working, it seems that cmd_spawn can't run two commands 
because qtile.cmd_spawn("sleep 5") works well.
Any suggestions how can I realize this?

-- 
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 qtile-dev+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/qtile-dev/18af6362-414b-4771-8ab9-4f80bbc5896do%40googlegroups.com.

Reply via email to