Add $conky_user_time (sf.net #2830919)
authorCesare Tirabassi <norsetto@ubuntu.com>
Fri, 13 Nov 2009 15:30:04 +0000 (16:30 +0100)
committerCesare Tirabassi <norsetto@ubuntu.com>
Fri, 13 Nov 2009 15:30:04 +0000 (16:30 +0100)
commit363cf1ab7390a113c64390357dede0e452b91a58
treea22d4fe46f0d2d013fa616d282e134ba66d4c1f7
parentbde5845077ece28685f0fbe62f14544ff9161317
Add $conky_user_time (sf.net #2830919)

The bug reporter asks if it is possible to add a variable giving the "current
user time" only, since the variable user_times reports the times for ALL
logged users.
AFAIK, the only info one can gather inside conky, is the login time for the
tty connected to conky's standard input.
This commit adds support for it (it should work on any posix compliant *nix).
Note that in coherence with the definition, the variable is called
conky_user_time (for a single user stand-alone machine used as a desktop
this would be the "current" user time).
ChangeLog
doc/variables.xml
extras/nano/conky.nanorc
extras/vim/syntax/conkyrc.vim
src/conky.c
src/conky.h
src/core.c
src/text_object.h
src/users.c