Sunteți pe pagina 1din 17

# Uniwersal ConfConky v. 0.1.0Beta 2016.03.

23
# Grzegorz Dabrowka
# GrzegorzDabrowka@gmail.com ... send mi ScreenShot...
# http://htmelek.republika.pl/
background no
#font 7x10
use_xft yes
xftfont Liberation Mono:size=8
xftalpha 0.9
#Alpha of Xft font. Must be a value at or between 1 and 0 (trans
parency font)
override_utf8_locale yes # special signs
update_interval 0.5
total_run_times 0
own_window yes
own_window_type normal
own_window_transparent yes
own_window_argb_visual no
own_window_colour black
own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager
double_buffer yes
draw_shades yes
draw_outline no
draw_borders no
draw_graph_borders yes
stippled_borders 1
border_inner_margin 1
border_width 1
gap_x 55 # 55 fit to right-bar Docky
gap_y 5
no_buffers yes
uppercase no
cpu_avg_samples 2
net_avg_samples 2
use_spacer none
default_color white
default_shade_color black
default_outline_color black
alignment top_right
color1 white
color2 goldenrod
color3 grey
color4 black
maximum_width 380
max_user_text 65536 # Maximum size of user text buffer, i.e. layout below TEXT d
efault is 16384 bytes, text buffer size a little maybe 1024
#${iconv_start UTF-8 ISO_8859-1}6 ^ v
#conky && conky -c conkyrc2;
#sudo swapon /dev/sda8
#'>', '<', '>=', '<=', '==', '!='.
#${goto 5}${offset -5}${voffset -5}
#${if_match "${gw_iface}"=="eth0"}yes eth0${else}no eth0${endif}
#${if_up lo} dns serwer
#${if_match "${}"==""}${else}${}${endif}
#${if_existing /proc/net/route eth0} Wired${endif}
#conky -c .config/conky/test.conkyrc
TEXT

