modulepackage
0.0.0-20210703013129-3f331ed83a68
Repository: https://github.com/alcortesm/sysmon.git
Documentation: pkg.go.dev
# README
sysmon
Shows a graph with the recent CPU usage history in your i3 status bar.
Installation
; go install github.com/alcortesm/sysmon/cmd/sysmon@latest
; go install github.com/alcortesm/sysmon/cmd/sysmon-server@latest
Usage
To use sysmon as part of your i3status bar:
-
Create an executable script with the following content and add it to your path:
#!/bin/bash i3status | while : do read line load=`sysmon` echo "sysmon: $load | $line" || exit 1 done
This will call the regular i3status command and the sysmon command and combine their outputs into a single line.
For purpose of demonstration, we will call this script
i3status_with_sysmon
. -
Now modify your
.i3/conf
file, to tell i3 to run your script, instead of the regular i3status command:bar { # status_command i3status status_command i3status_with_sysmon }
# Constants
CPUsUsageHistoryMethod is the dbus method id call for clients.
InterfaceName is the D-bus interface name the sysmon server implements.
IntrospectDataString is the string that the Instrocpect method will return.
Path is the single D-bus path the server will use.
WellKnownBusName is the D-bus "well know bus name" that the server will use for its connection.
# Interfaces
The server interface provides a higher-level API suitable for applications to run and shutdown sysmon servers.