Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/andreoss/dst
A single-process scalable dynamic system monitor for dwm (and others) based upon libuv.
https://github.com/andreoss/dst
c dwm libuv suckless
Last synced: about 2 months ago
JSON representation
A single-process scalable dynamic system monitor for dwm (and others) based upon libuv.
- Host: GitHub
- URL: https://github.com/andreoss/dst
- Owner: andreoss
- Created: 2020-04-20T20:52:02.000Z (almost 5 years ago)
- Default Branch: master
- Last Pushed: 2021-10-10T02:40:01.000Z (over 3 years ago)
- Last Synced: 2023-03-12T00:33:34.421Z (almost 2 years ago)
- Topics: c, dwm, libuv, suckless
- Language: C
- Homepage:
- Size: 77.1 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# dst
[![Build Status](https://travis-ci.com/andreoss/dst.svg?branch=master)](https://travis-ci.com/andreoss/dst)Single-pid scalable dynamic system monitor for dwm (and others) based upon libuv.
## Usage
dst periodically updates name of X11's root window with a report line.
For [dwm](https://dwm.suckless.org/ "dwm") it's just enough to have a dst process started.
For [stumpwm](https://stumpwm.github.io/ "stumpwm") `root-name` should be added in `*screen-mode-line-format*` explicitly.
```lisp
(setf *screen-mode-line-format*
(list ".... ^>" '(:eval (root-name))))
(defun root-name ()
(let* ((screen (current-screen))
(selwin (screen-focus-window (current-screen)))
(root (screen-root screen)))
(utf8-to-string
(xlib:get-property root
:wm_name
:result-type '(vector (unsigned-byte 8))))))
```## Dependencies
- libuv
- xkbfile## Compile
On Nix
```
nix-build .
```Elsewhere
```
$ cmake .
$ make
$ make test
```## Install
On Nix
```
nix-env -i dst-dev -f default.nix
```Elsewhere
```
make install```