Iconic font in widget.

25 views
Skip to first unread message

Jonny Wester

unread,
Feb 3, 2022, 6:23:31 PM2/3/22
to qtile-dev
Hi I am trying to appy iconic font to my clock widget. I get configuration error. Can it be a missing library import and in that case which?

Thankful for a hint

womp

el Paraguayo

unread,
Feb 4, 2022, 12:47:01 AM2/4/22
to qtil...@googlegroups.com
If you get a configuration error, there will be a message in your log file. Can you paste the here please.

Also, please share the line from your config where you create the clock widget.


--
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+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/qtile-dev/74b21781-788c-47be-960e-9f0295e6183an%40googlegroups.com.

Jonny Wester

unread,
Feb 4, 2022, 1:03:52 AM2/4/22
to qtil...@googlegroups.com
Hi and thanks for answer!

````
widget.Textbox(
                text = '{}',
                background = "#585858",
                font = "FontAwesome",
                fontsize = 11,
                padding = 0,
),
````

This was the only thing I could find in qtile.log related to this.
2022-02-04 05:31:49,677 ERROR libqtile manager.py:cmd_restart():L1095 Preventing restart because of a configuration error:

el Paraguayo

unread,
Feb 4, 2022, 1:15:24 AM2/4/22
to qtil...@googlegroups.com
That's not the clock widget but it should be widget.TextBox (capital B)

Jonny Wester

unread,
Feb 4, 2022, 4:45:51 AM2/4/22
to qtil...@googlegroups.com
Well, no you are right!
I do not know how else to do if I want a clock icon in front of clock widget.
Thanks for your good eyes!

womp

me

unread,
Feb 10, 2022, 1:50:11 AM2/10/22
to qtile-dev
I don't know if I'm too late.
But you don't have to make a TextBox widget to put an icon into Clock.
Just
widget.Clock(format="<your icon here><whatever clock format you use>")
:)

Jonny Wester

unread,
Feb 10, 2022, 4:42:21 AM2/10/22
to qtil...@googlegroups.com
I thank you for answer! It's never too late! I went with textBox but your solution is better. I will fiddle a bit with it!
Thanks again!

womp

Reply all
Reply to author
Forward
0 new messages