tmux-plugins / tmux-cpu

Plug and play cpu percentage and icon indicator for Tmux.
MIT License
444 stars 69 forks source link

RAM percentage doesn't work #44

Closed Ronll closed 4 years ago

Ronll commented 4 years ago

I am using ubuntu 19.10 on a dell xps 13 9370

.tmux.config:

set -g status-right 'CPU: #{cpu_percentage} | MEM: #{ram_percentage}| Battery: #{battery_percentage} | %H:%M '

Actual result: image (ram percentage is missing)

Didn't see anything in the "tmux-client-*.log" logs, let me know if I can share any other useful info

casperdcl commented 4 years ago

Can you clone the repository and run scripts/ram_percentage.sh? There should be an output percentage...

Ronll commented 4 years ago

Seems to work

image

casperdcl commented 4 years ago

Right so that means you need to update/reload your tmux env.

prefix + U(uppercase), all, [Enter]

Ronll commented 4 years ago

Worked like a charm,

Thanks.

vinipsmaker commented 4 years ago

It doesn't work here. I debugged the problem and the fix is to just put this at the beginning of the file scripts/ram_percentage.sh:

export LANG=C
casperdcl commented 4 years ago

@vinipsmaker feel like opening a PR?