- Notifications
You must be signed in to change notification settings - Fork8
License
mKaloer/powerline_mem_segment
Folders and files
| Name | Name | Last commit message | Last commit date | |
|---|---|---|---|---|
Repository files navigation
Segment forPowerline showing the current memory usage in percent or absolute values.

pip install powerline-mem-segmentTo apply the segment, add the following to the Powerline configuration file:
{ "function": "powerlinemem.mem_usage.mem_usage"}For a percentage status, use themem_usage_percent callable:
{ "function": "powerlinemem.mem_usage.mem_usage_percent"}The format can be configured using theformat argument:
{ "function": "powerlinemem.mem_usage.mem_usage_percent", "priority": 50,"args": { "format": "Mem: %d%%"}}The type of memory to use can be configured by passing the desiredpsutil attribute name as themem_type argument (the default is "used"):
{ "function": "powerlinemem.mem_usage.mem_usage", "priority": 50,"args": { "mem_type": "active"}}The short form of size units (i.e. "K", "M", "G"...) can be used by passing theshort argument (the default isFalse):
{ "function": "powerlinemem.mem_usage.mem_usage","args": { "short": true}}For swap memory usage, use themem_swap callable which accepts the same arguments asmem_usage:
{ "function": "powerlinemem.mem_usage.mem_swap"}One or two highlight groups namedmem_usage andmem_usage_gradient have to be defined in the colorscheme json file. For example:
"mem_usage": { "fg": "gray8", "bg": "gray0", "attrs": [] },"mem_usage_gradient": { "fg": "green_yellow_orange_red", "bg": "gray0", "attrs": [] }The only dependency ispsutil.
About
Topics
Resources
License
Uh oh!
There was an error while loading.Please reload this page.
Stars
Watchers
Forks
Packages0
Uh oh!
There was an error while loading.Please reload this page.
Contributors7
Uh oh!
There was an error while loading.Please reload this page.