Xfce Forum

Sub domains
 

You are not logged in.

#1 2021-04-10 06:40:33

djorr5
Member
Registered: 2021-02-07
Posts: 15

Using unicode for Icons in Panel - SOLVED

Hi gurus,

I am playing around with a new desktop look and I noticed in their scripts they use unicode for the icons in the panel. i.e.

memIcon=$(echo "\uf85a")

They mentioned in the instructions to install Nerd-Fonts and I have installed Hack Nerd fonts and run

fc-cache -fv

and even restarted but I cannot get the icon to show in the panel. It just shows \uF85A.

Any idea what I am doing wrong?

Last edited by djorr5 (2021-04-12 04:59:13)

Offline

#2 2021-04-10 13:34:59

ToZ
Administrator
From: Canada
Registered: 2011-06-02
Posts: 11,486

Re: Using unicode for Icons in Panel - SOLVED

Who is "they" and what scripts are you referring to?

Taking a guess here, but you would probably need to pass the "-e" parameter to the echo command:

memIcon=$(echo -e "\uf85a")

From "man echo":

-e     enable interpretation of backslash escapes


Please remember to mark your thread [SOLVED] to make it easier for others to find
--- How To Ask For Help | FAQ | Developer Wiki  |  Community | Contribute ---

Offline

#3 2021-04-12 04:57:22

djorr5
Member
Registered: 2021-02-07
Posts: 15

Re: Using unicode for Icons in Panel - SOLVED

I got it sorted. I didn't have UTF-8 set for my LANG

LANG=en_AU

was all I had. I created locale.conf and set my LANG to

LANG=en_AU.UTF-8

Last edited by djorr5 (2021-04-12 04:58:10)

Offline

Registered users online in this topic: 0, guests: 1
[Bot] ClaudeBot

Board footer

Powered by FluxBB
Modified by Visman

[ Generated in 0.007 seconds, 8 queries executed - Memory usage: 522.95 KiB (Peak: 523.79 KiB) ]