Thanks to visit codestin.com
Credit goes to github.com

Skip to content

stmh/gopsuinfo

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

gopsuinfo

This project is a Go version of my psuinfo python script, written for educational purposes, and also for better performance. The code only implements these psuinfo features which I actually use.

gopsuinfo-waybar

The gopsuinfo command prints some customisable system usage information in a single line, and is intended to use with text-based panels, like Waybar or polybar.

The program uses the gopsutil package, Copyright (c) 2014, WAKAYAMA Shirou.

$ gopsuinfo -h
Use gopsuinfo list_mountpoints to see available mount points.
Usage of gopsuinfo:
  -c string
    	Output (c)omponents: (a)vg CPU load, (g)rahical CPU bar, disk usage by mou(n)tpoints, (t)emperatures, (m)emory, (u)ptime (default "gatmnu")
  -d string
    	CPU measurement delay [timeout] (default "450ms")
  -p string
    	Quotation-delimited, space-separated list of mou(n)tpoints (default "/")

Waybar custom modules:

"custom/cpubar": {
    "interval": 1,
    "return-type": "text",
    "exec": "gopsuinfo -c g",
    "escape": true
},
"custom/cpuavs": {
    "interval": 1,
    "return-type": "text",
    "exec": "gopsuinfo -c a",
    "escape": true
,
"custom/swayinfo": {
    "interval": 5,
    "return-type": "text",
    "exec": "gopsuinfo -c tmnu",
    "escape": true
}

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Go 100.0%