Philip Kovacs <pkovacs at users dot sourceforge dot net>
tcp port monitor with hashing functionality
-
+
Audacious, Xmms, BMP, Infopipe stuff
Various Xlib changes, e.g. own_window hints, etc.
You can also try using the autogen.sh script, like so:
$ sh autogen.sh
-
+
* After that, it's the familiar
$ ./configure
${color lightgrey} ${top_mem name 2} ${top_mem pid 2} ${top_mem cpu 2} ${top_mem mem 2}
${color lightgrey} ${top_mem name 3} ${top_mem pid 3} ${top_mem cpu 3} ${top_mem mem 3}
$stippled_hr
-${color #ddaa00}Port(s)${alignr}#Connections
+${color #ddaa00}Port(s)${alignr}#Connections
$color Inbound: ${tcp_portmon 1 32767 count} Outbound: ${tcp_portmon 32768 61000 count}${alignr}ALL: ${tcp_portmon 1 65535 count}
${color #ddaa00}Inbound Connection ${alignr} Local Service/Port$color
${tcp_portmon 1 32767 rhost 0} ${alignr} ${tcp_portmon 1 32767 lservice 0}
Conky has more than 250 built in objects, including support for
a plethora of OS stats (uname, uptime, CPU usage, mem usage, disk
usage, "top" like process stats, and network monitoring, just to name a few),
- built in IMAP and POP3 support, built in support for many popular
+ built in IMAP and POP3 support, built in support for many popular
music players (MPD, XMMS2, BMPx, Audacious), and much much more.
Conky can display this info either as text, or using simple progress
bars and graph widgets, with different fonts and colours.
<title>Compiling</title>
<para>
For users compiling from source on a binary distro, make sure you have the X development
- libraries installed. This should be a package along the lines of "libx11-dev" or
+ libraries installed. This should be a package along the lines of "libx11-dev" or
"xorg-x11-dev" for X11 libs, and similar "-dev" format for the other libs required (depending
on your configure options).
</para>
<para>
- Conky has (for some time) been available in the repositories of most popular distributions.
+ Conky has (for some time) been available in the repositories of most popular distributions.
Here are some installation instructions for a few:
</para>
<para>
<title>Configuration Settings</title>
<para>
- Default configuration file location is $HOME/.conkyrc or
+ Default configuration file location is $HOME/.conkyrc or
${sysconfdir}/conky/conky.conf. On most systems, sysconfdir is /etc,
and you can find the sample config file there (/etc/conky/conky.conf).
</para>
Bar that shows amount of memory in use
<para></para></listitem>
</varlistentry>
-
+
<varlistentry>
<term>
<command><option>memgraph</option></command>
mboxscan.h \
$(x11) \
$(xmms2) \
- $(smapi)
+ $(smapi)
-AM_LDFLAGS = $(PTHREAD_LIBS) -lm
+AM_LDFLAGS = $(PTHREAD_LIBS) -lm
EXTRA_DIST = \
audacious.c \
x11.c \
xmms2.c \
smapi.c \
- users.c
-
+ users.c
+
# vi:set ts=8 sw=8 noet ai nocindent syntax=automake:
suffix++;
fnum = num / 1024.0;
-
+
precision = 3;
do {
precision--;
#endif
#ifdef NVIDIA
case OBJ_nvidia:
- break;
+ break;
#endif
#ifdef MPD
case OBJ_mpd_title:
END OBJ(entropy_poolsize, INFO_ENTROPY)
END OBJ(entropy_bar, INFO_ENTROPY)
scan_bar(arg, &obj->a, &obj->b);
-#ifdef NVIDIA
+#ifdef NVIDIA
END OBJ(nvidia, 0)
if (!arg){
CRIT_ERR("nvidia needs one argument "
if (length > 0 && output[length - 1] == '\n') {
output[length - 1] = '\0';
}
-
+
text_objects = parse_conky_vars(obj->data.execi.buffer, p, my_info);
obj->data.execi.last_update = current_update_time;
}
int hol = (strcmp((char*)&obj->data.nvidia.arg, "gpufreq")) ? 1 : 0;
if(!(obj->data.nvidia.value = get_nvidia_value(obj->data.nvidia.type, display, hol)))
snprintf(p, p_max_size, "value unavailible");
- else
+ else
spaced_print(p, p_max_size, "%*d", 4, "nvidia",
4, obj->data.nvidia.value);
-
+
}
#endif /* NVIDIA */
#ifdef NVIDIA
#include "nvidia.h"
#endif
-
+
#include "mboxscan.h"
#include "timed_thread.h"
#include "top.h"
/*
* check that device actually exists
*/
-
+
if (!(fp = open_file("/proc/diskstats", &rep))) {
ERR("cannot read from /proc/diskstats");
return 0;
memset(last_battery_time_str[idx], 0, sizeof(last_battery_time_str[idx]));
/* first try SYSFS if that fails try ACPI */
-
+
if (sysfs_bat_fp[idx] == NULL && acpi_bat_fp[idx] == NULL && apm_bat_fp[idx] == NULL) {
sysfs_bat_fp[idx] = open_file(sysfs_path, &rep);
rep = 0;
}
-
+
if (sysfs_bat_fp[idx] == NULL && acpi_bat_fp[idx] == NULL && apm_bat_fp[idx] == NULL) {
acpi_bat_fp[idx] = open_file(acpi_path, &rep);
}
-
+
if (sysfs_bat_fp[idx] != NULL) {
/* SYSFS */
int present_rate = -1;
int remaining_capacity = -1;
char charging_state[64];
char present[4];
-
+
strcpy(charging_state, "unknown");
-
+
while (!feof(sysfs_bat_fp[idx])) {
char buf[256];
if (fgets(buf, 256, sysfs_bat_fp[idx]) == NULL)
break;
-
+
/* let's just hope units are ok */
if (strncmp (buf, "POWER_SUPPLY_PRESENT=1", 22) == 0)
strcpy(present, "yes");
else if (strncmp(buf, "POWER_SUPPLY_CHARGE_FULL=", 25) == 0)
sscanf(buf, "POWER_SUPPLY_CHARGE_FULL=%d", &acpi_last_full[idx]);
}
-
+
fclose(sysfs_bat_fp[idx]);
sysfs_bat_fp[idx] = NULL;
-
+
/* Hellf[i]re notes that remaining capacity can exceed acpi_last_full */
if (remaining_capacity > acpi_last_full[idx])
acpi_last_full[idx] = remaining_capacity; /* normalize to 100% */
-
+
/* not present */
if (strcmp(present, "No") == 0) {
strncpy(last_battery_str[idx], "not present", 64);
int value;
char arg[20];
QUERY_ID type;
-};
+};
#endif
/* smapi.c: conky support for IBM Thinkpad smapi
*
* Copyright (C) 2007 Phil Sutter <Phil@nwl.cc>
- *
+ *
* This library is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
/* smapi.h: conky support for IBM Thinkpad smapi
*
* Copyright (C) 2007 Phil Sutter <Phil@nwl.cc>
- *
+ *
* This library is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
}
void handle_playlist_loaded(xmmsc_result_t *res, void *p) {
- struct information *ptr = p;
+ struct information *ptr = p;
if (ptr->xmms2.playlist == NULL) {
ptr->xmms2.playlist = malloc(text_buffer_size);