You are not logged in.

#1 2012-07-10 06:52:52

lowercasename
Member
Registered: 2012-03-12
Posts: 3

Conky in DWM not displaying a Unicode symbol

Hi, I'm pretty new to scripting in Linux (and Linux in general, really), and I've spent a few hours on this one problem and it's just really stumped me now.

I'm using Conky in my DWM bar, and I'm trying to display icons found in ohsnap.icons (https://bbs.archlinux.org/viewtopic.php?pid=1025967). From here I learnt that

echo -e '\u0ED'

would give me the symbols in Conky, and used gbdfed to get the codes. However, Conky displays nothing. I've tried a bash script called via '${exec}' and '${execi}' with the echo in it, I've tried '${exec echo -e '\u0ED'}', I've tried spinning around three times and wishing hard... If I type the command in a terminal using the font, it works without a hitch. I'm really stumped!

EDIT: On a whim, I also tried it with awk, the $'string' construction, and python, as suggested here. No dice!

EDIT: Ah, worked it out! As soon as I post, of course... had to copy the symbol from the terminal into .conkyrc, and then it works... somehow. I shan't try to understand.

Last edited by lowercasename (2012-07-10 07:21:52)

Offline

#2 2012-07-10 07:54:56

litemotiv
Forum Fellow
Registered: 2008-08-01
Posts: 5,026

Re: Conky in DWM not displaying a Unicode symbol

If you managed to fix it, please mark your thread solved by prepending [Solved] to the topic title!


ᶘ ᵒᴥᵒᶅ

Offline

#3 2012-07-10 16:34:54

ANOKNUSA
Member
Registered: 2010-10-22
Posts: 2,141

Re: Conky in DWM not displaying a Unicode symbol

For future reference: The unicode input (is that the right term?) that the character is assigned to varies with the different sizes of the font.  Check that thread to make sure you're using the correct input to achieve the desired output.

Offline

Board footer

Powered by FluxBB