Skip to content

blmayer/sysmon

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

28 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

sysmon

My system tray status monitor, goes well with DWM.

The defaults look like this:

NET I/O 561 27O | CPU 15.67% | MEM 28.23% | SWAP 10.65% | 2022-03-04 18:23:14

Emoji can also be used by pasting it directly on the format string, e.g.:

$CPU% | $MEM% $SWAP% | $BRI% | $BAT%$CHAR | $TIME

Dependencies

  • Go
  • Make

Installation

You can download and install the latest version directly using go with:

go install github.com/blmayer/sysmon@latest

Make sure your GOPATH is correctly set. Another option is to run

make install

The default installation directory is ~/local/bin and it can be changed setting the PREFIX variable, e.g.: PREFIX=~/.bin make install.

Usage

Add sysmon & to your .xinitrc file, default configuration is safe. The see all options that can be passed run sysmon -h.

If you are not using other status monitors you can try your configurations running sysmon in a terminal.

Changing the format

To change the output of sysmon use the -F flag, and pass the format string as argument, use single quotes to prevent your shell messing up the string. For example, just memory, CPU and date:

sysmon -F 'MEM $MEM% | CPU $CPU% | $TIME'

Defaults

The format is NET I/O $NIN $NOUT | CPU $CPU% | MEM $MEM% | SWAP $SWAP% | $TIME and it gives you that example above.

Update interval is different for each component and can be changed by using command line arguments, intervals are:

  • Network in and out, in Kbps: 2 seconds
  • CPU usage percentage: 2 seconds
  • RAM usage percentage: 2 seconds
  • SWAP usage in percent: 3 seconds
  • Time: each second

By default brightness, battery and weather are not displayed, to enable them use command line arguments. In order to display them you must pass the battery or the display name.

Roadmap

  • Clock
  • CPU Usage
  • MEM %
  • SWAP %
  • Network
  • Battery
  • Brightness
  • Weather (uses wttr.in)
  • More than one swap file/partition
  • Emoji
  • Configuration
    • Use yaml file
    • Set update interval
    • Define line format
    • Select what components to use
  • Wayland support (maybe another project)

Known users

Meta

License: MIT

See also

For a complete list visit dwm's page.