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 1 month 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 (about 5 years ago)
- Default Branch: master
- Last Pushed: 2021-10-10T02:40:01.000Z (over 3 years ago)
- Last Synced: 2025-02-10T04:41:45.605Z (3 months ago)
- Topics: c, dwm, libuv, suckless
- Language: C
- Homepage:
- Size: 77.1 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# dst
[](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```