Nikolas Garofil
0ab2efc2b2
Add support for $no_update
2010-04-17 15:19:44 +02:00
Nikolas Garofil
5ef6de8822
Add support for $distribution
2010-04-15 16:05:42 +02:00
Nikolas Garofil
f5c147b160
Add support for $nodename_short
...
This is different implementation (compared to 9e3156a4a6
)
because 1.8.1 was still regular c instead of c++
2010-04-14 18:41:25 +02:00
Pavel Labath
d93dc72e6d
Random C++ification: to_real_path() and current_config
2010-03-04 17:40:20 +01:00
Pavel Labath
54630eb39e
Header housekeeping: remove unneeded extern "C", add modelines, add inclusion guards
...
hopefully, this doesn't break anything
2010-02-25 21:50:50 +01:00
Caleb Spare
c7fa36a5f2
$memwithbuffers object and bar (sf.net #2954143 )
...
I've added $memwithbuffers to complement $mem, $memeasyfree, etc. This
variable indicates the used system memory, regardless of buffers/caches. If
the "no_buffers" option is set to "no", it will be the same as $mem. The
reason I find this change useful is that I like to display both the total
used system memory and the memory being used by applications.
I've also included a memwithbuffersbar, which is the same as membar except
that it uses $memwithbuffers as the size instead of $mem.
Signed-off-by: Pavel Labath <pavelo@centrum.sk>
2010-02-18 18:32:25 +01:00
Pavel Labath
1de2a9e6c5
Add optional argument to $acpiacadapter
...
The exact location of the state information seems hardware dependent, so this adds the option to
specify it manually. (linux only)
2010-01-24 15:34:03 +01:00
Brenden Matthews
3e3dd16367
Update modelines and stuff.
2010-01-06 19:45:19 -08:00
Brenden Matthews
7e78f036f0
Use consistent naming for build option macros.
...
Probably have broken some build features with this commit.
2010-01-06 18:39:44 -08:00
Brenden Matthews
620e9876a4
C++ conversions WIP.
...
Currently stuck on an issue with g++ and using '%lli' with printf/scanf.
2010-01-04 19:21:12 -08:00
Phil Sutter
6f587402d8
cosmetic fixup session
...
- kill trailing whitespace (grep -n ' $' src/*.{c,cc,h})
- eliminate space before tab (grep -n ' ' src/*.{c,cc,h})
(insert tab by pressing CTRL-v first)
- little indenting fixup in configure.ac.in (we indent using tabs, not
spaces)
note: this should not change the actual code at all - if it does, feel
free to blame me personally ;)
2009-12-28 21:32:07 +01:00
Brenden Matthews
b6331b4eb6
Switch some more bits to C++, more CMake changes.
2009-12-09 20:05:32 -08:00
Phil Sutter
1382915d1e
convert loadgraphval to double
2009-12-04 22:18:54 +01:00
Phil Sutter
db2b056969
convert swap_barval to double
2009-12-04 22:18:53 +01:00
Phil Sutter
c5a8949784
convert mem_barval to double
2009-12-04 22:18:53 +01:00
Phil Sutter
d46a2cb1b2
convert cpu_barval to double
2009-12-04 22:18:53 +01:00
Phil Sutter
bfd7eabc0f
convert get_battery_perct_bar to double
2009-12-04 22:18:53 +01:00
Phil Sutter
e569803324
convert if_updatenr to callbacks.iftest
2009-12-01 00:32:33 +01:00
Phil Sutter
841a3814c8
convert $updates to callbacks.print
2009-12-01 00:32:32 +01:00
Phil Sutter
d48c2f143c
convert $include to callbacks.print
2009-12-01 00:32:32 +01:00
Phil Sutter
3ed82a34dd
convert blink to callbacks.print
2009-12-01 00:32:32 +01:00
Phil Sutter
dc0af635d6
convert to_bytes to callbacks.print
2009-12-01 00:32:32 +01:00
Phil Sutter
3fa5c55933
convert some non-openbsd objects to callbacks.{print,iftest}
2009-12-01 00:32:32 +01:00
Phil Sutter
c652427aed
convert freq and freq_g to callbacks.print
2009-12-01 00:32:32 +01:00
Phil Sutter
31c3734cc8
convert acpitemp to callbacks.{print,free}
2009-12-01 00:32:32 +01:00
Phil Sutter
a67ab7a3c8
convert some ifblock objects to callbacks.iftest
2009-12-01 00:32:32 +01:00
Phil Sutter
721cdbdd30
convert eval to callbacks.print
2009-12-01 00:32:32 +01:00
Phil Sutter
871c4b2d02
convert buffers and cached to callbacks.print
2009-12-01 00:32:32 +01:00
Phil Sutter
1f8bafbcfc
convert processes and threads objects to callbacks.print
2009-12-01 00:32:32 +01:00
Phil Sutter
b4aa2328d7
convert uptime objects to callbacks.print
2009-12-01 00:32:32 +01:00
Phil Sutter
cce12efda7
convert sysname to callbacks.print
2009-12-01 00:32:31 +01:00
Phil Sutter
e9dde6293b
convert nodename to callbacks.print
2009-12-01 00:32:31 +01:00
Phil Sutter
f84b14904c
convert kernel and machine to callbacks.print
2009-12-01 00:32:31 +01:00
Phil Sutter
177da5ffbb
convert mem and swap objects to callbacks.print
2009-12-01 00:32:31 +01:00
Phil Sutter
ef60b7eb8a
drop update_x11info()
...
instead:
- call XDefaultScreen() and XScreenCount() directly from the print
callback
- have no update callback at all for the desktop objects (seems to work
well without)
2009-12-01 00:32:31 +01:00
Phil Sutter
0631b2ab2e
convert swapperc to callbacks.percentage
2009-12-01 00:32:22 +01:00
Phil Sutter
feba298efa
convert memperc to callbacks.percentage
2009-12-01 00:31:09 +01:00
Phil Sutter
07f82f5cb6
convert cpu to callbacks.percentage
2009-12-01 00:29:28 +01:00
Phil Sutter
79f5726832
merge loadgraph to callbacks.graphval
2009-12-01 00:29:28 +01:00
Phil Sutter
086829b017
convert swapbar to callbacks
2009-11-30 23:55:48 +01:00
Phil Sutter
d2f3ae7e15
convert mem{gauge,graph,bar} to callbacks
2009-11-30 23:54:52 +01:00
Phil Sutter
4e63422d10
battery_bar: convert to callbacks.barval
2009-11-30 23:48:04 +01:00
Phil Sutter
c85295202b
convert cpubar to callbacks.barval
2009-11-30 23:34:20 +01:00
Phil Sutter
5249c9da04
if_mounted: convert to callbacks.iftest
2009-11-29 22:21:49 +01:00
Phil Sutter
970420106c
fix new_graph parameters
...
One should never print into buffers without knowing their size. Although
new_graph consumes only a single char, this may already be too much.
2009-11-22 21:12:54 +01:00
Phil Sutter
c8bed3a28d
voltage: outsource printing code
2009-11-20 00:02:42 +01:00
Phil Sutter
b6d1ff6c42
i8k: outsource code
2009-11-19 23:04:09 +01:00
Phil Sutter
44f76f4876
drop leftover freq_dynamic code in freebsd.c and openbsd.c
...
As the comment states, those functions were originally copied from
linux.c; in fact just the code which has been removed due to licensing
issues.
2009-11-16 19:41:06 +01:00
Phil Sutter
bde5845077
drop adt746x objects
...
This was really creepy stuff. Last updated in April, 2006 to work with
kernels > 2.6.12. I consider this "fobar" (fscking obsolete beyond all
recognition) and doubt anyone still uses this. If you do, blame me. :)
2009-11-13 00:47:23 +01:00
Nikolas Garofil
aad43bea8d
Added support for $threads and fixed $processes on Linux
2009-11-07 18:14:04 +01:00