Skip to content
/ stmx Public

Simple commandline utility to get systems stat for tmux status bar

Notifications You must be signed in to change notification settings

Anupal/stmx

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

STMX - Stats on Tmux

Simple commandline utility to get systems stats.

Note

Only supports 64bit Linux at the moment.

Features

  • CPU
    • Gets CPU utilization as a percentage
  • Memory
    • Memory utilization as a percentage OR
    • CURRENT / TOTAL format in both base2 and base10 memory units.
  • Battery
    • Current status - Charging or Discharging
    • Current capacity as percentage
  • NERDFont icons!

Examples

CPU

# print cpu usage with icons
$ stmx cpu -i -p
 0.79

# use custom CPU icon
$ stmx cpu -i 'C'
C 0.77

# use custom percent icon
$ stmx cpu -i -p '%'
 0.78%

# use custom CPU and percent icons
$ stmx cpu -i 'CPU' -p '%'
CPU 0.77%

Memory

# print memory usage with icons
$ stmx memory -i -p
 19.41

# use custom memory icon
$ stmx memory -i 'M' -p '%'
M 19.35%

# use other memory units
$ stmx memory -i -u GigaBytes
 7 / 32
$ stmx memory -i 'MEM' -u Megabytes
MEM 6219 / 32150

Battery

# print battery info with icons
$ stmx battery -i -s -p
󰂁󱐋 89

# use custom percent icon
$ stmx battery -i -s -p '%'
󰂁󱐋 88%

Examples - Tmux

I use following config to get an informative Tmux status bar.

FG="#ffffff"
BG="#005f87"

set-option -g status-right "\
#[fg=${FG},bg=${BG}] \
#(stmx battery -ips) | \
#(stmx memory -ip) | \
#(stmx cpu -i) | \
%h %d %H:%M "
set -g status-right-length 100

Tmux screenshot

Requirements

  • The binaries are self-contained and are available as part of each release, but you will need .NET 10 SDK if you want to build it yourself.
  • Icons use Nerd Fonts

About

Simple commandline utility to get systems stat for tmux status bar

Resources

Stars

Watchers

Forks

Packages

No packages published