You are not logged in.
Gathers cpu, cpu temp (with acpi), ram, net, wifi, battery, cpu clock and date/time info as well as notifications. Outputs either on stdout or as root window title (for dwm). Output formats for dwm, dwm with colostatusbar patch, dwm-sprinkles and HTML are provided (html is WIP) and relatively easy to create. MPD, acpi thermal and lm_sensors thermal support is planned.
Im open for more ideas what (and how) to monitor or to output to or how to format, even more so for patches.
The Project is based on this one: http://www.mail-archive.com/dwm@suckles … 06122.html
Here is the svn:
https://svn.0mark.unserver.de/statinator4k/
and a Bug tracker:
http://0mark.unserver.de/flyspray/index.php?project=6
*edit:* renamed from dstat to statinator4k, because its more cool(TM) and dstat was used by some other stuff
Last edited by 0mark (2011-07-01 18:50:26)
Ceterum autem censeo Systemdinem esse delendam
Offline
The choice of the name isn't most opportune, as a project called dstat already exists. http://dag.wieers.com/home-made/dstat/
Offline
Might I suggest renaming it to the STATINATOR 4000?
Offline
Might I suggest renaming it to the STATINATOR 4000?
You might, i do
Ceterum autem censeo Systemdinem esse delendam
Offline
lchr wrote:Might I suggest renaming it to the STATINATOR 4000?
You might, i do
hahaha, brilliant
Offline
lol
ᶘ ᵒᴥᵒᶅ
Offline
Added network monitor and fixed format for colorbar patch and dwm-sprinkles.
Ceterum autem censeo Systemdinem esse delendam
Offline
Added volume and support for cmus and mpd.
Example with dwm-sprinkles (my daily used config, so its pretty tuned up):
And a notification:
With dwm with colorbar patch (other pc, some info is not available):
Text output with mainline dwm formater (same setup as above):
C 7% | M 79% | eth0 UP | V 54% | 20 Jul 2011 - 12:41
Atm, only the dwm-sprinkles formater has a good default output. I dont use the other, so they are pretty dull now. On the other Hand, i doubt that any two users will use the same output
Last edited by 0mark (2011-07-20 10:47:08)
Ceterum autem censeo Systemdinem esse delendam
Offline
That's pretty neat. How does the dwm-sprinkles example do the icons and stuff?
I didn't think dwm-sprinkles was that advanced. Or is that with a dzen overlay or something?
Keep up the good work, I'll try it out!
EDIT: Could you post a PKGBUILD?
Last edited by apefish (2011-07-20 19:36:43)
Offline
I started sprinkles mostly for the Bar. It can now display bitmaps (out of a set of char arrays, defined at compile time*), simple bar graphs (cmus track postion and cpu load), or use bitmaps as bar graphs (volume, wifi and cpu clock). Full color support is also available. And a systray**. I think about using the parser that does the status bar in all strings in the bar, so one can have bitmaps for tiling mode, tags etc. Maybe even window titles, seems a pretty lightweight way to display status stuff
I do not know if s4k can be used with dzen, but if someone provides a formater i will gladly include it.
* I know... im working on a pbm reader. Actually, i have the source for one, but another project is holding me back
** A bit buggy, sometimes it leaves gaps. I have fixed that thrice, but it happens anyway
*edit*: And thanks
Last edited by 0mark (2011-07-20 21:00:26)
Ceterum autem censeo Systemdinem esse delendam
Offline
Added PKGBUILD:
http://aur.archlinux.org/packages.php?ID=50873
Ceterum autem censeo Systemdinem esse delendam
Offline
Sorry to revive this old thread but it was the only one I could find on this topic.
I guess I am a little confused on how to actually start it, my assumption was to add the config.h info it provides into my dwm-sprinkles but that just creates a lot of errors. Maybe I am suppose to add this to my .xinitrc?
Thanks.
Even a broken clock is right twice a day.
Diplomacy without force is like music without instruments.
Offline
I guess I am a little confused on how to actually start it, my assumption was to add the config.h info it provides into my dwm-sprinkles but that just creates a lot of errors. Maybe I am suppose to add this to my .xinitrc?
You need to configure and compile s4k, and then just run it, eg from .xinitrc. To configure, just select a output formater in config.mk (formats_dwm.h for vanilla dwm, formats_dwm_colorbar.h for dwm with statuscolor patch and formats_dwm_sprinkles.h for the pimped bar in dwm sprinkles). Then configure the used sensors and stuff by config.h. Finally, when you dislike the output you can configure that by altering yout formats_*.h file. Then compile, the resulting binary can be executed without installation. You can also do make install, and copy you config.mk, config.h and formats_*.h to $XDG_CONFIG_HOME/s4k, then run s4km instead of s4k, it will then recompile s4k whenever you change the config.h
Ceterum autem censeo Systemdinem esse delendam
Offline
Could you tell which packages are required for compiling in case of Debian?
Offline
I got this error when I try to compile it with dwm_colorbar:
statinator4k build options:
CFLAGS = -std=c99 -pedantic -Wall -Os -I. -I/usr/include -I/usr/X11R6/include -I/usr/include/dbus-1.0 -I/usr/lib/dbus-1.0/include -DVERSION="20.1" -DUSE_X11 -DUSE_SOCKETS -DUSE_NOTIFY -DUSE_ALSAVOL -DFORMAT_METHOD="formats_dwm_colorbar.h"
LDFLAGS = -L/usr/lib -lc -L/usr/X11R6/lib -lX11 -ldbus-1 -lasound
CC = cc
CC s4k.c
s4k.c: In function ‘get_brightness’:
s4k.c:614:2: warning: implicit declaration of function ‘brightness_format’ [-Wimplicit-function-declaration]
CC notify.c
CC -o s4k
s4k.o: In function `get_brightness':
s4k.c:(.text+0x1886): undefined reference to `brightness_format'
collect2: error: ld returned 1 exit status
make: *** [s4k] Error 1
zsh: exit 2 make
And with clang compiler:
statinator4k build options:
CFLAGS = -std=c99 -pedantic -Wall -Os -I. -I/usr/include -I/usr/X11R6/include -I/usr/include/dbus-1.0 -I/usr/lib/dbus-1.0/include -DVERSION="20.1" -DUSE_X11 -DUSE_SOCKETS -DUSE_NOTIFY -DUSE_ALSAVOL -DFORMAT_METHOD="formats_dwm_colorbar.h"
LDFLAGS = -L/usr/lib -lc -L/usr/X11R6/lib -lX11 -ldbus-1 -lasound
CC = clang
CC s4k.c
s4k.c:529:30: warning: comparison of unsigned expression < 0 is always false [-Wtautological-compare]
if(battery_stats[i].rate < 0) battery_stats[i].rate=1;
~~~~~~~~~~~~~~~~~~~~~ ^ ~
s4k.c:614:2: warning: implicit declaration of function 'brightness_format' is invalid in C99 [-Wimplicit-function-declaration]
brightness_format(status);
^
2 warnings generated.
CC notify.c
CC -o s4k
s4k.o:s4k.c:function get_brightness: error: undefined reference to 'brightness_format'
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make: *** [s4k] Error 1
zsh: exit 2 make
And compiling it with dwm_sprinkless works fine.
Offline
I got this error when I try to compile it with dwm_colorbar:
Sorry, i had quite a lot of work the last few months. I also have messed a bit with the svn, currently its not really working. Well, it works for me with the sprinkles format, but the others are more or less defunct. I will try to fix that soon.
Ceterum autem censeo Systemdinem esse delendam
Offline