archcraft-os / archcraft

// Source : ISO
https://archcraft.io
GNU General Public License v3.0
3.04k stars 104 forks source link

Polybar module language issue #247

Closed cyl3x closed 2 years ago

cyl3x commented 2 years ago

Detailed Description

I use German as my primary language on my system. The polybar module/used-memory uses "free -m" to detect the current memory usage, but because my language is not English and "free" giving outputs in native languages, the "sed"-command to prass the output is not working. My simple fix for that is adding "LANG=en_US.utf-8" in front of the command sequence.

Steps to Reproduce

Change language to something else than english

petsam commented 2 years ago

My simple fix

The proper way (not a workaround) is to set the locale in the polybar config (each theme has its own config, so either edit all themes' files, or the one you use). For example, this

cyl3x commented 2 years ago

Maybe you are right, but then the date module would not display the date/time in my native Language. Another approach would be to use the "internal/memory" to get the used memory instead of an custom script

petsam commented 2 years ago

@cyl3x I just misunderstood. You are right.

adi1090x commented 2 years ago

Noted, Will be fixed in upcoming release.