For a local IP you can use addr interface (see man conky).Eckos wrote:is there a way to get your current ip address on there?
I've been using this:skiidoo wrote:For a local IP you can use addr interface (see man conky).Eckos wrote:is there a way to get your current ip address on there?
For your external IP, you can use a script that will curl/wget | awk the content of websites like www.ip-adress.com and similars. You could even upload your own PHP script somewhere to make it more easy to parse.
Someone previously posted his setup, which uses such a ${exec} trick.
Code: Select all
${execi 10800 curl -s http://cene.ath.cx/ip.cgi}Code: Select all
#!/usr/bin/perl -w
use strict;
use CGI;
print CGI::header();
print "$ENV{REMOTE_ADDR}\n";Having a CGI hosting might be difficult to get, so here's the PHP version (which is shorter btw :p):schene wrote:You can use the ip.cgi from my server (by using exactly the line I pasted above), or host it yourself somewhere. :P
Although running it on the local machine (or network) will probably give you just 127.0.0.1 or your LAN ip.
ip.cgi:Code: Select all
#!/usr/bin/perl -w use strict; use CGI; print CGI::header(); print "$ENV{REMOTE_ADDR}\n";
Code: Select all
<?php echo($_SERVER['REMOTE_ADDR']); ?>Code: Select all
coretemp-isa-0000
Adapter: ISA adapter
Core 0: +36 C (high = +100 C)
coretemp-isa-0001
Adapter: ISA adapter
Core 1: +36 C (high = +100 C)
coretemp-isa-0002
Adapter: ISA adapter
Core 2: +35 C (high = +100 C)
coretemp-isa-0003
Adapter: ISA adapter
Core 3: +35 C (high = +100 C)
lm78-i2c-1-28
Adapter: SMBus nForce2 adapter at f000
VCore 1: +2.34 V (min = +0.00 V, max = +3.49 V)
VCore 2: +2.98 V (min = +2.05 V, max = +0.51 V) ALARM
+3.3V: +3.26 V (min = +0.22 V, max = +2.58 V) ALARM
+5V: +5.48 V (min = +3.90 V, max = +1.51 V) ALARM
+12V: +9.06 V (min = +0.18 V, max = +4.68 V) ALARM
-12V: -11.01 V (min = -3.78 V, max = -1.56 V) ALARM
-5V: -5.51 V (min = -1.61 V, max = -0.24 V) ALARM
fan1: 5000 RPM (min = 5152 RPM, div = 2) ALARM
fan2: 1081 RPM (min = 2960 RPM, div = 8) ALARM
fan3: 0 RPM (min = 675000 RPM, div = 2) ALARM
temp: +8.0 C (high = +0 C, hyst = +127 C) ALARM
vid: +3.10 V
alarms: Board temperature input (LM75) ALARM
alarms: Chassis intrusion detection ALARM
w83627dhg-isa-0290
Adapter: ISA adapter
VCore: +1.18 V (min = +0.00 V, max = +1.74 V)
in1: +9.82 V (min = +6.76 V, max = +1.69 V) ALARM
AVCC: +3.26 V (min = +0.22 V, max = +2.58 V) ALARM
3VCC: +3.26 V (min = +2.32 V, max = +0.90 V) ALARM
in4: +1.19 V (min = +0.02 V, max = +0.62 V) ALARM
in5: +1.58 V (min = +0.22 V, max = +0.54 V) ALARM
in6: +5.86 V (min = +0.26 V, max = +1.72 V) ALARM
VSB: +3.26 V (min = +2.82 V, max = +0.56 V) ALARM
VBAT: +3.04 V (min = +0.83 V, max = +2.24 V) ALARM
Case Fan: 4963 RPM (min = 5152 RPM, div = 2) ALARM
CPU Fan: 1095 RPM (min = 2960 RPM, div = 8) ALARM
Aux Fan: 0 RPM (min = 10546 RPM, div = 128) ALARM
fan4: 0 RPM (min = 10546 RPM, div = 128) ALARM
fan5: 0 RPM (min = 10546 RPM, div = 128) ALARM
Sys Temp: +8 C (high = +0 C, hyst = +127 C) [CPU diode ]
CPU Temp: +33.5 C (high = +127.0 C, hyst = +0.0 C) [CPU diode ] ALARM
AUX Temp: +30.0 C (high = +127.0 C, hyst = +0.0 C) [thermistor]
vid: +0.000 V
Code: Select all
conky[6939]: segfault at 0000000c eip 0805c6c6 esp bfa3d090 error 4Does it work with a different config?BeteNoire wrote:Hi. I have three computers, and on all of them Conky segfaults with similar error:Why?Code: Select all
conky[6939]: segfault at 0000000c eip 0805c6c6 esp bfa3d090 error 4
Here's the config.
Code: Select all
${color yellow}$stippled_hr
${color red}Disk Activity
${color yellow}/System ${color green}${goto 105} ${diskio_read /dev/sda1} ${goto 200}${color red}${alignr 0}${disk
io_write /dev/sda1}
${color green}${diskiograph_read /dev/sda1 12,120} ${color red}${goto 130} ${diskiograph_write /dev/sda1 12,120}
${color yellow}/Home ${color green}${goto 105} ${diskio_read /dev/sda3} ${goto 200}${color red}${alignr 0}${diskio
_write /dev/sda3}
${color green}${diskiograph_read /dev/sda3 12,120} ${color red}${goto 130} ${diskiograph_write /dev/sda3 12,120}
Code: Select all
conky[7686]: segfault at 0000000000000000 rip 00002b3a10caabf0 rsp 00007fff9b6345b8 error 4Code: Select all
${pop3_unseen pop.host.org user pass}Code: Select all
Conky: Trying POP3 connection again for user@pop.host.org (try 3/5)
Conky: POP3 server login failed: +OK
Code: Select all
${offset 10}${color slate grey}HOME: ${color }${fs_free /home}/${fs_size /home}
${offset 10}${fs_bar 3,140 /home}
${offset 10}${color slate grey}p2pshare: ${color }${fs_free /home/bytenirvana/p2pshare}/${fs_size /home/bytenirvana/p2pshare}
${offset 10}${fs_bar 3,140 /home/bytenirvana/p2pshare}
Code: Select all
# df /
and
# df /home
Code: Select all
file:///home/music/O.N.A/%5B1998%5D%20T.R.I.P/01%20-%20Nie%20chce%20nigdy%20-%20babcia.mp3Code: Select all
${exec perl -e '$_=`audtool current-song-filename`;s#file://##;s/%(..)/pack('c',hex($1))/eg;print'}Code: Select all
/home/music/O.N.A/[1998] T.R.I.P/01 - Nie chce nigdy - babcia.mp3Code: Select all
--- ACPI (Advanced Configuration and Power Interface) Support │ │
│ │ [ ] Deprecated /proc/acpi files │ │
│ │ [ ] Deprecated power /proc/acpi folders │ │
│ │ [ ] Future power /sys interface │ │
│ │ [*] Deprecated /proc/acpi/event support │ │
│ │ <*> AC Adapter │ │
│ │ <*> Battery │ │
│ │ <*> Button │ │
│ │ <*> Fan │ │
│ │ <*> Dock │ │
│ │ < > Removable Drive Bay (EXPERIMENTAL) │ │
│ │ <*> Processor │ │
│ │ <*> Thermal Zone Code: Select all
${color #5b6dad}System:
${color #5b6dad} Uptime:${color #7f8ed3} $uptime ${color #5b6dad}- Load:${color #7f8ed3} $loadavg
${color #5b6dad} CPU0 Frequency0:${color #7f8ed3} ${freq_dyn_g cpu0} ${color #5b6dad} Maximum:${color #7f8ed3} ${freq_g cpu0}
${color #5b6dad} CPU0 Usage:${color #7f8ed3} $cpu% ${cpubar cpu0}
${color #000000}${cpugraph cpu0 15,309 000000 7f8ed3}
${color #5b6dad} CPU1 Frequency1:${color #7f8ed3} ${freq_dyn_g cpu1} ${color #5b6dad} Maximum:${color #7f8ed3} ${freq_g cpu1}
${color #5b6dad} CPU1 Usage:${color #7f8ed3} $cpu% ${cpubar cpu1}
${color #000000}${cpugraph cpu1 15,309 000000 7f8ed3}
Code: Select all
# set to yes if you want Conky to be forked in the background
background yes
cpu_avg_samples 2
net_avg_samples 2
out_to_console no
# Use Xft?
use_xft yes
# Xft font when Xft is enabled
xftfont Bitstream Vera Sans Mono:size=8
# Text alpha when using Xft
xftalpha 0.8
on_bottom yes
# Update interval in seconds
update_interval 1
# Create own window instead of using desktop (required in nautilus)
own_window yes
own_window_transparent yes
own_window_type override
# Use double buffering (reduces flicker, may not work for everyone)
double_buffer yes
# Minimum size of text area
minimum_size 260 5
maximum_width 360
# Draw shades?
draw_shades no
# Draw outlines?
draw_outline no
# Draw borders around text
draw_borders no
# Stippled borders?
stippled_borders no
# border margins
border_margin 4
# border width
border_width 1
# Default colors and also border colors
default_color white
default_shade_color white
default_outline_color white
# Text alignment, other possible values are commented
gap_x 15
gap_y 30
alignment bottom_left
# Gap between borders of screen and text
# Add spaces to keep things from moving about? This only affects certain objects.
use_spacer no
# Subtract file system buffers from used memory?
no_buffers yes
# set to yes if you want all text to be in uppercase
uppercase yes
###########
TEXT
${color #5B6DAD}$sysname $kernel
${color #5B6DAD}$machine - $nodename
${color #5B6DAD}${time %T}
${color #5B6DAD}Uptime:${color #7F8ED3} $uptime ${color #5B6DAD} Load:${color #7F8ED3} $loadavg
${color #7F8ED3}${hr}
${color #5B6DAD}Core 1:${color #5B6DAD} ${freq_dyn_g cpu1}Ghz ${color #7F8ED3}${cpu cpu1}% ${alignr}${color #5B6DAD}${cpubar cpu1 5,80}
${color #5B6DAD}Core 2:${color #5B6DAD} ${freq_dyn_g cpu2}Ghz ${color #7F8ED3}${cpu cpu2}% ${alignr}${color #5B6DAD}${cpubar cpu2 5,80}
${color #5B6DAD}Core 1 $alignr Core 2
${color #5B6DAD}${cpugraph cpu1 20,120 5B6DAD eeeeee} ${color #5B6DAD} $alignr${color #5B6DAD}${cpugraph cpu2 20,120 5B6DAD eeeeee}
${color #5B6DAD}Processes:${color #7F8ED3} $processes ${color #5B6DAD}Run:${color #7F8ED3} $running_processes
${color #7F8ED3}${hr}
${color #5B6DAD}Sensors:
${color #5B6DAD} CPU Temp:${color #7F8ED3}${ibm_temps 0}C ${color #5B6DAD}GPU Temp:${color #7F8ED3}${ibm_temps 3} ${color #5B6DAD} Fan Status:${color #7F8ED3} $ibm_fan
${color #5B6DAD} HDAPS: ${disk_protect /dev/sda}
${color #5B6DAD} Battery: ${color #7F8ED3}${smapi_bat_perc 0}% ${color #5b6dad} AC Adapter:${color #7f8ed3} ${acpiacadapter}
${color #7F8ED3}${hr}
${color #5B6DAD}CPU Usage PID CPU% MEM%
${color #7F8ED3} ${top name 1} ${top pid 1} ${top cpu 1} ${top mem 1}
${color #5B6DAD} ${top name 2} ${top pid 2} ${top cpu 2} ${top mem 2}
${color #5B6DAD} ${top name 3} ${top pid 3} ${top cpu 3} ${top mem 3}
${color #5B6DAD}Mem Usage
${color #7F8ED3} ${top_mem name 1} ${top_mem pid 1} ${top_mem cpu 1} ${top_mem mem 1}
${color #5B6DAD} ${top_mem name 2} ${top_mem pid 2} ${top_mem cpu 2} ${top_mem mem 2}
${color #5B6DAD} ${top_mem name 3} ${top_mem pid 3} ${top_mem cpu 3} ${top_mem mem 3}
${color #7F8ED3}${hr}
${color #5B6DAD}RAM:${color #7F8ED3} $mem/$memmax ($memperc%) ${alignr}${color #5B6DAD}${membar 5,100}
${color #5B6DAD}SWAP:${color #7F8ED3} $swap/$swapmax ($swapperc%) ${alignr}${color #5B6DAD}${swapbar 5,100}
${color #5B6DAD}HD IO: ${color #7F8ED3}${diskio}
${color #5B6DAD}${diskiograph 5B6DAD eeeeee}
${color #5B6DAD}Hard Disk Space:
${color #5B6DAD} / ${color #7F8ED3}${fs_used /}/${fs_size /}${alignr}${color #5B6DAD}${fs_bar 5,120 /}
${color #5B6DAD} /usr ${color #7F8ED3}${fs_used /usr}/${fs_size /usr}${alignr}${color #5B6DAD}${fs_bar 5,120 /usr}
${color #5B6DAD} /usr/portage ${color #7F8ED3}${fs_used /usr/portage}/${fs_size /usr/portage}${alignr}${color #5B6DAD}${fs_bar 5,120 /usr/portage}
${color #5B6DAD} /var ${color #7F8ED3}${fs_used /var}/${fs_size /var}${alignr}${color #5B6DAD}${fs_bar 5,120 /var}
${color #5B6DAD} /opt ${color #7F8ED3}${fs_used /opt}/${fs_size /opt}${alignr}${color #5B6DAD}${fs_bar 5,120 /opt}
${color #5B6DAD} /tmp ${color #7F8ED3}${fs_used /tmp}/${fs_size /tmp}${alignr}${color #5B6DAD}${fs_bar 5,120 /tmp}
${color #5B6DAD} /home ${color #7F8ED3}${fs_used /home}/${fs_size /home}${alignr}${color #5B6DAD}${fs_bar 5,120 /home}
${color #7F8ED3}${hr}
${color #5B6DAD}eth0: ${color #7F8ED3}${addr eth0}
${color #5B6DAD}Down:${color #7F8ED3} ${downspeed eth0} k/s $alignr${color #5B6DAD} Up:${color #7F8ED3} ${upspeed eth0} k/s
${color #5B6DAD}${downspeedgraph eth0 20,120 5B6DAD eeeeee 180} $alignr${color #5B6DAD}${upspeedgraph eth0 20,120 5B6DAD eeeeee 25}
${color #7F8ED3}${totaldown eth0} $alignr${color #7F8ED3}${totalup eth0}
${color #5B6DAD}wlan0: ${color #7F8ED3}${addr wlan0}
${color #5B6DAD}Down:${color #7F8ED3} ${downspeed wlan0} k/s $alignr${color #5B6DAD} Up:${color #7F8ED3} ${upspeed wlan0} k/s
${color #5B6DAD}${downspeedgraph wlan0 20,120 5B6DAD eeeeee 180} $alignr${color #5B6DAD}${upspeedgraph wlan0 20,120 5B6DAD eeeeee 25}
${color #7F8ED3}${totaldown wlan0} $alignr${color #7F8ED3}${totalup wlan0}
${color #5b6dad}Emerge:
${color #7f8ed3} ${execi 5 ~/conky/scripts/emerge-status.sh} ${color #7f8ed3} ${execi 5 ~/conky/scripts/emerge-progress.sh}% ${color #7f8ed3} ${execi 5 ~/conky/scripts/emerge-current.sh}
${color #5b6dad}Last Sync:
${color #7f8ed3} ${execi 5 ~/conky/scripts/lastsync.pl}