Yep, that fixed it. You are a champion, thank you!

On Thu, Dec 31, 2020 at 5:42 AM el Paraguayo <[email protected]>
wrote:

> If it does have a new line character, just add ".strip()" to the end of
> your lambda function.
>
> On Thu, 31 Dec 2020, 11:29 el Paraguayo, <[email protected]>
> wrote:
>
>> Is your script outputting a new line character at the end?
>>
>> On Thu, 31 Dec 2020, 10:06 Nimble Clint, <[email protected]> wrote:
>>
>>> Hi, I'm trying to set up a kdeconnect widget on my qtile bar. I have the
>>> following widget in my config file:
>>>
>>> widget.GenPollText(
>>>     update_interval=1,
>>>     func=lambda:
>>> subprocess.check_output("/path/to/kdeconnect.sh").decode("utf-8"),
>>>     foreground = color[0],
>>>     background = color[2],
>>>     font = "DejaVu Sans Mono Nerd Font",
>>>     fontsize = 25,
>>> )
>>>
>>> The icon shows up like I want it too, but it's too high up. Take a look
>>> at the green square on the right of the attached screenshot. It does this
>>> whether the output is a Nerd Font icon like this or regular characters. Is
>>> there a way to bring the icon down to the middle of the widget?
>>>
>>> [image: widget.png]
>>>
>>> Thanks!
>>>
>>> --
>>> 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/a5479633-c209-4150-9adb-468a2ddbf3e0n%40googlegroups.com
>>> <https://groups.google.com/d/msgid/qtile-dev/a5479633-c209-4150-9adb-468a2ddbf3e0n%40googlegroups.com?utm_medium=email&utm_source=footer>
>>> .
>>>
>> --
> You received this message because you are subscribed to a topic in the
> Google Groups "qtile-dev" group.
> To unsubscribe from this topic, visit
> https://groups.google.com/d/topic/qtile-dev/T3zHHjbC0wo/unsubscribe.
> To unsubscribe from this group and all its topics, send an email to
> [email protected].
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/qtile-dev/CADPQLhDUP%3DG%2Bi-jVUjA0_4hLc9zyFOGQ-oGWOErUW3nxzxqFxA%40mail.gmail.com
> <https://groups.google.com/d/msgid/qtile-dev/CADPQLhDUP%3DG%2Bi-jVUjA0_4hLc9zyFOGQ-oGWOErUW3nxzxqFxA%40mail.gmail.com?utm_medium=email&utm_source=footer>
> .
>

-- 
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/CAFg9NJngm7d7zwGKE%2BRbz%3Djn0FGdyBhUxRW6z94bdFP5wbnX3w%40mail.gmail.com.

Reply via email to