Murzchnvok / polybar-collection

Beautiful collection of Polybar themes
824 stars 47 forks source link

[Question] How to change the workspaces icons to Japanese numbers? #13

Closed Overfl0w-grrrl closed 2 years ago

Overfl0w-grrrl commented 2 years ago

Hi, I'm trying to replace the fire icons with these Japanese numbers: 1 = 一 2 = 二 3 = 三 4 = 四 5 = 五 6 = 六 7 = 七 8 = 八 9 = 九 10 =十 How do I do it? Thanks.

Murzchnvok commented 2 years ago

You need a font with support to japanese letters, I would recommend Noto Sans JP, but you can choose whatever you like.

1 - Add the font to the fonts.ini file: font-4 = "Noto Sans JP:10;4"

2 - This is an example to the bspwm module:

[module/bspwm]
type = internal/bspwm

ws-icon-0 = 1;一
ws-icon-1 = 2;二
ws-icon-2 = 3;三
ws-icon-3 = 4;四
ws-icon-4 = 5;五
ws-icon-5 = 6;六
ws-icon-6 = 7;七
ws-icon-7 = 8;八
ws-icon-8 = 9;九
ws-icon-9 = 0;零
ws-icon-default = 十

format = <label-state>

label-focused = %{T5}%icon%%{T-}

label-occupied = %{T5}%icon%%{T-}

label-urgent = %{T5}%icon%%{T-}

label-empty = %{T5}%icon%%{T-}
Overfl0w-grrrl commented 2 years ago

where do i put the module config? also, do you have a config example for i3?

Murzchnvok commented 2 years ago

You can edit the module from the theme you're using, and it would be the same for i3, the only difference is in the label name,

label-focused =
label-unfocused =
label-urgent =
label-visible =