All Projects → mKaloer → powerline_mem_segment

mKaloer / powerline_mem_segment

Licence: Apache-2.0 license
No description or website provided.

Programming Languages

python
139335 projects - #7 most used programming language

Projects that are alternatives of or similar to powerline mem segment

Powerline
Powerline is a statusline plugin for vim, and provides statuslines and prompts for several other applications, including zsh, bash, tmux, IPython, Awesome and Qtile.
Stars: ✭ 12,989 (+86493.33%)
Mutual labels:  powerline
V2GInjector
V2GInjector - Tool to intrude a V2G PowerLine network, but also to capture and inject V2G packets
Stars: ✭ 79 (+426.67%)
Mutual labels:  powerline
cpu monitor
ROS node that publishes all nodes' CPU and memory usage
Stars: ✭ 52 (+246.67%)
Mutual labels:  psutil
Powerline Web Fonts
Powerline Web Fonts for Chromebook
Stars: ✭ 178 (+1086.67%)
Mutual labels:  powerline
perplexed
OTF monospace typeface, a derivative of IBM Plex Mono with Powerline glyphs added
Stars: ✭ 23 (+53.33%)
Mutual labels:  powerline
killer
Windows Task Manager with special features, written in Python.
Stars: ✭ 49 (+226.67%)
Mutual labels:  psutil
Awsome Jp Coding Fonts
Awsome Japanese Coding Fonts
Stars: ✭ 96 (+540%)
Mutual labels:  powerline
onestatus
an api to customize tmux from vim
Stars: ✭ 82 (+446.67%)
Mutual labels:  powerline
.oh-my-comma
The idea of a 'workbench for developers' - Shell utilities, tooling, and dotfiles for comma.ai's open-source self-driving car technology stack
Stars: ✭ 110 (+633.33%)
Mutual labels:  powerline
powerline.kak
Kakoune modeline, but with passion
Stars: ✭ 49 (+226.67%)
Mutual labels:  powerline
.tmux
🇫🇷 Oh my tmux! My self-contained, pretty & versatile tmux configuration made with ❤️
Stars: ✭ 15,594 (+103860%)
Mutual labels:  powerline
zsh-powerline
Powerline for Zsh in pure Zsh script. See also https://github.com/riobard/bash-powerline
Stars: ✭ 34 (+126.67%)
Mutual labels:  powerline
powerline-shell
A Powerline-style shell prompt written in pure Bash
Stars: ✭ 16 (+6.67%)
Mutual labels:  powerline
Powerline Go
A beautiful and useful low-latency prompt for your shell, written in go
Stars: ✭ 2,299 (+15226.67%)
Mutual labels:  powerline
cmder-powershell-powerline-prompt
Custom PowerShell prompt for Cmder on Windows
Stars: ✭ 94 (+526.67%)
Mutual labels:  powerline
Sbt Prompt
An SBT plugin for making your SBT prompt more awesome
Stars: ✭ 107 (+613.33%)
Mutual labels:  powerline
nvim configration
Neovim diy develop enviroment.This project integrates neovim tmux zsh and some very useful plugs of them including YouCompleteMe FZF auto pairs nerdtree ncm2 and so on.
Stars: ✭ 22 (+46.67%)
Mutual labels:  powerline
dotfiles
🔧 .files - different setups separated in branches
Stars: ✭ 168 (+1020%)
Mutual labels:  powerline
fishline
A powerline prompt framework for the fish-shell built in fish-shell.
Stars: ✭ 66 (+340%)
Mutual labels:  powerline
Pycraft
Pycraft is the OpenGL, open world, video game made entirely with Python. This project is a game to shed some light on OpenGL programming in Python as it is a seldom touched area of Python's vast amount of uses. Feel free to give this project a run, and message us if you have any feedback!
Stars: ✭ 39 (+160%)
Mutual labels:  psutil

Powerline Memory Segment

Segment for Powerline showing the current memory usage in percent or absolute values.

Installation

pip install powerline-mem-segment

Usage

To apply the segment, add the following to the Powerline configuration file:

{
    "function": "powerlinemem.mem_usage.mem_usage"
}

For a percentage status, use the mem_usage_percent callable:

{
    "function": "powerlinemem.mem_usage.mem_usage_percent"
}

The format can be configured using the format 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 desired psutil attribute name as the mem_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 the short argument (the default is False):

{
    "function": "powerlinemem.mem_usage.mem_usage",
	"args": {
	    "short": true
	}
}

For swap memory usage, use the mem_swap callable which accepts the same arguments as mem_usage:

{
    "function": "powerlinemem.mem_usage.mem_swap"
}

One or two highlight groups named mem_usage and mem_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": [] }

Dependencies

The only dependency is psutil.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].