added WM support
This commit is contained in:
parent
9faf3cd4b2
commit
3262f354f7
2 changed files with 7 additions and 6 deletions
4
main.go
4
main.go
|
|
@ -78,8 +78,10 @@ func handlePrint(action, format string, rest string) {
|
|||
utils.CutePrint(data.GetMemory(false), format)
|
||||
case "memoryUsed":
|
||||
utils.CutePrint(data.GetMemory(true), format)
|
||||
case "wm":
|
||||
utils.CutePrint(data.GetWM(), format)
|
||||
default:
|
||||
print("{UNKNOWN KEYWORD}")
|
||||
print("{UNKNOWN KEYWORD: " + rest + "}")
|
||||
}
|
||||
if action == "infoln" {
|
||||
utils.CuteNewLine()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue