Could you try Key([ "mod1" , "space" ], lazy.spawn("command that you
require")).......
On Thursday, 12 November 2020 at 01:44:52 UTC+5:30 [email protected] wrote:
> Thank you, but it doesn't work, it gives me this error:
> SyntaxError: closing parenthesis ']' does not match opening parenthesis
> '(' on line 53
>
>
> On Tuesday, November 10, 2020 at 10:23:16 p.m. UTC-5 John wrote:
>
>> 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/02ce8d88-a963-4888-9cf8-3a6c0862280dn%40googlegroups.com.