Skip to content

Instantly share code, notes, and snippets.

@nakal
Created April 2, 2017 14:05
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save nakal/8af27fb4d3224b31bc757b6c4967c414 to your computer and use it in GitHub Desktop.
Save nakal/8af27fb4d3224b31bc757b6c4967c414 to your computer and use it in GitHub Desktop.
SysInfoBar on Linux
CPU Info: /proc/stat, line "cpu", first 4 columns
Net Info: /proc/net/netstat, IpExt lines, match "octets" column titles with values
Bat Info: /sys/bus/acpi/drivers/battery/PNP0C0A:00/power_supply/BAT0/capacity
Mem Info: /proc/meminfo
ToDo:
- split up SysInfoBar for each OS
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment