I think the problem is that the double-quotes are messing with each other 
in your lazy.spawn. Looking at the code, the computer sees two strings with 
some invalid text between the two:

*"rofi -modi "*clipboard:greenclip print*" -show clipboard -run-command 
'{cmd}' "*

To fix this, you need to tell the computer to ignore your inner quotation 
marks like so:

"rofi -modi *\"*clipboard:greenclip print*\"* -show clipboard -run-command 
'{cmd}' "

Tell me if that works!
On Tuesday, November 10, 2020 at 5:25:27 PM UTC-5 [email protected] wrote:

>
> Hi guys
> I have greenclip as my main clipboard and I'm using rofi to access my 
> clipboard.
> This command is :
>
>     rofi -modi "clipboard:greenclip print" -show clipboard -run-command 
> '{cmd}'    
>
> I'm trying to bind a key for this command in qtile:
>
>   Key(["mod1"], "space" ,lazy.spawn("rofi -modi "clipboard:greenclip 
> print" -show clipboard -run-command '{cmd}' "),    
>
> It's not working and it says "invalid syntax"
> Can someone help to spawn this command in Qtile please?
>

-- 
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/02815b67-16a2-4519-a6f5-2588955e2e41n%40googlegroups.com.

Reply via email to