# part 01 system
#
#
#$HOME/.face - it is universal user-logo in ubuntu
${image $HOME/.face -p 135,0 -s 48x36}\
#
${color2}Dystrybution: ${color1}\
${shadecolor peru}\
${if_match "${pre_exec lsb_release -sd}"!=""}\
${pre_exec lsb_release -sd}\
${shadecolor }\
${else}\
\
${if_match "${pre_exec cat /etc/issue.net}"!=""}\
${pre_exec cat /etc/issue.net}\
${else}\
\
${if_match "${pre_exec lsb_release -d | cut -c14-28}"!=""}\
${pre_exec lsb_release -d | cut -c14-28}"!=""}\
${else}\
\
${if_match "${pre_exec lsb_release -sd || cat /etc/*release}"!=""}\
${pre_exec lsb_release -sd || cat /etc/*release}\
${else}\
\
${if_match "${execpi 300 lsb_release -d | cut -c 14-50}"!=""}\
${execpi 300 lsb_release -d | cut -c 14-50}\
${else}\
other dystibution\
${endif}${endif}${endif}${endif}${endif}\
#
${color2}${alignr}Debian:${color1} ${execp cat /etc/debian_version}
#
${color2} ystem & Kernel:${color1}${alignr}${sysname} & ${kernel}
${color2}Processor CPU Details:${color1}${alignr}${machine}; ${freq} MHz
${color2}User@Hostname & Work time:${color1}${alignr}${uid_name 1000}@${nodename
} & ${uptime}
${color2}Quantity logged in users: ${color1}${user_number} ${color2}${alignr}Nam
es: ${color1}${user_names}
${color2}Monitors ${color1}${monitor_number} \
${color2}Desktop\
${color1} \
${if_match ${desktop_number} >= 1}${if_match $desktop == 1}${else}${endif} ${else}
${endif}\
${if_match ${desktop_number} >= 2}${if_match $desktop == 2}${else}${endif} ${else}
${endif}\
${if_match ${desktop_number} >= 3}${if_match $desktop == 3}${else}${endif} ${else}
${endif}\
${if_match ${desktop_number} >= 4}${if_match $desktop == 4}${else}${endif} ${else}
${endif}\
${if_match ${desktop_number} >= 5}${if_match $desktop == 5}${else}${endif} ${else}
${endif}\
${if_match ${desktop_number} >= 6}${if_match $desktop == 6}${else}${endif} ${else}
${endif}\
${if_match ${desktop_number} >= 7}${if_match $desktop == 7}${else}${endif} ${else}
${endif}\
${if_match ${desktop_number} >= 8}${if_match $desktop == 8}${else}${endif} ${else}
${endif}\
\
${color1}${alignr}"${desktop_name}" nr ${desktop} of ${desktop_number}

${color2}Conky prog.:${color1} v.${conky_version} \


${color2}${alignc}\
${color2}${alignr} ystem Updates: ${color1}${execi 3600 aptitude search "~U" | w
c -l | tail}\
#${execi 600 aptitude search "~U" | wc -l | tail}
${if_match "${execi 3600 aptitude search "~U" | wc -l | tail}" > "0"}\
${if_updatenr 1} ${endif}${if_updatenr 2} ${color red}\
${else}\
${endif}\
${endif}
${color2}CPU archit. Conky was built for: ${color1}${alignr}${conky_build_arch}
${color2}Date Conky was built: ${color1}${alignr}${conky_build_date}
${voffset -6}${color3}${stippled_hr}
#
#
#
# part 02 procesor
#
#
# how many CPUs? ${pre_exec nproc} ${execi 86400 nproc} ${execi 86400 nproc --al
l}
# how to check automaticly ${hwmon X temp Y} ??? how to do loop "for i" ???
#
${voffset -2}${color2}Processor: ${color1}${alignr}${execi 99999 cat /proc/cpuin
fo | grep "model name" -m1 | cut -d":" -f2 | cut -d" " -f2- | sed 's#Processor #
#'}${voffset -4}
#
${if_match "${cpu cpu1}"!=""}${color seagreen}${cpubar cpu1 15,}
${voffset -22}${color2} CPU 1:\
${voffset -6}${offset 0}${goto 120}${color1}${cpugauge cpu1 15, 30}${voffset 7}$
{alignr 5}\
${if_match "${hwmon 0 temp 2}">"0"}${hwmon 0 temp 2}${else}${if_match "${hwmon 1
temp 2}">"0"}${hwmon 1 temp 2}${else}${if_match "${hwmon 2 temp 2}">"0"}${hwmon
2 temp 2}${endif}${endif}${endif} C
\
${freq_g 1} GHz
\
\
${if_match ${cpu cpu1} <= 60}${color1}${else}\
${if_match ${cpu cpu1} <= 70}${color yellow}${else}\
${if_match ${cpu cpu1} <= 80}${color orange}${else}\
${color red}\
${endif}${endif}${endif}${voffset -15}\
\
${cpu cpu1} %${else}${voffset -12}${endif}
#
${if_match "${cpu cpu2}"!=""}${color seagreen}${cpubar cpu2 15,}
${voffset -22}${color2} CPU 2:\
${voffset -6}${offset 0}${goto 120}${color1}${cpugauge cpu2 15, 30}${voffset 7}$
{alignr 5}\
${if_match "${hwmon 0 temp 3}">"0"}${hwmon 0 temp 3}${else}${if_match "${hwmon 1
temp 3}">"0"}${hwmon 1 temp 3}${else}${if_match "${hwmon 2 temp 3}">"0"}${hwmon
2 temp 3}${endif}${endif}${endif} C
\
${freq_g 2} GHz
\
\
${if_match ${cpu cpu2} <= 60}${color1}${else}\
${if_match ${cpu cpu2} <= 70}${color yellow}${else}\
${if_match ${cpu cpu2} <= 80}${color orange}${else}\
${color red}\
${endif}${endif}${endif}${voffset -15}\
\
${cpu cpu2} %${else}${voffset -12}${endif}

#
${if_match "${cpu cpu3}"!=""}${color seagreen}${cpubar cpu3 15,}
${voffset -22}${color2} CPU 3:\
${voffset -6}${offset 0}${goto 120}${color1}${cpugauge cpu3 15, 30}${voffset 7}$
{alignr 5}\
${if_match "${hwmon 0 temp 4}">"0"}${hwmon 0 temp 4}${else}${if_match "${hwmon 1
temp 4}">"0"}${hwmon 1 temp 4}${else}${if_match "${hwmon 2 temp 4}">"0"}${hwmon
2 temp 4}${endif}${endif}${endif} C
\
${freq_g 3} GHz
\
\
${if_match ${cpu cpu3} <= 60}${color1}${else}\
${if_match ${cpu cpu3} <= 70}${color yellow}${else}\
${if_match ${cpu cpu3} <= 80}${color orange}${else}\
${color red}\
${endif}${endif}${endif}${voffset -15}\
\
${cpu cpu3} %${else}${voffset -12}${endif}
#
${if_match "${cpu cpu4}"!=""}${color seagreen}${cpubar cpu4 15,}
${voffset -22}${color2} CPU 4:\
${voffset -6}${offset 0}${goto 120}${color1}${cpugauge cpu4 15, 30}${voffset 7}$
{alignr 5}\
${if_match "${hwmon 0 temp 5}">"0"}${hwmon 0 temp 5}${else}${if_match "${hwmon 1
temp 5}">"0"}${hwmon 1 temp 5}${else}${if_match "${hwmon 2 temp 5}">"0"}${hwmon
2 temp 5}${endif}${endif}${endif} C
\
${freq_g 4} GHz
\
\
${if_match ${cpu cpu4} <= 60}${color1}${else}\
${if_match ${cpu cpu4} <= 70}${color yellow}${else}\
${if_match ${cpu cpu4} <= 80}${color orange}${else}\
${color red}\
${endif}${endif}${endif}${voffset -15}\
\
${cpu cpu4} %${else}${voffset -12}${endif}
#
${if_match "${cpu cpu5}"!=""}${color seagreen}${cpubar cpu5 15,}
${voffset -22}${color2} CPU 5:\
${voffset -6}${offset 0}${goto 120}${color1}${cpugauge cpu5 15, 30}${voffset 7}$
{alignr 5}\
${if_match "${hwmon 0 temp 6}">"0"}${hwmon 0 temp 6}${else}${if_match "${hwmon 1
temp 6}">"0"}${hwmon 1 temp 6}${else}${if_match "${hwmon 2 temp 6}">"0"}${hwmon
2 temp 6}${endif}${endif}${endif} C
\
${freq_g 5} GHz
\
\
${if_match ${cpu cpu5} <= 60}${color1}${else}\
${if_match ${cpu cpu5} <= 70}${color yellow}${else}\
${if_match ${cpu cpu5} <= 80}${color orange}${else}\
${color red}\
${endif}${endif}${endif}${voffset -15}\
\
${cpu cpu5} %${else}${voffset -12}${endif}
#
${if_match "${cpu cpu6}"!=""}${color seagreen}${cpubar cpu6 15,}
${voffset -22}${color2} CPU 6:\
${voffset -6}${offset 0}${goto 120}${color1}${cpugauge cpu6 15, 30}${voffset 7}$
{alignr 5}\
${if_match "${hwmon 0 temp 7}">"0"}${hwmon 0 temp 7}${else}${if_match "${hwmon 1
temp 7}">"0"}${hwmon 1 temp 7}${else}${if_match "${hwmon 2 temp 7}">"0"}${hwmon
2 temp 7}${endif}${endif}${endif} C
\
${freq_g 6} GHz
\

\
${if_match ${cpu cpu6} <= 60}${color1}${else}\
${if_match ${cpu cpu6} <= 70}${color yellow}${else}\
${if_match ${cpu cpu6} <= 80}${color orange}${else}\
${color red}\
${endif}${endif}${endif}${voffset -15}\
\
${cpu cpu6} %${else}${voffset -12}${endif}
#
${if_match "${cpu cpu7}"!=""}${color seagreen}${cpubar cpu7 15,}
${voffset -22}${color2} CPU 7:\
${voffset -6}${offset 0}${goto 120}${color1}${cpugauge cpu7 15, 30}${voffset 7}$
{alignr 5}\
${if_match "${hwmon 0 temp 8}">"0"}${hwmon 0 temp 8}${else}${if_match "${hwmon 1
temp 8}">"0"}${hwmon 1 temp 8}${else}${if_match "${hwmon 2 temp 8}">"0"}${hwmon
2 temp 8}${endif}${endif}${endif} C
\
${freq_g 7} GHz
\
\
${if_match ${cpu cpu7} <= 60}${color1}${else}\
${if_match ${cpu cpu7} <= 70}${color yellow}${else}\
${if_match ${cpu cpu7} <= 80}${color orange}${else}\
${color red}\
${endif}${endif}${endif}${voffset -15}\
\
${cpu cpu7} %${else}${voffset -12}${endif}
#
${if_match "${cpu cpu8}"!=""}${color seagreen}${cpubar cpu8 15,}
${voffset -22}${color2} CPU 8:\
${voffset -6}${offset 0}${goto 120}${color1}${cpugauge cpu8 15, 30}${voffset 7}$
{alignr 5}\
${if_match "${hwmon 0 temp 9}">"0"}${hwmon 0 temp 9}${else}${if_match "${hwmon 1
temp 9}">"0"}${hwmon 1 temp 9}${else}${if_match "${hwmon 2 temp 9}">"0"}${hwmon
2 temp 9}${endif}${endif}${endif} C
\
${freq_g 8} GHz
\
\
${if_match ${cpu cpu8} <= 60}${color1}${else}\
${if_match ${cpu cpu8} <= 70}${color yellow}${else}\
${if_match ${cpu cpu8} <= 80}${color orange}${else}\
${color red}\
${endif}${endif}${endif}${voffset -15}\
\
${cpu cpu8} %${else}${voffset -12}${endif}
#
${color darkgreen}${cpugraph 30,0 000000 00ff00 -l}
${voffset -35} ${color2}CPU History:\
${voffset -8}${offset 20}${color1}${cpugauge 30, 80}
${voffset -35} ${alignc -85}${color2}Number of CPUs: ${color1}${pre_exec nproc}
${alignr 5}${color2}Avg.: \
\
${if_match ${cpu} <= 60}${color1}${else}\
${if_match ${cpu} <= 70}${color yellow}${else}\
${if_match ${cpu} <= 80}${color orange}${else}\
${color red}\
${endif}${endif}${endif}${voffset 0}\
\
${cpu} %${color1}
${color2} ystem load avg.:${color1}${alignr}${loadavg 1}[MB/1mim] ${loadavg 2}[
MB/5mim] ${loadavg 3}[MB/15min] #${loadavg 3}
#
${voffset 0}

${color darkblue}${entropy_bar 15,380}


${voffset -22} ${color2}Empaty:${color1}${alignr 5}${entropy_perc} % ${entropy_
avail} / ${entropy_poolsize}
#
${voffset -3}${color3}${stippled_hr}
#
#
#
# part 03 procesy
#
#
${color2}Top 6 sorted by CPU & MEM usage:
${color2}NAME
CPU% MEM% PID${alignr} MEM% CPU% PID NAME
${color1}${top name 1}${offset -20}${color FF0000}${top cpu 1}${color1} ${top me
m 1} ${top pid 1}${alignr}|${color FF0000}${top_mem mem 1}${color1} ${top_mem cp
u 1} ${top_mem pid 1} ${alignr}${top_mem name 1}
${color1}${top name 2}${offset -20}${color FF4500}${top cpu 2}${color1} ${top me
m 2} ${top pid 2}${alignr}|${color FF4500}${top_mem mem 2}${color1} ${top_mem cp
u 2} ${top_mem pid 2} ${alignr}${top_mem name 2}
${color1}${top name 3}${offset -20}${color FFFF00}${top cpu 3}${color1} ${top me
m 3} ${top pid 3}${alignr}|${color FFFF00}${top_mem mem 3}${color1} ${top_mem cp
u 3} ${top_mem pid 3} ${alignr}${top_mem name 3}
${color1}${top name 4}${offset -20}${color 9ACD32}${top cpu 4}${color1} ${top me
m 4} ${top pid 4}${alignr}|${color 9ACD32}${top_mem mem 4}${color1} ${top_mem cp
u 4} ${top_mem pid 4} ${alignr}${top_mem name 4}
${color1}${top name 5}${offset -20}${color 008000}${top cpu 5}${color1} ${top me
m 5} ${top pid 5}${alignr}|${color 008000}${top_mem mem 5}${color1} ${top_mem cp
u 5} ${top_mem pid 5} ${alignr}${top_mem name 5}
${color1}${top name 6}${offset -20}${color 006400}${top cpu 6}${color1} ${top me
m 6} ${top pid 6}${alignr}|${color 006400}${top_mem mem 6}${color1} ${top_mem cp
u 6} ${top_mem pid 6} ${alignr}${top_mem name 6}
${color2}Processes/Running: ${color1}${processes}/${running_processes}${alignr}$
{color2}Threads/Running:${color1} ${threads}/${running_threads}
${color3}${voffset -7}${stippled_hr}
#
#
#
# part 04 RAM
#
#
${voffset -5}${color blue}${membar 15,0}
${voffset -22} ${color2}Memory RAM Usage:${color1}${voffset -6}${offset 10}${mem
gauge 15, 30}${voffset -8}${alignr 5}${memperc} % ${mem} / ${memmax}
${color orange}${memgraph 30,0 0000FF CD5C5C -l}
${voffset -36} ${color2}Memory RAM History
${color2} Buffers: ${color1}${buffers} ${color2}${alignc}Cached: ${color1}${cach
ed}${alignr 5}${color2}MemEasyFree: ${color1}${memeasyfree}
${voffset -3}${color3}${stippled_hr}
#
#
#
# part 05 Dysk
#
#
${color2}File ystem${color1}\
#
${alignr}\
${color2} tatus: ${color1}${disk_protect /dev/sda}\
${color2} File system: ${color1}${fs_type}\
${color2} Trash: ${color1}\

${if_match "${execi 15 du -sh ~/.local/share/Trash/files/ | awk '{print $1}' | s


ed '/^4.0K/ d' | sed 's/$/ to del/'}"==""}empty\
${else}\
${execi 15 du -sh ~/.local/share/Trash/files/ | awk '{print $1}' | sed '/^4.0K/
d' | sed 's/$/ to del/'}\
${endif}
#
${color2}Folder User: ${color1}/$U ER\
${color2}${alignr 0}Home katalog: ${color1}$HOME
#
${color brown}${fs_bar 15 /}
${voffset -22} ${color2} ystem partition: ${alignr 5}${color1}\
#${if_match "${hddtemp /dev/sda}"=="N/A"}${else}\
${if_match "${hddtemp /dev/sda}"=="" }${else}\
${if_match "${hddtemp /dev/sda}"=="0" }${else}\
${hddtemp /dev/sda}\
${endif}${endif}${endif}\
${if_match "${hddtemp}"=="N/A"}${else}\
${if_match "${hddtemp}"=="" }${else}\
${if_match "${hddtemp}"=="0" }${else}\
${hddtemp}\
${endif}${endif}${endif}\
${if_match "${execi 60 hddtemp -n /dev/sda}"=="N/A"}${else}\
${if_match "${execi 60 hddtemp -n /dev/sda}"=="" }${else}\
${if_match "${execi 60 hddtemp -n /dev/sda}"=="0" }${else}\
${execi 60 hddtemp -n /dev/sda}\
${endif}${endif}${endif}\
C
${fs_used_perc /} % ${fs_used /} / ${fs_size /}
#
${voffset 3}\
${if_match "${swapmax}"==""
}${color2} wap:${alignr 0}${color1}no swap${else}
\
${if_match "${swapmax}"=="0" }${color2} wap:${alignr 0}${color1}no swap${else}
\
${if_match "${swapmax}"=="0B" }${color2} wap:${alignr 0}${color1}no swap${else}
\
${if_match "${swapmax}"=="0B " }${color2} wap:${alignr 0}${color1}no swap${else}
\
${if_match "${swapmax}"=="0B "}${color2} wap:${alignr 0}${color1}no swap${else}
\
${if_match "${swapperc}"=="No swap"}${color2} wap:${alignr 0}${color1}no swap${e
lse}
${voffset -15}${color grey}${swapbar 15,}
${voffset -22}${color2} wap: ${color1} ${swapfree} ${alignr 5}${swapperc}%
${swap}/${swapmax}\
${endif}${endif}${endif}${endif}${endif}${endif}
#
#
#
${if_existing /dev/sda}\
${color 556B2F}${diskiograph_read /dev/sda 20,188 A9A9A9 556B2F 0 }${alignr 0}${
color 8B0000}${diskiograph_write /dev/sda 20,188 A9A9A9 8B0000 0 }
${voffset -24}${color2} Read: ${color1}${diskio_read /dev/sda}\
${alignc}${offset 35}${color4}${color2} Disk Activity /dev/${color1}sda ${color4}\
${alignr 5}${color2}Write:${color1} ${diskio_write /dev/sda}\
${else}${voffset -15}${endif}
#
#
#${if_existing /dev/sda1}${voffset 6}\

${color 556B2F}${diskiograph_read /dev/sda1 12,188 A9A9A9 556B2F 0 }${alignr 0}$


{color 8B0000}${diskiograph_write /dev/sda1 12,188 A9A9A9 8B0000 0 }
#${voffset -13}${color2} Read: ${color1}${diskio_read /dev/sda1}\
${alignc}${offset 35}${color4}${color2} Disk Activity /dev/${color1}sda1 ${color4
}\
${alignr 5}${color2}Write:${color1} ${diskio_write /dev/sda1}${voffset -4}\
${else}${voffset -13}${endif}
#
#${if_existing /dev/sda2}${voffset 6}\
${color 556B2F}${diskiograph_read /dev/sda2 12,188 A9A9A9 556B2F 0 }${alignr 0}$
{color 8B0000}${diskiograph_write /dev/sda2 12,188 A9A9A9 8B0000 0 }
#${voffset -13}${color2} Read: ${color1}${diskio_read /dev/sda2}\
${alignc}${offset 35}${color4}${color2} Disk Activity /dev/${color1}sda2 ${color4
}\
${alignr 5}${color2}Write:${color1} ${diskio_write /dev/sda2}${voffset -4}\
${else}${voffset -13}${endif}
#
#
${if_existing /dev/sdb}\
${color 556B2F}${diskiograph_read /dev/sdb 20,188 A9A9A9 556B2F 0 }${alignr 0}${
color 8B0000}${diskiograph_write /dev/sdb 20,188 A9A9A9 8B0000 0 }
${voffset -24}${color2} Read: ${color1}${diskio_read /dev/sdb}\
${alignc}${offset 35}${color4}${color2} Disk Activity /dev/${color1}sdb ${color4}\
${alignr 5}${color2}Write:${color1} ${diskio_write /dev/sdb}\
${else}${voffset -15}${endif}
#
#
${if_existing /dev/sdc}\
${color 556B2F}${diskiograph_read /dev/sdc 20,188 A9A9A9 556B2F 0 }${alignr 0}${
color 8B0000}${diskiograph_write /dev/sdc 20,188 A9A9A9 8B0000 0 }
${voffset -24}${color2} Read: ${color1}${diskio_read /dev/sdc}\
${alignc}${offset 35}${color4}${color2} Disk Activity /dev/${color1}sdc ${color4}\
${alignr 5}${color2}Write:${color1} ${diskio_write /dev/sdc}\
${else}${voffset -15}${endif}
#
#
${if_existing /dev/sdd}\
${color 556B2F}${diskiograph_read /dev/sdd 20,188 A9A9A9 556B2F 0 }${alignr 0}${
color 8B0000}${diskiograph_write /dev/sdd 20,188 A9A9A9 8B0000 0 }
${voffset -24}${color2} Read: ${color1}${diskio_read /dev/sdd}\
${alignc}${offset 35}${color4}${color2} Disk Activity /dev/${color1}sdd ${color4}\
${alignr 5}${color2}Write:${color1} ${diskio_write /dev/sdd}\
${else}${voffset -15}${endif}
#
#
${if_existing /dev/sdd7}${voffset 6}\
#
#
#
#
#${voffset 12}${color2}Disc "sdb":${color1}\
${alignr}\
${if_empty ${exec df -h | grep "/dev/sdb"}}\
No disk sdb/U B\
${else}\
${alignc}\
${exec df -h | grep "/dev/sdb" | awk '{ printf $1}' }
\
${alignr}\
${exec df -h | grep "/dev/sdb" | awk '{ printf $5}' } \
${exec df -h | grep "/dev/sdb" | awk '{ printf $3}' }iB / \

${exec df -h | grep "/dev/sdb" | awk '{ printf $2}' }iB\


${endif}
#
${voffset 3}${color3}${stippled_hr}
#
#
#
# part 06 voleme
#
#
#${color2}Vol: ${color1}${if_mixer_mute}[off]${else}[on] ${endif}\#no for ubuntu
${color2}Vol: \
${if_match "${exec amixer -c 0 get Master | grep Mono: | awk '{print $NF}'}" ==
"[off]"}${color grey} ${color1}Off${else}${color green} ${color1}On ${endif} \
#${color1}${exec amixer -c 0 get Master | grep Mono: | awk '{print $NF}'}${align
c}
${if_match "${exec amixer get Master -M | grep -oE "[[:digit:]]*%"}" > "0%"}${
if_match "${exec amixer -c 0 get Master | grep Mono: | awk '{print $NF}'}" == "[
off]"}${color grey}${else}${color darkgreen}${endif}||||\
${if_match "${exec amixer get Master -M | grep -oE "[[:digit:]]*%"}" >= "10%"}${
if_match "${exec amixer -c 0 get Master | grep Mono: | awk '{print $NF}'}" == "[
off]"}${color grey}${else}${color green}${endif}||||\
${if_match "${exec amixer get Master -M | grep -oE "[[:digit:]]*%"}" >= "20%"}${
if_match "${exec amixer -c 0 get Master | grep Mono: | awk '{print $NF}'}" == "[
off]"}${color grey}${else}${color lightgreen}${endif}||||\
${if_match "${exec amixer get Master -M | grep -oE "[[:digit:]]*%"}" >= "30%"}${
if_match "${exec amixer -c 0 get Master | grep Mono: | awk '{print $NF}'}" == "[
off]"}${color grey}${else}${color ADFF2F}${endif}||||\
${if_match "${exec amixer get Master -M | grep -oE "[[:digit:]]*%"}" >= "40%"}${
if_match "${exec amixer -c 0 get Master | grep Mono: | awk '{print $NF}'}" == "[
off]"}${color grey}${else}${color yellow}${endif}||||\
${if_match "${exec amixer get Master -M | grep -oE "[[:digit:]]*%"}" >= "50%"}${
if_match "${exec amixer -c 0 get Master | grep Mono: | awk '{print $NF}'}" == "[
off]"}${color grey}${else}${color orange}${endif}||||\
${if_match "${exec amixer get Master -M | grep -oE "[[:digit:]]*%"}" >= "60%"}${
if_match "${exec amixer -c 0 get Master | grep Mono: | awk '{print $NF}'}" == "[
off]"}${color grey}${else}${color FF4500}${endif}||||\
${if_match "${exec amixer get Master -M | grep -oE "[[:digit:]]*%"}" >= "70%"}${
if_match "${exec amixer -c 0 get Master | grep Mono: | awk '{print $NF}'}" == "[
off]"}${color grey}${else}${color red}${endif}||||\
${if_match "${exec amixer get Master -M | grep -oE "[[:digit:]]*%"}" >= "80%"}${
if_match "${exec amixer -c 0 get Master | grep Mono: | awk '{print $NF}'}" == "[
off]"}${color grey}${else}${color darkred}${endif}||||\
${if_match "${exec amixer get Master -M | grep -oE "[[:digit:]]*%"}" >= "90%"}${
if_match "${exec amixer -c 0 get Master | grep Mono: | awk '{print $NF}'}" == "[
off]"}${color grey}${else}${color black}${endif}||||\
${if_match "${exec amixer get Master -M | grep -oE "[[:digit:]]*%"}" >= "100%"}$
{if_match "${exec amixer -c 0 get Master | grep Mono: | awk '{print $NF}'}" == "
[off]"}${color grey}${else}${color black}${endif}||||\
${else}${color grey}X---${color}${endif}\
${else}${color grey}X-------${color}${endif}\
${else}${color grey}X-----------${color}${endif}\
${else}${color grey}X---------------${color}${endif}\
${else}${color grey}X-------------------${color}${endif}\
${else}${color grey}X-----------------------${color}${endif}\
${else}${color grey}X---------------------------${color}${endif}\
${else}${color grey}X-------------------------------${color}${endif}\
${else}${color grey}X-----------------------------------${color}${endif}\
${else}${color grey}X---------------------------------------${color}${endif}\
${else}${color grey}--------------------------------------------${color}${endif}

\
#
${color1}${alignr}${exec amixer get Master -M | grep -oE "[[:digit:]]*%"}
#${alignr}${if_match ${mixer}<10} ${mixer}${else}${if_match ${mixer}<100} ${mix
er}${else}${mixer}${endif}${endif}%
#
${voffset -6}${color3}${stippled_hr}
#
#
#
# part 07 internet
#
#
${color2}Internet device \
${color1}${if_match "${gw_iface}" == "(null)"}${color grey} ${color1}OffLine${els
e}${color green} ${color1}OnLine${endif}\
${color2} in use:${color1} ${gw_iface}\
${color2}${alignr}available:${color1}\
\
${if_existing /proc/net/route eth0} eth0${else}${endif}\
${if_existing /proc/net/route eth1} eth1${else}${endif}\
${if_existing /proc/net/route eth2} eth2${else}${endif}\
${if_existing /proc/net/route wlan0} wlan0${else}${endif}\
${if_existing /proc/net/route wlan1} wlan1${else}${endif}\
${if_existing /proc/net/route wlan2} wlan2${else}${endif}\
${if_existing /proc/net/route wlan3} wlan3${else}${endif}\
${if_existing /proc/net/route vmnet0} vmnet0${else}${endif}\
${if_existing /proc/net/route vmnet1} vmnet1${else}${endif}\
${if_existing /proc/net/route usb0} usb0${else}${endif}\
${if_existing /proc/net/route usb1} usb1${else}${endif}\
${if_existing /proc/net/route ppp0} ppp0${else}${endif}\
${if_existing /proc/net/route ppp1} ppp1${else}${endif}\
${if_existing /proc/net/route mobil} mobil${else}${endif}
#
${color2}IP external: ${color1}\
#
${if_match "${execpi 3600 wget -q -O - checkip.dyndns.org|sed -e 's/.*Current IP
Address: //' -e 's/<.*$//';}"!=""}\
${execpi 3600 wget -q -O - checkip.dyndns.org|sed -e 's/.*Current IP Address: //
' -e 's/<.*$//';}\
${else}\
#
${if_match "${execi 3600 wget -O - http://ip.tupeux.com | tail}"!=""}\
${execi 3600 wget -O - http://ip.tupeux.com | tail}\
${else}\
#
${if_match "${exec wget -q -O - checkip.dyndns.org | sed -e 's/.*Current IP Addr
ess: //' -e 's/<.*$//'}"!=""}\
${execi 3600 wget -O - http://ip.tupeux.com | tail}\
${else}\
#
${if_match "${execi 200 wget -O - http://ip.tupeux.com | tail}"!=""}\
${execi 200 wget -O - http://ip.tupeux.com | tail}\
${else}\
#
${if_match "${curl ifconfig.me}"!=""}\
${curl ifconfig.me}\
${else}\
#

${endif}${endif}${endif}${endif}${endif}\
#
${alignr}${color2}IP internal: ${color1}\
#if-else-end - limit 16
# or
${addr ${gw_iface}}
${if_match "${gw_iface}"=="eth0"}${addr eth0}${else}\
${if_match "${gw_iface}"=="eth1"}${addr eth1}${else}\
${if_match "${gw_iface}"=="eth2"}${addr eth2}${else}\
${if_match "${gw_iface}"=="wlan0"}${addr wlan0}${else}\
${if_match "${gw_iface}"=="wlan1"}${addr wlan1}${else}\
${if_match "${gw_iface}"=="wlan2"}${addr wlan2}${else}\
${if_match "${gw_iface}"=="wlan3"}${addr wlan3}${else}\
${if_match "${gw_iface}"=="vmnet0"}${addr vmnet0}${else}\
${if_match "${gw_iface}"=="vmnet1"}${addr vmnet1}${else}\
${if_match "${gw_iface}"=="usb0"}${addr usb0}${else}\
${if_match "${gw_iface}"=="usb1"}${addr usb1}${else}\
${if_match "${gw_iface}"=="ppp0"}${addr ppp0}${else}\
${if_match "${gw_iface}"=="ppp1"}${addr ppp1}${else}\
${if_match "${gw_iface}"=="mobile"}${addr mobile}${else}\
${endif}${endif}${endif}${endif}\
${endif}${endif}${endif}${endif}\
${endif}${endif}${endif}${endif}\
${endif}${endif}
#
${color2}Gate/Router: ${color1}${if_gw}${gw_ip}${else}brak${endif}\
${alignr}${color2}DN serwer: ${color1}${nameserver}${voffset -3}
#
# BAR download and upload ###############
#
# or
${upspeedgraph wlan0 20,188 0000ff ff0000 1}
${color cyan}\
${if_match "${gw_iface}"=="eth0"}${upspeedgraph eth0 20,188 0000ff ff0000 1}${el
se}\
${if_match "${gw_iface}"=="eth1"}${upspeedgraph eth1 20,188 0000ff ff0000 1}${el
se}\
${if_match "${gw_iface}"=="eth2"}${upspeedgraph eth2 20,188 0000ff ff0000 1}${el
se}\
${if_match "${gw_iface}"=="wlan0"}${upspeedgraph wlan0 20,188 0000ff ff0000 1}${
else}\
${if_match "${gw_iface}"=="wlan1"}${upspeedgraph wlan1 20,188 0000ff ff0000 1}${
else}\
${if_match "${gw_iface}"=="wlan2"}${upspeedgraph wlan2 20,188 0000ff ff0000 1}${
else}\
${if_match "${gw_iface}"=="wlan3"}${upspeedgraph wlan3 20,188 0000ff ff0000 1}${
else}\
${if_match "${gw_iface}"=="vmnet0"}${upspeedgraph vmnet0 20,188 0000ff ff0000 1}
${else}\
${if_match "${gw_iface}"=="vmnet1"}${upspeedgraph vmnet1 20,188 0000ff ff0000 1}
${else}\
${if_match "${gw_iface}"=="usb0"}${upspeedgraph usb0 20,188 0000ff ff0000 1}${el
se}\
${if_match "${gw_iface}"=="usb1"}${upspeedgraph usb1 20,188 0000ff ff0000 1}${el
se}\
${if_match "${gw_iface}"=="ppp0"}${upspeedgraph ppp0 20,188 0000ff ff0000 1}${el
se}\
${if_match "${gw_iface}"=="ppp1"}${upspeedgraph ppp1 20,188 0000ff ff0000 1}${el
se}\
${if_match "${gw_iface}"=="mobile"}${upspeedgraph mobile 20,188 0000ff ff0000 1}
${else}\
${endif}${endif}${endif}${endif}\

${endif}${endif}${endif}${endif}\
${endif}${endif}${endif}${endif}\
${endif}${endif}\
#
${color Deep kyBlue}${alignr}\
#
# or
${downspeedgraph ${gw_iface} 20,188 ff0000 00FF00 1}
${if_match "${gw_iface}"=="eth0"}${downspeedgraph eth0 20,188 ff0000 00FF00 1}${
else}\
${if_match "${gw_iface}"=="eth1"}${downspeedgraph eth1 20,188 ff0000 00FF00 1}${
else}\
${if_match "${gw_iface}"=="eth2"}${downspeedgraph eth2 20,188 ff0000 00FF00 1}${
else}\
${if_match "${gw_iface}"=="wlan0"}${downspeedgraph wlan0 20,188 ff0000 00FF00 1}
${else}\
${if_match "${gw_iface}"=="wlan1"}${downspeedgraph wlan1 20,188 ff0000 00FF00 1}
${else}\
${if_match "${gw_iface}"=="wlan2"}${downspeedgraph wlan2 20,188 ff0000 00FF00 1}
${else}\
${if_match "${gw_iface}"=="wlan3"}${downspeedgraph wlan3 20,188 ff0000 00FF00 1}
${else}\
${if_match "${gw_iface}"=="vmnet0"}${downspeedgraph vmnet0 20,188 ff0000 00FF00
1}${else}\
${if_match "${gw_iface}"=="vmnet1"}${downspeedgraph vmnet1 20,188 ff0000 00FF00
1}${else}\
${if_match "${gw_iface}"=="usb0"}${downspeedgraph usb0 20,188 ff0000 00FF00 1}${
else}\
${if_match "${gw_iface}"=="usb1"}${downspeedgraph usb1 20,188 ff0000 00FF00 1}${
else}\
${if_match "${gw_iface}"=="ppp0"}${downspeedgraph ppp0 20,188 ff0000 00FF00 1}${
else}\
${if_match "${gw_iface}"=="ppp1"}${downspeedgraph ppp1 20,188 ff0000 00FF00 1}${
else}\
${if_match "${gw_iface}"=="mobile"}${downspeedgraph mobile 20,188 ff0000 00FF00
1}${else}\
${endif}${endif}${endif}${endif}\
${endif}${endif}${endif}${endif}\
${endif}${endif}${endif}${endif}\
${endif}${endif}
#
${voffset -24}${color1} \
# or
${upspeed ${gw_iface}}
${if_match "${gw_iface}"=="eth0"}${upspeed eth0}${else}\
${if_match "${gw_iface}"=="eth1"}${upspeed eth1}${else}\
${if_match "${gw_iface}"=="eth2"}${upspeed eth2}${else}\
${if_match "${gw_iface}"=="wlan0"}${upspeed wlan0}${else}\
${if_match "${gw_iface}"=="wlan1"}${upspeed wlan1}${else}\
${if_match "${gw_iface}"=="wlan2"}${upspeed wlan2}${else}\
${if_match "${gw_iface}"=="wlan3"}${upspeed wlan3}${else}\
${if_match "${gw_iface}"=="vmnet0"}${upspeed vmnet0}${else}\
${if_match "${gw_iface}"=="vmnet1"}${upspeed vmnet1}${else}\
${if_match "${gw_iface}"=="usb0"}${upspeed usb0}${else}\
${if_match "${gw_iface}"=="usb1"}${upspeed usb1}${else}\
${if_match "${gw_iface}"=="ppp0"}${upspeed ppp0}${else}\
${if_match "${gw_iface}"=="ppp1"}${upspeed ppp1}${else}\
${if_match "${gw_iface}"=="mobile"}${upspeed mobile}${else}\
${endif}${endif}${endif}${endif}\
${endif}${endif}${endif}${endif}\
${endif}${endif}${endif}${endif}\
${endif}${endif}/s\

#
${alignc}${offset -15}\
#
# or
${totalup ${gw_iface}}
${if_match "${gw_iface}"=="eth0"}${totalup eth0}${else}\
${if_match "${gw_iface}"=="eth1"}${totalup eth1}${else}\
${if_match "${gw_iface}"=="eth2"}${totalup eth2}${else}\
${if_match "${gw_iface}"=="wlan0"}${totalup wlan0}${else}\
${if_match "${gw_iface}"=="wlan1"}${totalup wlan1}${else}\
${if_match "${gw_iface}"=="wlan2"}${totalup wlan2}${else}\
${if_match "${gw_iface}"=="wlan3"}${totalup wlan3}${else}\
${if_match "${gw_iface}"=="vmnet0"}${totalup vmnet0}${else}\
${if_match "${gw_iface}"=="vmnet1"}${totalup vmnet1}${else}\
${if_match "${gw_iface}"=="usb0"}${totalup usb0}${else}\
${if_match "${gw_iface}"=="usb1"}${totalup usb1}${else}\
${if_match "${gw_iface}"=="ppp0"}${totalup ppp0}${else}\
${if_match "${gw_iface}"=="ppp1"}${totalup ppp1}${else}\
${if_match "${gw_iface}"=="mobile"}${totalup mobile}${else}\
${endif}${endif}${endif}${endif}\
${endif}${endif}${endif}${endif}\
${endif}${endif}${endif}${endif}\
${endif}${endif}\
#
${alignc}${offset 60}\
#
# or
${totaldown ${gw_iface}}
${if_match "${gw_iface}"=="eth0"}${totaldown eth0}${else}\
${if_match "${gw_iface}"=="eth1"}${totaldown eth1}${else}\
${if_match "${gw_iface}"=="eth2"}${totaldown eth2}${else}\
${if_match "${gw_iface}"=="wlan0"}${totaldown wlan0}${else}\
${if_match "${gw_iface}"=="wlan1"}${totaldown wlan1}${else}\
${if_match "${gw_iface}"=="wlan2"}${totaldown wlan2}${else}\
${if_match "${gw_iface}"=="wlan3"}${totaldown wlan3}${else}\
${if_match "${gw_iface}"=="vmnet0"}${totaldown vmnet0}${else}\
${if_match "${gw_iface}"=="vmnet1"}${totaldown vmnet1}${else}\
${if_match "${gw_iface}"=="usb0"}${totaldown usb0}${else}\
${if_match "${gw_iface}"=="usb1"}${totaldown usb1}${else}\
${if_match "${gw_iface}"=="ppp0"}${totaldown ppp0}${else}\
${if_match "${gw_iface}"=="ppp1"}${totaldown ppp1}${else}\
${if_match "${gw_iface}"=="mobile"}${totaldown mobile}${else}\
${endif}${endif}${endif}${endif}\
${endif}${endif}${endif}${endif}\
${endif}${endif}${endif}${endif}\
${endif}${endif}\
#
${alignr 5}\
#
# or
${downspeed ${gw_iface}}
${if_match "${gw_iface}"=="eth0"}${downspeed eth0}${else}\
${if_match "${gw_iface}"=="eth1"}${downspeed eth1}${else}\
${if_match "${gw_iface}"=="eth2"}${downspeed eth2}${else}\
${if_match "${gw_iface}"=="wlan0"}${downspeed wlan0}${else}\
${if_match "${gw_iface}"=="wlan1"}${downspeed wlan1}${else}\
${if_match "${gw_iface}"=="wlan2"}${downspeed wlan2}${else}\
${if_match "${gw_iface}"=="wlan3"}${downspeed wlan3}${else}\
${if_match "${gw_iface}"=="vmnet0"}${downspeed vmnet0}${else}\
${if_match "${gw_iface}"=="vmnet1"}${downspeed vmnet1}${else}\
${if_match "${gw_iface}"=="usb0"}${downspeed usb0}${else}\
${if_match "${gw_iface}"=="usb1"}${downspeed usb1}${else}\
${if_match "${gw_iface}"=="ppp0"}${downspeed ppp0}${else}\

${if_match "${gw_iface}"=="ppp1"}${downspeed ppp1}${else}\


${if_match "${gw_iface}"=="mobile"}${downspeed mobile}${else}\
${endif}${endif}${endif}${endif}\
${endif}${endif}${endif}${endif}\
${endif}${endif}${endif}${endif}\
${endif}${endif}\
${alignr}/s
#
${voffset -13}${color2}${offset 60}Up${color4}${alignc}${offset 15}${color2}Usage${
alignr}${offset -60}Down${color4}${voffset 7}
#
#
${if_match "${wireless_link_qual_perc wlan0}"!="unk"}${voffset -4}\
${color2}Wireless Lan (Wi-Fi) mode: ${color1}${wireless_mode wlan0} ${color2}${a
lignr}Name ID: ${color1}${wireless_essid wlan0}
${color2} ignal: ${color1}${wireless_link_qual wlan0}% ${alignc}${color2}Max: ${
color1}${wireless_link_qual_max wlan0}% ${alignr}${color2}Wi-Fi AP: ${color1}${w
ireless_ap wlan0}${voffset -2}
${color royalblue}${wireless_link_bar 15 wlan0}
${voffset -22}${color2} peed: ${color1}${wireless_bitrate wlan0} ${color1}${ali
gnc}wlan0 ${color1}${alignr}${wireless_link_qual_perc wlan0} % ${voffset -4}
${else}${voffset -11}${endif}
#
${if_match "${wireless_link_qual_perc wlan1}"!="unk"}${voffset -4}\
${color2}Wireless Lan (Wi-Fi) mode: ${color1}${wireless_mode wlan1} ${color2}${a
lignr}Name ID: ${color1}${wireless_essid wlan1}
${color2} ignal: ${color1}${wireless_link_qual wlan1}% ${alignc}${color2}Max: ${
color1}${wireless_link_qual_max wlan1}% ${alignr}${color2}Wi-Fi AP: ${color1}${w
ireless_ap wlan1}${voffset -2}
${color royalblue}${wireless_link_bar 15 wlan1}
${voffset -22}${color2} peed: ${color1}${wireless_bitrate wlan1} ${color1}${ali
gnc}wlan1 ${color1}${alignr}${wireless_link_qual_perc wlan1} % ${voffset -4}
${else}${voffset -11}${endif}
#
${if_match "${wireless_link_qual_perc wlan2}"!="unk"}${voffset -4}\
${color2}Wireless Lan (Wi-Fi) mode: ${color1}${wireless_mode wlan2} ${color2}${a
lignr}Name ID: ${color1}${wireless_essid wlan2}
${color2} ignal: ${color1}${wireless_link_qual wlan2}% ${alignc}${color2}Max: ${
color1}${wireless_link_qual_max wlan2}% ${alignr}${color2}Wi-Fi AP: ${color1}${w
ireless_ap wlan2}${voffset -2}
${color royalblue}${wireless_link_bar 15 wlan2}
${voffset -22}${color2} peed: ${color1}${wireless_bitrate wlan2} ${color1}${ali
gnc}wlan2 ${color1}${alignr}${wireless_link_qual_perc wlan2} % ${voffset -4}
${else}${voffset -11}${endif}
#
${if_match "${wireless_link_qual_perc wlan3}"!="unk"}${voffset -4}\
${color2}Wireless Lan (Wi-Fi) mode: ${color1}${wireless_mode wlan3} ${color2}${a
lignr}Name ID: ${color1}${wireless_essid wlan3}
${color2} ignal: ${color1}${wireless_link_qual wlan3}% ${alignc}${color2}Max: ${
color1}${wireless_link_qual_max wlan3}% ${alignr}${color2}Wi-Fi AP: ${color1}${w
ireless_ap wlan3}${voffset -2}
${color royalblue}${wireless_link_bar 15 wlan3}
${voffset -22}${color2} peed: ${color1}${wireless_bitrate wlan3} ${color1}${ali
gnc}wlan3 ${color1}${alignr}${wireless_link_qual_perc wlan3} % ${voffset -4}
${else}${voffset -11}${endif}
#
${color3}${voffset -13}${stippled_hr}
#
#
#

# part 08 calendar
#
#
${color2}Calendar: ${color1}${time %G-%m-%d %H}:${time %M}${blink :}${time % }\
${if_match ${time %H}<=12}a.m.${else}${if_match ${time %H}>12}p.m.${endif}${endi
f}${alignr}${time %Z %z} ${execp cat /etc/timezone}
#
#
# month back
${color3}${execpi 900 ncal -bh -m `date +%m` -A-1 -B1 | sed ':a;N;$!ba;s/\n/\${c
olor3}\n${goto 0}/g'}
#
#
#
# month actual xxxxxxxxxxxx
${goto 150}${voffset -91}${color2}${time %B %Y}
\
${goto 132}${voffset 0}\
${color3}\
${if_match "${time %u}" == "1"}${color2}Mo ${color1}${else}Mo ${endif}\
${if_match "${time %u}" == "2"}${color2}Tu ${color1}${else}Tu ${endif}\
${if_match "${time %u}" == "3"}${color2}We ${color1}${else}We ${endif}\
${if_match "${time %u}" == "4"}${color2}Tr ${color1}${else}Tr ${endif}\
${if_match "${time %u}" == "5"}${color2}Fr ${color1}${else}Fr ${endif}\
${if_match "${time %u}" == "6"}${color2} a ${color1}${else} a ${endif}\
${if_match "${time %u}" == "7"}${color2} u ${color1}${else} u ${endif}
\
${color3}${goto 132}${color3}${execpi 900 LAR=`date +%-d`; ncal -bh -A -B0 | s
ed '2d' | sed -e '1d' -e 's/\<'$LAR'\>/${color2}&${color1}/' | sed ':a;N;$!ba;s/
\n/\n${goto 132}/g'}
#
#
#
# month next xxxxxxxxxxxxxx
${voffset -104}${goto 263}${color1}\
${execpi 900 ncal -bh -m `date +%m` -A1 -B-1 | sed ':a;N;$!ba;s/\n/\n${goto 263}
/g'}
#
${voffset -20}${color3}${stippled_hr}
#
#
#
# part 09 ports
#
#
${color2}Ports connections:${color2}${alignr}Bittorrent default ports: ${color1}
${tcp_portmon 6881 6999 count}
${color2}All (L+R) ports: ${color1}${tcp_portmon 1 65535 count}${color2}${alignr
}Local ports: ${color1}${tcp_portmon 1 1024 count}${color2} Remote ports: ${colo
r1}${tcp_portmon 1025 65535 count}
#
${color2}Local ports connections (max 10):
\
${if_match "\
${tcp_portmon 1 65535 lip 0}\
"!=""}\
${voffset -12}${else}\
${color2}Local port 0: ${color1}${tcp_portmon 1 65535 lip 0}${alignr}${color2} L
ocal host: ${color1}${tcp_portmon 1 65535 lhost 0}\
${endif}

#
${if_match "\
${tcp_portmon 1 65535 lip 1}\
"!=""}\
${voffset -12}${else}\
${color2}Local port 1: ${color1}${tcp_portmon 1
ocal host: ${color1}${tcp_portmon 1 65535 lhost
${endif}
#
${if_match "\
${tcp_portmon 1 65535 lip 2}\
"!=""}\
${voffset -12}${else}\
${color2}Local port 2: ${color1}${tcp_portmon 1
ocal host: ${color1}${tcp_portmon 1 65535 lhost
${endif}
#
${if_match "\
${tcp_portmon 1 65535 lip 3}\
"==""}\
${voffset -12}${else}\
${color2}Local port 3: ${color1}${tcp_portmon 1
ocal host: ${color1}${tcp_portmon 1 65535 lhost
${endif}
#
${if_match "\
${tcp_portmon 1 65535 lip 4}\
"==""}\
${voffset -13}${else}\
${color2}Local port 4: ${color1}${tcp_portmon 1
ocal host: ${color1}${tcp_portmon 1 65535 lhost
${endif}
#
${if_match "\
${tcp_portmon 1 65535 lip 5}\
"==""}\
${voffset -13}${else}\
${color2}Local port 5: ${color1}${tcp_portmon 1
ocal host: ${color1}${tcp_portmon 1 65535 lhost
${endif}
#
${if_match "\
${tcp_portmon 1 65535 lip 6}\
"==""}\
${voffset -13}${else}\
${color2}Local port 6: ${color1}${tcp_portmon 1
ocal host: ${color1}${tcp_portmon 1 65535 lhost
${endif}
#
${if_match "\
${tcp_portmon 1 65535 lip 7}\
"==""}\
${voffset -13}${else}\
${color2}Local port 7: ${color1}${tcp_portmon 1
ocal host: ${color1}${tcp_portmon 1 65535 lhost
${endif}
#
${if_match "\
${tcp_portmon 1 65535 lip 8}\
"==""}\

65535 lip 1}${alignr}${color2} L


1}\

65535 lip 2}${alignr}${color2} L


2}\

65535 lip 3}${alignr}${color2} L


3}\

65535 lip 4}${alignr}${color2} L


4}\

65535 lip 5}${alignr}${color2} L


5}\

65535 lip 6}${alignr}${color2} L


6}\

65535 lip 7}${alignr}${color2} L


7}\

${voffset -13}${else}\
${color2}Local port 8: ${color1}${tcp_portmon 1 65535 lip 8}${alignr}${color2} L
ocal host: ${color1}${tcp_portmon 1 65535 lhost 8}\
${endif}
#
${if_match "\
${tcp_portmon 1 65535 lip 9}\
"==""}\
${voffset -13}${else}\
${color2}Local port 9: ${color1}${tcp_portmon 1 65535 lip 9}${alignr}${color2} L
ocal host: ${color1}${tcp_portmon 1 65535 lhost 9}\
${endif}
#
${color2}Remote ports connections (max 10):
${color2}Port nr | service name |
ip ${alignr}| host name (www)${color1}
\
${if_match "${tcp_portmon 1 65535 rport 0}"==""}${voffset -12}${else}${tcp_port
mon 1 65535 rport 0}
|${tcp_portmon 1 65535 rservice 0}
| ${tcp_portmon
1 65535 rip 0} |${alignr}${tcp_portmon 1 65535 rhost 0}${endif}
${if_match "${tcp_portmon 1 65535 rport 1}"==""}${voffset -12}${else}${tcp_port
mon 1 65535 rport 1}
|${tcp_portmon 1 65535 rservice 1}
| ${tcp_portmon
1 65535 rip 1} |${alignr}${tcp_portmon 1 65535 rhost 1}${endif}
${if_match "${tcp_portmon 1 65535 rport 2}"==""}${voffset -12}${else}${tcp_port
mon 1 65535 rport 2}
|${tcp_portmon 1 65535 rservice 2}
| ${tcp_portmon
1 65535 rip 2} |${alignr}${tcp_portmon 1 65535 rhost 2}${endif}
${if_match "${tcp_portmon 1 65535 rport 3}"==""}${voffset -12}${else}${tcp_port
mon 1 65535 rport 3}
|${tcp_portmon 1 65535 rservice 3}
| ${tcp_portmon
1 65535 rip 3} |${alignr}${tcp_portmon 1 65535 rhost 3}${endif}
${if_match "${tcp_portmon 1 65535 rport 4}"==""}${voffset -12}${else}${tcp_port
mon 1 65535 rport 4}
|${tcp_portmon 1 65535 rservice 4}
| ${tcp_portmon
1 65535 rip 4} |${alignr}${tcp_portmon 1 65535 rhost 4}${endif}
${if_match "${tcp_portmon 1 65535 rport 5}"==""}${voffset -12}${else}${tcp_port
mon 1 65535 rport 5}
|${tcp_portmon 1 65535 rservice 5}
| ${tcp_portmon
1 65535 rip 5} |${alignr}${tcp_portmon 1 65535 rhost 5}${endif}
${if_match "${tcp_portmon 1 65535 rport 6}"==""}${voffset -12}${else}${tcp_port
mon 1 65535 rport 6}
|${tcp_portmon 1 65535 rservice 6}
| ${tcp_portmon
1 65535 rip 6} |${alignr}${tcp_portmon 1 65535 rhost 6}${endif}
${if_match "${tcp_portmon 1 65535 rport 7}"==""}${voffset -12}${else}${tcp_port
mon 1 65535 rport 7}
|${tcp_portmon 1 65535 rservice 7}
| ${tcp_portmon
1 65535 rip 7} |${alignr}${tcp_portmon 1 65535 rhost 7}${endif}
${if_match "${tcp_portmon 1 65535 rport 8}"==""}${voffset -12}${else}${tcp_port
mon 1 65535 rport 8}
|${tcp_portmon 1 65535 rservice 8}
| ${tcp_portmon
1 65535 rip 8} |${alignr}${tcp_portmon 1 65535 rhost 8}${endif}
${if_match "${tcp_portmon 1 65535 rport 9}"==""}${voffset -12}${else}${tcp_port
mon 1 65535 rport 9}
|${tcp_portmon 1 65535 rservice 9}
| ${tcp_portmon
1 65535 rip 9} |${alignr}${tcp_portmon 1 65535 rhost 9}${endif}
${voffset -10}\
${color3}${stippled_hr}
#
#
#

S-ar putea să vă placă și