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.
]]>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.
]]>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
]]>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.
]]>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
]]>Keep up the good work, I'll try it out!
EDIT: Could you post a PKGBUILD?
]]>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
]]>lchr wrote:Might I suggest renaming it to the STATINATOR 4000?
You might, i do
hahaha, brilliant
]]>Might I suggest renaming it to the STATINATOR 4000?
You might, i do
]]>