-
Notifications
You must be signed in to change notification settings - Fork 7
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Siji symbols not displaying in bar #20
Comments
Did you select the right characters via |
Oh, that is good to know about the xft version of lemonbar. I was using regular lemonbar at first then switched to the xft version when the symbols weren't appearing. I kept it because I didn't think there would be a difference while troubleshooting. To clarify, I have switched back to the standard lemonbar (installed via the AUR) and still have the same problem.
I believe they are the correct codes. I haven't changed them from the original example. I checked some, though.
|
Oh, wow, yeah I do! What does that mean? The information isn't properly being sent to lemonbar in config.py or lemonbar.py? |
how do you use |
Ah, okay that seems to be the problem then.
Then mail and the other elements are put in a list then string:
Then the string is used in a ConkeyWidget:
So I should make a ConkyGenerator for the symbols? Excuse my ignorance but what would the
when making the object |
You're right, that it is tricky and not very well documented. Here, the textpainter is the painter of lemonbar: from barpyrus import lemonbar
# ....
cg = conky.ConkyGenerator(lemonbar.textpainter())
with cg.clickable([1], spawn_htop):
with cg.temp_fg('#B7CE42'):
cg.symbol(0xe026);
cg += ' '; cg.var('cpu'); cg += '% '
with cg.temp_fg('#6F99B4'):
cg.symbol(0xe021);
cg += ' '; cg.var('memperc'); cg += '% '
for net in network_devices:
wireless_icons = [ 0xe218, 0xe219, 0xe21a ]
wireless_delta = 100 / len(wireless_icons)
with cg.if_('up %s' % net):
cg.fg('#FEA63C')
if net[0] == 'w':
with cg.cases():
for i,wicon in enumerate(wireless_icons[:-1]):
cg.case('match ${wireless_link_qual_perc %s} < %d' % (net,(i+1)*wireless_delta))
cg.symbol(wicon)
cg.else_()
cg.symbol(wireless_icons[-1]) # icon for 100 percent
else:
cg.symbol(0xe197) # normal wired icon
cg.fg('#D81860') ; cg.symbol(0xe13c) ; cg.fg('#CDCDCD') ; cg.var('downspeed %s' % net)
cg.fg('#D81860') ; cg.symbol(0xe13b) ; cg.fg('#CDCDCD') ; cg.var('upspeed %s' % net)
cg.drawRaw('%{F-}%{B-}') The code above is from my personal barpyrus config |
Thanks! With that example I can get symbols in the bar. Now I just need to configure it for my setup a bit. Thank you for all the help, I appreciate it. I will close the issue now as my problem is resolved. Although would you possibly consider including your config (or maybe a similar, but simpler one) in the share folder of the repo as an example. The current examples seem outdated and none of them utilize a ConkyGenerator. I assume having a config similar to yours to base their own off of would likely make it easier for others as well. Of course, This might just be a "me problem" though, and if that is the case feel free to ignore. Either way thanks for the help and the great software. |
I cannot get siji symbols to display properly in the bar. All I get are small squares of color where the symbols should be:
![2022-09-08-221404_414x13_scrot](https://user-images.githubusercontent.com/113154209/189257907-360d2b0e-1f51-4f1c-80c1-bd88bc58e721.png)
The font appears to be installed correctly when I check fc-list and xlsfonts. And I am using the example gruvbox_config.py from the share folder. These are, essentially, the only lines of the code that I've changed so far:
Any ideas would be appreciated, thanks!
The text was updated successfully, but these errors were encountered: