You are not logged in.

#1 2016-02-13 14:28:20

grzegorzdabrowka
Member
Registered: 2016-01-03
Posts: 16
Website

conky -- can you test it please.

Could someone send me a print screen of the posted code? 
Especially when someone has 4 or 8 cores. On this forum or for email GrzegorzDabrowka[at]gmail.com


${voffset -2}${color2}Processor: ${color1}${alignr}${execi 99999 cat /proc/cpuinfo | grep "model name" -m1 | cut -d":" -f2 | cut -d" " -f2- | sed 's#Processor ##'}${voffset -4}
#
${if_match "${cpu cpu1}"!=""}${color green}${cpubar cpu1 15,}
${voffset -22}${color2} CPU 1:${color1}\
${voffset -6}${offset 0}${goto 120}${color1}${cpugauge cpu1 15, 30}${voffset -8}${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     ${cpu cpu1} %${else}${voffset -12}${endif}
#
${if_match "${cpu cpu2}"!=""}${color green}${cpubar cpu2 15,}
${voffset -22}${color2} CPU 2:${color1}\
${voffset -6}${offset 0}${goto 120}${color1}${cpugauge cpu2 15, 30}${voffset -8}${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     ${cpu cpu2} %${else}${voffset -12}${endif}
#
${if_match "${cpu cpu3}"!=""}${color green}${cpubar cpu3 15,}
${voffset -22}${color2} CPU 3:${color1}\
${voffset -6}${offset 0}${goto 120}${color1}${cpugauge cpu3 15, 30}${voffset -8}${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     ${cpu cpu3} %${else}${voffset -12}${endif}
#
${if_match "${cpu cpu4}"!=""}${color green}${cpubar cpu4 15,}
${voffset -22}${color2} CPU 4:${color1}\
${voffset -6}${offset 0}${goto 120}${color1}${cpugauge cpu4 15, 30}${voffset -8}${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     ${cpu cpu4} %${else}${voffset -12}${endif}
#
${if_match "${cpu cpu5}"!=""}${color green}${cpubar cpu5 15,}
${voffset -22}${color2} CPU 5:${color1}\
${voffset -6}${offset 0}${goto 120}${color1}${cpugauge cpu5 15, 30}${voffset -8}${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     ${cpu cpu5} %${else}${voffset -12}${endif}
#
${if_match "${cpu cpu6}"!=""}${color green}${cpubar cpu6 15,}
${voffset -22}${color2} CPU 6:${color1}\
${voffset -6}${offset 0}${goto 120}${color1}${cpugauge cpu6 15, 30}${voffset -8}${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     ${cpu cpu6} %${else}${voffset -12}${endif}
#
${if_match "${cpu cpu7}"!=""}${color green}${cpubar cpu7 15,}
${voffset -22}${color2} CPU 7:${color1}\
${voffset -6}${offset 0}${goto 120}${color1}${cpugauge cpu7 15, 30}${voffset -8}${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     ${cpu cpu7} %${else}${voffset -12}${endif}
#
${if_match "${cpu cpu8}"!=""}${color green}${cpubar cpu8 15,}
${voffset -22}${color2} CPU 8:${color1}\
${voffset -6}${offset 0}${goto 120}${color1}${cpugauge cpu8 15, 30}${voffset -8}${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     ${cpu cpu8} %${else}${voffset -12}${endif}
#
${color darkgreen}${cpugraph 30,0 000000 00ff00 -l}
${voffset -30} ${color2}CPU History:\
${voffset -13}${offset 20}${goto -30}${color1}${cpugauge 30, 80}\
${alignr 5}${voffset -16}${cpu} %
#
${voffset -5}
${color DarkSlateGreen}${entropy_bar 15,380}
${voffset -22} ${color2}Empaty:${color1}${alignr 5}${entropy_perc} %  ${entropy_avail}  /  ${entropy_poolsize}
#
${voffset -3}${color3}${stippled_hr}

Offline

#2 2016-02-13 14:36:20

Head_on_a_Stick
Member
From: London
Registered: 2015-09-29
Posts: 8,759
Website

Re: conky -- can you test it please.

2016_02_13_143407_393x138_scrot.jpg
Mod Note: Split and moved to Basic Help & Support


“Et ignotas animum dimittit in artes.” — Ovid, Metamorphoses, VIII., 18.

Forum Rules   •   How to report a problem   •   Software that rocks

Offline

#3 2016-02-13 15:40:08

Sector11
Conky 1.9er Mod Squid
From: Upstairs
Registered: 2015-08-20
Posts: 6,769

Re: conky -- can you test it please.

Works better with a mono font:
2016_02_13_12_38_24_Scrot11.jpg


The sun will never set if you keep walking towards it. - my son
Being positive doesn't understand physics.
_______________________________
Debian 10 Buster = SharpBang ♯!

Offline

#4 2016-02-13 19:04:42

Head_on_a_Stick
Member
From: London
Registered: 2015-09-29
Posts: 8,759
Website

Re: conky -- can you test it please.

@Sector11: is that "CPU2" temperature right?

127°C seems a bit high yikes


“Et ignotas animum dimittit in artes.” — Ovid, Metamorphoses, VIII., 18.

Forum Rules   •   How to report a problem   •   Software that rocks

Offline

#5 2016-02-13 19:34:01

Sector11
Conky 1.9er Mod Squid
From: Upstairs
Registered: 2015-08-20
Posts: 6,769

Re: conky -- can you test it please.

Well, considering I plugged in the code and displayed it - verbatim - the "temps" are not correct, and likely will not be on yours either.

Temperatures, fan speeds, etc. need to be configured for your system.  For example:
Multicore Intel CPU's have temps for each core - AMD's don't.  So when one runs

lm-sensors-detect

they get the info for their machine - not mine - not yours.

Look at the test conky again next to a conky configured for my system with sensors and inxi info:
2016_02_13_16_20_09_Scrot11.jpg

Personally I would never use "hwmon" for sensors, I use "platform".


The sun will never set if you keep walking towards it. - my son
Being positive doesn't understand physics.
_______________________________
Debian 10 Buster = SharpBang ♯!

Offline

#6 2016-02-14 23:30:20

grzegorzdabrowka
Member
Registered: 2016-01-03
Posts: 16
Website

Re: conky -- can you test it please.

Could someone send me a print screen of the posted code?
It is necessary wait 30 sek.
Is possible change the title to general "Conky code testing area" or only "conky -- can you display it for me?".


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 (transparency font)
override_utf8_locale yes # special signs
update_interval 1.0
total_run_times 0
own_window yes
own_window_type normal
own_window_transparent yes
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 32768 # Maximum size of user text buffer, i.e. layout below TEXT default is 16384 bytes, text buffer size a little maybe 1024


TEXT
#
${image $HOME/.face -p 135,0 -s 48x36}\
#
${color2}Dystrybution:${color1}${alignr}\
${shadecolor red}\
${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}System & 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}Names: ${color1}${user_names}
${color2}Desktop:${color1}${alignr}"${desktop_name}"  nr  ${desktop} of ${desktop_number}
${color2}Conky program:${color1} v. ${conky_version} \
${color2}${alignc}Threads:${color1} ${threads}\
${color2}${alignr}System Updates: ${color1}${execi 3600 aptitude search "~U" | wc -l | tail}
#${execi 600 aptitude search "~U" | wc -l | tail}
${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}
#
#
#
#
#
# how to check automaticly ${hwmon X temp Y} ??? how to check how many procesor ??? how to do loop "for i" ???
#${if_match "${hwmon 2 temp 3}">"69"}${color red}${hwmon 2 temp 3}${else}${hwmon 2 temp 3}${endif}
#
${voffset -2}${color2}Processor: ${color1}${alignr}${execi 99999 cat /proc/cpuinfo | grep "model name" -m1 | cut -d":" -f2 | cut -d" " -f2- | sed 's#Processor ##'}${voffset -4}
#
${if_match "${cpu cpu1}"!=""}${color green}${cpubar cpu1 15,}
${voffset -22}${color2} CPU 1:${color1}\
${voffset -6}${offset 0}${goto 120}${color1}${cpugauge cpu1 15, 30}${voffset -8}${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     ${cpu cpu1} %${else}${voffset -12}${endif}
#
${if_match "${cpu cpu2}"!=""}${color green}${cpubar cpu2 15,}
${voffset -22}${color2} CPU 2:${color1}\
${voffset -6}${offset 0}${goto 120}${color1}${cpugauge cpu2 15, 30}${voffset -8}${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     ${cpu cpu2} %${else}${voffset -12}${endif}
#
${if_match "${cpu cpu3}"!=""}${color green}${cpubar cpu3 15,}
${voffset -22}${color2} CPU 3:${color1}\
${voffset -6}${offset 0}${goto 120}${color1}${cpugauge cpu3 15, 30}${voffset -8}${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     ${cpu cpu3} %${else}${voffset -12}${endif}
#
${if_match "${cpu cpu4}"!=""}${color green}${cpubar cpu4 15,}
${voffset -22}${color2} CPU 4:${color1}\
${voffset -6}${offset 0}${goto 120}${color1}${cpugauge cpu4 15, 30}${voffset -8}${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     ${cpu cpu4} %${else}${voffset -12}${endif}
#
${if_match "${cpu cpu5}"!=""}${color green}${cpubar cpu5 15,}
${voffset -22}${color2} CPU 5:${color1}\
${voffset -6}${offset 0}${goto 120}${color1}${cpugauge cpu5 15, 30}${voffset -8}${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     ${cpu cpu5} %${else}${voffset -12}${endif}
#
${if_match "${cpu cpu6}"!=""}${color green}${cpubar cpu6 15,}
${voffset -22}${color2} CPU 6:${color1}\
${voffset -6}${offset 0}${goto 120}${color1}${cpugauge cpu6 15, 30}${voffset -8}${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     ${cpu cpu6} %${else}${voffset -12}${endif}
#
${if_match "${cpu cpu7}"!=""}${color green}${cpubar cpu7 15,}
${voffset -22}${color2} CPU 7:${color1}\
${voffset -6}${offset 0}${goto 120}${color1}${cpugauge cpu7 15, 30}${voffset -8}${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     ${cpu cpu7} %${else}${voffset -12}${endif}
#
${if_match "${cpu cpu8}"!=""}${color green}${cpubar cpu8 15,}
${voffset -22}${color2} CPU 8:${color1}\
${voffset -6}${offset 0}${goto 120}${color1}${cpugauge cpu8 15, 30}${voffset -8}${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     ${cpu cpu8} %${else}${voffset -12}${endif}
#
${color darkgreen}${cpugraph 30,0 000000 00ff00 -l}
${voffset -30} ${color2}CPU History:\
${voffset -13}${offset 20}${goto -30}${color1}${cpugauge 30, 80}\
${alignr 5}${voffset -16}${cpu} %
#
${voffset -5}
${color DarkSlateGreen}${entropy_bar 15,380}
${voffset -22} ${color2}Empaty:${color1}${alignr 5}${entropy_perc} %  ${entropy_avail}  /  ${entropy_poolsize}
#
${voffset -3}${color3}${stippled_hr}
#
#
#
#
#
#
${color2}System load average:${color1}${alignr}[MB] for past min.   1    5   15 
${color2}Processes: ${color1}${processes} ${color2}Running: ${color1}${running_processes} ${color1}${alignr}${loadavg}
${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 mem 1} ${top pid 1}${alignr}|${color FF0000}${top_mem mem 1}${color1} ${top_mem cpu 1} ${top_mem pid 1} ${alignr}${top_mem name 1}
${color1}${top name 2}${offset -20}${color FF4500}${top cpu 2}${color1} ${top mem 2} ${top pid 2}${alignr}|${color FF4500}${top_mem mem 2}${color1} ${top_mem cpu 2} ${top_mem pid 2} ${alignr}${top_mem name 2}
${color1}${top name 3}${offset -20}${color FFFF00}${top cpu 3}${color1} ${top mem 3} ${top pid 3}${alignr}|${color FFFF00}${top_mem mem 3}${color1} ${top_mem cpu 3} ${top_mem pid 3} ${alignr}${top_mem name 3}
${color1}${top name 4}${offset -20}${color 9ACD32}${top cpu 4}${color1} ${top mem 4} ${top pid 4}${alignr}|${color 9ACD32}${top_mem mem 4}${color1} ${top_mem cpu 4} ${top_mem pid 4} ${alignr}${top_mem name 4}
${color1}${top name 5}${offset -20}${color 008000}${top cpu 5}${color1} ${top mem 5} ${top pid 5}${alignr}|${color 008000}${top_mem mem 5}${color1} ${top_mem cpu 5} ${top_mem pid 5} ${alignr}${top_mem name 5}
${color1}${top name 6}${offset -20}${color 006400}${top cpu 6}${color1} ${top mem 6} ${top pid 6}${alignr}|${color 006400}${top_mem mem 6}${color1} ${top_mem cpu 6} ${top_mem pid 6} ${alignr}${top_mem name 6}
${color3}${stippled_hr}
#
#
#
#
#
#
${voffset -5}${color blue}${membar 15,0}
${voffset -22} ${color2}Memory RAM Usage:${color1}${voffset -6}${offset 10}${memgauge 15, 30}${voffset -8}${alignr 5}${memperc} %  ${mem}  /  ${memmax}
${color orange}${memgraph 30,0 0000FF FFFF00 -l}
${voffset -30} ${color2}Memory RAM History${color1}
${voffset 5}${color3}${stippled_hr}
#
#
#
#
#
#
#
##
#
#
${color2}Disc "sda":${color1}\
#
${alignr}\
${color2}protect: ${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}' | sed '/^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}/$USER\
${color2}${alignr 0}Home katalog: ${color1}$HOME
#
${color black}${fs_bar 15 /}
${voffset -22} ${color2}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}Swap:${alignr 0}${color1}no swap${else}\
${if_match "${swapmax}"=="0"   }${color2}Swap:${alignr 0}${color1}no swap${else}\
${if_match "${swapmax}"=="0B"  }${color2}Swap:${alignr 0}${color1}no swap${else}\
${if_match "${swapmax}"=="0B " }${color2}Swap:${alignr 0}${color1}no swap${else}\
${if_match "${swapmax}"=="0B  "}${color2}Swap:${alignr 0}${color1}no swap${else}\
${if_match "${swapperc}"=="No swap"}${color2}Swap:${alignr 0}${color1}no swap${else}
${voffset -15}${color grey}${swapbar 15,}
${voffset -22}${color2} Swap: ${color1} ${swapfree}  ${alignr 5}${swapperc}%    ${swap}/${swapmax}\
${endif}${endif}${endif}${endif}${endif}${endif}
#
#
#
${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}${color2}Disk Activity\
${alignr 5}${color2}Write:${color1} ${diskio_write /dev/sda}
#
${voffset 7}${color2}Disc "sdb":${color1}\
${alignr}\
${if_empty ${exec df -h | grep "/dev/sdb"}}\
No disk sdb/USB\
${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 -7}${color3}${stippled_hr}
#
#
#
#
#
#
#
${color2}Vol: ${color1}${exec amixer -c 0 get Master | grep Mono: | awk '{print $NF}'} ${alignc}\
${if_match "${exec amixer get Master -M | grep -oE "[[:digit:]]*%"}" >   "0%"}${color lightgreen}|||||\
${if_match "${exec amixer get Master -M | grep -oE "[[:digit:]]*%"}" >= "10%"}${color green}|||||\
${if_match "${exec amixer get Master -M | grep -oE "[[:digit:]]*%"}" >= "20%"}${color darkgreen}|||||\
${if_match "${exec amixer get Master -M | grep -oE "[[:digit:]]*%"}" >= "30%"}${color yellow}|||||\
${if_match "${exec amixer get Master -M | grep -oE "[[:digit:]]*%"}" >= "40%"}${color yellow}|||||\
${if_match "${exec amixer get Master -M | grep -oE "[[:digit:]]*%"}" >= "50%"}${color yellow}|||||\
${if_match "${exec amixer get Master -M | grep -oE "[[:digit:]]*%"}" >= "60%"}${color lightred}|||||\
${if_match "${exec amixer get Master -M | grep -oE "[[:digit:]]*%"}" >= "70%"}${color red}|||||\
${if_match "${exec amixer get Master -M | grep -oE "[[:digit:]]*%"}" >= "80%"}${color darkred}|||||\
${if_match "${exec amixer get Master -M | grep -oE "[[:digit:]]*%"}" >= "90%"}${color black}|||||\
${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:]]*%"}
#
${voffset -6}${color3}${stippled_hr}
#
#
#
${color2}Internet device 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 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 Address: //' -e 's/<.*$//'}"!=""}\
${execi 3600 wget -O - http://ip.tupeux.com | tail}\
${else}\
${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}"=="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}
${voffset -13}
#
${color2}Gate/Router: ${color1}${if_gw}${gw_ip}${else}brak${endif}\
${alignr}${color2}DNS serwer: ${color1}${nameserver}
#
# 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}${else}\
${if_match "${gw_iface}"=="eth1"}${upspeedgraph eth1 20,188 0000ff ff0000 1}${else}\
${if_match "${gw_iface}"=="eth2"}${upspeedgraph eth2 20,188 0000ff ff0000 1}${else}\
${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}"=="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}${else}\
${if_match "${gw_iface}"=="usb1"}${upspeedgraph usb1 20,188 0000ff ff0000 1}${else}\
${if_match "${gw_iface}"=="ppp0"}${upspeedgraph ppp0 20,188 0000ff ff0000 1}${else}\
${if_match "${gw_iface}"=="ppp1"}${upspeedgraph ppp1 20,188 0000ff ff0000 1}${else}\
${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}\
#
${color DeepSkyBlue}${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}"=="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}
#
${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}"=="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}/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}"=="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}\
#
${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}"=="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}\
#
${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}"=="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}\
${alignr}/s
#
${voffset -13}${color2}${offset 60}Up↑↑↑${alignc}${offset 15}Usage${alignr}${offset -60}Down↓↓↓
${voffset 0}${color cyan}\
#
#
${voffset -6}
${if_match "${wireless_link_qual_perc wlan0}"!="unk"}\
${color2}Wireless Lan (Wi-Fi) mode: ${color1}${wireless_mode wlan0} ${color2}${alignr}Name SSID: ${color1}${wireless_essid wlan0}
${color2}Signal: ${color1}${wireless_link_qual wlan0}% ${alignc}${color2}Max: ${color1}${wireless_link_qual_max wlan0}% ${alignr}${color2}Wi-Fi AP: ${color1}${wireless_ap wlan0}
${color lightgreen}${wireless_link_bar 15 wlan0}
${voffset -22}${color2} Speed: ${color1}${wireless_bitrate wlan0} ${color1}${alignc}wlan0 ${color1}${alignr}${wireless_link_qual_perc wlan0} % 
${voffset -12}\
${else}${color2}Wireless Lan (Wi-Fi):${color1}${alignr}Wi-Fi no detect wlan0${voffset -8}${endif}
#
${voffset -6}
${if_match "${wireless_link_qual_perc wlan1}"!="unk"}\
${color2}Wireless Lan (Wi-Fi) mode: ${color1}${wireless_mode wlan1} ${color2}${alignr}Name SSID: ${color1}${wireless_essid wlan1}
${color2}Signal: ${color1}${wireless_link_qual wlan1}% ${alignc}${color2}Max: ${color1}${wireless_link_qual_max wlan1}% ${alignr}${color2}Wi-Fi AP: ${color1}${wireless_ap wlan1}
${color lightgreen}${wireless_link_bar 15 wlan1}
${voffset -22}${color2} Speed: ${color1}${wireless_bitrate wlan1} ${color1}${alignc}wlan1 ${color1}${alignr}${wireless_link_qual_perc wlan1} % 
${voffset -12}\
${else}${color2}Wireless Lan (Wi-Fi):${color1}${alignr}Wi-Fi no detect wlan1${voffset -8}${endif}
#
${voffset -6}
${if_match "${wireless_link_qual_perc wlan2}"!="unk"}\
${color2}Wireless Lan (Wi-Fi) mode: ${color1}${wireless_mode wlan2} ${color2}${alignr}Name SSID: ${color1}${wireless_essid wlan2}
${color2}Signal: ${color1}${wireless_link_qual wlan2}% ${alignc}${color2}Max: ${color1}${wireless_link_qual_max wlan2}% ${alignr}${color2}Wi-Fi AP: ${color1}${wireless_ap wlan2}
${color lightgreen}${wireless_link_bar 15 wlan2}
${voffset -22}${color2} Speed: ${color1}${wireless_bitrate wlan2} ${color1}${alignc}wlan2 ${color1}${alignr}${wireless_link_qual_perc wlan2} % 
${voffset -12}\
${else}${color2}Wireless Lan (Wi-Fi):${color1}${alignr}Wi-Fi no detect wlan2${voffset -8}${endif}
${color3}${stippled_hr}
#
#
#
#
#
${color2}Calendar: ${color1}${time %G-%m-%d %H}:${time %M}${blink :}${time %S }\
${if_match ${time %H}<=12}p.m.${else}${if_match ${time %H}>12}a.m.${endif}${endif}${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/\${color3}\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}Sa ${color1}${else}Sa ${endif}\
${if_match "${time %u}" == "7"}${color2}Su ${color1}${else}Su ${endif}
\
${color3}${goto 132}${color3}${execpi 900 LAR=`date +%-d`; ncal -bh -A  -B0  | sed '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}
#
#
#
#
#
${color2}Ports connections:${color2}${alignr}Bittorrent 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: ${color1}${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} Local 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 65535 lip 1}${alignr}${color2} Local host: ${color1}${tcp_portmon 1 65535 lhost 1}\
${endif}
#
${if_match  "\
${tcp_portmon 1 65535 lip 2}\
"!=""}\
${voffset -12}${else}\
${color2}Local port 2: ${color1}${tcp_portmon 1 65535 lip 2}${alignr}${color2} Local host: ${color1}${tcp_portmon 1 65535 lhost 2}\
${endif}
#
${if_match  "\
${tcp_portmon 1 65535 lip 3}\
"==""}\
${voffset -12}${else}\
${color2}Local port 3: ${color1}${tcp_portmon 1 65535 lip 3}${alignr}${color2} Local host: ${color1}${tcp_portmon 1 65535 lhost 3}\
${endif}
#
${if_match  "\
${tcp_portmon 1 65535 lip 4}\
"==""}\
${voffset -13}${else}\
${color2}Local port 4: ${color1}${tcp_portmon 1 65535 lip 4}${alignr}${color2} Local host: ${color1}${tcp_portmon 1 65535 lhost 4}\
${endif}
#
${if_match  "\
${tcp_portmon 1 65535 lip 5}\
"==""}\
${voffset -13}${else}\
${color2}Local port 5: ${color1}${tcp_portmon 1 65535 lip 5}${alignr}${color2} Local host: ${color1}${tcp_portmon 1 65535 lhost 5}\
${endif}
#
${if_match  "\
${tcp_portmon 1 65535 lip 6}\
"==""}\
${voffset -13}${else}\
${color2}Local port 6: ${color1}${tcp_portmon 1 65535 lip 6}${alignr}${color2} Local host: ${color1}${tcp_portmon 1 65535 lhost 6}\
${endif}
#
${if_match  "\
${tcp_portmon 1 65535 lip 7}\
"==""}\
${voffset -13}${else}\
${color2}Local port 7: ${color1}${tcp_portmon 1 65535 lip 7}${alignr}${color2} Local host: ${color1}${tcp_portmon 1 65535 lhost 7}\
${endif}
#
${if_match  "\
${tcp_portmon 1 65535 lip 8}\
"==""}\
${voffset -13}${else}\
${color2}Local port 8: ${color1}${tcp_portmon 1 65535 lip 8}${alignr}${color2} Local 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} Local 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_portmon 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_portmon 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_portmon 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_portmon 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_portmon 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_portmon 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_portmon 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_portmon 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_portmon 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_portmon 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}

thx by last screen

Last edited by grzegorzdabrowka (2016-02-14 23:42:33)

Offline

#7 2016-02-14 23:52:08

Sector11
Conky 1.9er Mod Squid
From: Upstairs
Registered: 2015-08-20
Posts: 6,769

Re: conky -- can you test it please.

OK, now I have to ask.

Why?
Can't you create your own screenshot?


The sun will never set if you keep walking towards it. - my son
Being positive doesn't understand physics.
_______________________________
Debian 10 Buster = SharpBang ♯!

Offline

#8 2016-02-14 23:56:57

grzegorzdabrowka
Member
Registered: 2016-01-03
Posts: 16
Website

Re: conky -- can you test it please.

I can, but I have only 2 computers, and I need more date.
And I hope that it is working on the every PC.

Last edited by grzegorzdabrowka (2016-02-15 00:00:22)

Offline

#9 2016-02-15 00:28:35

Sector11
Conky 1.9er Mod Squid
From: Upstairs
Registered: 2015-08-20
Posts: 6,769

Re: conky -- can you test it please.

Oh in that case, you will have problems.

This conky assumes that the user has:
- has the same 'sensors' setup that you have
- - hwmon is different on different computers.

Check it out Using Sensors

But here it is no changes:
2016_02_14_21_24_51_Scrot11.jpg


The sun will never set if you keep walking towards it. - my son
Being positive doesn't understand physics.
_______________________________
Debian 10 Buster = SharpBang ♯!

Offline

#10 2016-02-15 02:27:58

Sector11
Conky 1.9er Mod Squid
From: Upstairs
Registered: 2015-08-20
Posts: 6,769

Re: conky -- can you test it please.

I only have one computer, but I have a "test.conky"  smile

Checking the number of CPU's:

 14 Feb 16 @ 23:23:30 ~
  $ nproc
3
 
 14 Feb 16 @ 23:23:36 ~
  $ lscpu
Architecture:          x86_64
CPU op-mode(s):        32-bit, 64-bit
Byte Order:            Little Endian
CPU(s):                3
On-line CPU(s) list:   0-2
Thread(s) per core:    1
Core(s) per socket:    3
Socket(s):             1
NUMA node(s):          1
Vendor ID:             AuthenticAMD
CPU family:            16
Model:                 5
Model name:            AMD Athlon(tm) II X3 450 Processor
Stepping:              3
CPU MHz:               3214.620
BogoMIPS:              6429.24
Virtualization:        AMD-V
L1d cache:             64K
L1i cache:             64K
L2 cache:              512K
NUMA node0 CPU(s):     0-2
 
 14 Feb 16 @ 23:23:41 ~
  $ less /proc/cpuinfo

In conky, I have cpu1, cpu2, cpu3 and CPU Average: cpu or cpu0

Number of CPUs: ${pre_exec nproc}
0 CPU Avg ${cpu cpu0}%
1 CPU1    ${cpu cpu1}%
2 ${if_match "2"<="${execi 86400 nproc}"}CPU2    ${cpu cpu2}%${endif}
3 ${if_match "3"<="${execi 86400 nproc}"}CPU3    ${cpu cpu3}%${endif}
4 ${if_match "4"<="${execi 86400 nproc}"}CPU4    ${cpu cpu4}%${endif}
5 ${if_match "5"<="${execi 86400 nproc}"}CPU5    ${cpu cpu5}%${endif}
6 ${if_match "6"<="${execi 86400 nproc}"}CPU6    ${cpu cpu6}%${endif}
7 ${if_match "7"<="${execi 86400 nproc}"}CPU7    ${cpu cpu7}%${endif}
8 ${if_match "8"<="${execi 86400 nproc}"}CPU8    ${cpu cpu8}%${endif}

2016_02_14_23_25_51_Scrot11.jpg

That's one question down.  Time for bed. G'night.


The sun will never set if you keep walking towards it. - my son
Being positive doesn't understand physics.
_______________________________
Debian 10 Buster = SharpBang ♯!

Offline

#11 2016-02-15 08:10:56

ohnonot
...again
Registered: 2015-09-29
Posts: 5,554

Re: conky -- can you test it please.

ok, i'm game.
first of all, i'm using archlinux and some things just won't work (aptitude), but there's also the problem with the network interface names, they aren't necessarily called "wlan0" or "eth1".
i don't understand the usage of ncal where cal is sufficient, so i replaced those (don't have ncal on archlinux).
i was mostly interested in the networking stuff at the bottom; i don't really understand what it displays, however the "Bittorrent port" stayed at 0 even after starting transmission.
anyhow, here's the error messages i get when starting it:

$ conky -c .config/conky/test.conkyrc
cat: /etc/issue.net: No such file or directory
cat: /etc/issue.net: No such file or directory
Conky: can't open '/sys/class/hwmon/hwmon0/temp2_input': No such file or directory
please check your device or remove this var from Conky
Conky: can't open '/sys/class/hwmon/hwmon0/temp2_input': No such file or directory
please check your device or remove this var from Conky
Conky: can't open '/sys/class/hwmon/hwmon0/temp3_input': No such file or directory
please check your device or remove this var from Conky
Conky: can't open '/sys/class/hwmon/hwmon0/temp3_input': No such file or directory
please check your device or remove this var from Conky
Conky: can't open '/sys/class/hwmon/hwmon1/temp3_input': No such file or directory
please check your device or remove this var from Conky
Conky: can't open '/sys/class/hwmon/hwmon1/temp3_input': No such file or directory
please check your device or remove this var from Conky
Conky: can't open '/sys/class/hwmon/hwmon0/temp4_input': No such file or directory
please check your device or remove this var from Conky
Conky: can't open '/sys/class/hwmon/hwmon0/temp4_input': No such file or directory
please check your device or remove this var from Conky
Conky: can't open '/sys/class/hwmon/hwmon1/temp4_input': No such file or directory
please check your device or remove this var from Conky
Conky: can't open '/sys/class/hwmon/hwmon1/temp4_input': No such file or directory
please check your device or remove this var from Conky
Conky: can't open '/sys/class/hwmon/hwmon0/temp5_input': No such file or directory
please check your device or remove this var from Conky
Conky: can't open '/sys/class/hwmon/hwmon0/temp5_input': No such file or directory
please check your device or remove this var from Conky
Conky: can't open '/sys/class/hwmon/hwmon1/temp5_input': No such file or directory
please check your device or remove this var from Conky
Conky: can't open '/sys/class/hwmon/hwmon1/temp5_input': No such file or directory
please check your device or remove this var from Conky
Conky: can't open '/sys/class/hwmon/hwmon2/temp5_input': No such file or directory
please check your device or remove this var from Conky
Conky: can't open '/sys/class/hwmon/hwmon2/temp5_input': No such file or directory
please check your device or remove this var from Conky
Conky: can't open '/sys/class/hwmon/hwmon0/temp6_input': No such file or directory
please check your device or remove this var from Conky
Conky: can't open '/sys/class/hwmon/hwmon0/temp6_input': No such file or directory
please check your device or remove this var from Conky
Conky: can't open '/sys/class/hwmon/hwmon1/temp6_input': No such file or directory
please check your device or remove this var from Conky
Conky: can't open '/sys/class/hwmon/hwmon1/temp6_input': No such file or directory
please check your device or remove this var from Conky
Conky: can't open '/sys/class/hwmon/hwmon2/temp6_input': No such file or directory
please check your device or remove this var from Conky
Conky: can't open '/sys/class/hwmon/hwmon2/temp6_input': No such file or directory
please check your device or remove this var from Conky
Conky: can't open '/sys/class/hwmon/hwmon0/temp7_input': No such file or directory
please check your device or remove this var from Conky
Conky: can't open '/sys/class/hwmon/hwmon0/temp7_input': No such file or directory
please check your device or remove this var from Conky
Conky: can't open '/sys/class/hwmon/hwmon1/temp7_input': No such file or directory
please check your device or remove this var from Conky
Conky: can't open '/sys/class/hwmon/hwmon1/temp7_input': No such file or directory
please check your device or remove this var from Conky
Conky: can't open '/sys/class/hwmon/hwmon2/temp7_input': No such file or directory
please check your device or remove this var from Conky
Conky: can't open '/sys/class/hwmon/hwmon2/temp7_input': No such file or directory
please check your device or remove this var from Conky
Conky: can't open '/sys/class/hwmon/hwmon0/temp8_input': No such file or directory
please check your device or remove this var from Conky
Conky: can't open '/sys/class/hwmon/hwmon0/temp8_input': No such file or directory
please check your device or remove this var from Conky
Conky: can't open '/sys/class/hwmon/hwmon1/temp8_input': No such file or directory
please check your device or remove this var from Conky
Conky: can't open '/sys/class/hwmon/hwmon1/temp8_input': No such file or directory
please check your device or remove this var from Conky
Conky: can't open '/sys/class/hwmon/hwmon2/temp8_input': No such file or directory
please check your device or remove this var from Conky
Conky: can't open '/sys/class/hwmon/hwmon2/temp8_input': No such file or directory
please check your device or remove this var from Conky
Conky: can't open '/sys/class/hwmon/hwmon0/temp9_input': No such file or directory
please check your device or remove this var from Conky
Conky: can't open '/sys/class/hwmon/hwmon0/temp9_input': No such file or directory
please check your device or remove this var from Conky
Conky: can't open '/sys/class/hwmon/hwmon1/temp9_input': No such file or directory
please check your device or remove this var from Conky
Conky: can't open '/sys/class/hwmon/hwmon1/temp9_input': No such file or directory
please check your device or remove this var from Conky
Conky: can't open '/sys/class/hwmon/hwmon2/temp9_input': No such file or directory
please check your device or remove this var from Conky
Conky: can't open '/sys/class/hwmon/hwmon2/temp9_input': No such file or directory
please check your device or remove this var from Conky
Conky: can't parse X color 'DarkSlateGreen'
Conky: can't parse X color 'lightred'
Conky: desktop window (294) is root window
Conky: window type - normal
Conky: drawing to created window (0x1800001)
Conky: drawing to double buffer
Conky: could not connect to hddtemp host
sh: aptitude: command not found
Conky: obj->data.i 3 info.cpu_count 2
Conky: attempting to use more CPUs than you have!
/dev/sda: open: Permission denied

/dev/sda: open: Permission denied

cat: /etc/timezone: No such file or directory
Conky: Unable to load image '/home/XXXXXXXX/.face'
Conky: could not connect to hddtemp host
cat: /etc/timezone: No such file or directory

and here's the slightly modified version (the font + shadow were absolutely horrible at that small size, so i changed it to sth reasonable; i also like to crank up the update interval during troubleshooting):

background no
use_xft yes
xftfont Terminus:size=8
xftalpha 0.9    #Alpha of Xft font. Must be a value at or between 1 and 0 (transparency font)
override_utf8_locale yes # special signs
update_interval 0.2
total_run_times 0
own_window yes
own_window_type normal
own_window_transparent no
own_window_colour black
# own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager
double_buffer yes
draw_shades no
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 32768 # Maximum size of user text buffer, i.e. layout below TEXT default is 16384 bytes, text buffer size a little maybe 1024


TEXT
#
${image $HOME/.face -p 135,0 -s 48x36}\
#
${color2}Dystrybution:${color1}${alignr}\
${shadecolor red}\
${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}System & 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}Names: ${color1}${user_names}
${color2}Desktop:${color1}${alignr}"${desktop_name}"  nr  ${desktop} of ${desktop_number}
${color2}Conky program:${color1} v. ${conky_version} \
${color2}${alignc}Threads:${color1} ${threads}\
${color2}${alignr}System Updates: ${color1}${execi 3600 aptitude search "~U" | wc -l | tail}
#${execi 600 aptitude search "~U" | wc -l | tail}
${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}
#
#
#
#
#
# how to check automaticly ${hwmon X temp Y} ??? how to check how many procesor ??? how to do loop "for i" ???
#${if_match "${hwmon 2 temp 3}">"69"}${color red}${hwmon 2 temp 3}${else}${hwmon 2 temp 3}${endif}
#
${voffset -2}${color2}Processor: ${color1}${alignr}${execi 99999 cat /proc/cpuinfo | grep "model name" -m1 | cut -d":" -f2 | cut -d" " -f2- | sed 's#Processor ##'}${voffset -4}
#
${if_match "${cpu cpu1}"!=""}${color green}${cpubar cpu1 15,}
${voffset -22}${color2} CPU 1:${color1}\
${voffset -6}${offset 0}${goto 120}${color1}${cpugauge cpu1 15, 30}${voffset -8}${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     ${cpu cpu1} %${else}${voffset -12}${endif}
#
${if_match "${cpu cpu2}"!=""}${color green}${cpubar cpu2 15,}
${voffset -22}${color2} CPU 2:${color1}\
${voffset -6}${offset 0}${goto 120}${color1}${cpugauge cpu2 15, 30}${voffset -8}${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     ${cpu cpu2} %${else}${voffset -12}${endif}
#
${if_match "${cpu cpu3}"!=""}${color green}${cpubar cpu3 15,}
${voffset -22}${color2} CPU 3:${color1}\
${voffset -6}${offset 0}${goto 120}${color1}${cpugauge cpu3 15, 30}${voffset -8}${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     ${cpu cpu3} %${else}${voffset -12}${endif}
#
${if_match "${cpu cpu4}"!=""}${color green}${cpubar cpu4 15,}
${voffset -22}${color2} CPU 4:${color1}\
${voffset -6}${offset 0}${goto 120}${color1}${cpugauge cpu4 15, 30}${voffset -8}${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     ${cpu cpu4} %${else}${voffset -12}${endif}
#
${if_match "${cpu cpu5}"!=""}${color green}${cpubar cpu5 15,}
${voffset -22}${color2} CPU 5:${color1}\
${voffset -6}${offset 0}${goto 120}${color1}${cpugauge cpu5 15, 30}${voffset -8}${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     ${cpu cpu5} %${else}${voffset -12}${endif}
#
${if_match "${cpu cpu6}"!=""}${color green}${cpubar cpu6 15,}
${voffset -22}${color2} CPU 6:${color1}\
${voffset -6}${offset 0}${goto 120}${color1}${cpugauge cpu6 15, 30}${voffset -8}${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     ${cpu cpu6} %${else}${voffset -12}${endif}
#
${if_match "${cpu cpu7}"!=""}${color green}${cpubar cpu7 15,}
${voffset -22}${color2} CPU 7:${color1}\
${voffset -6}${offset 0}${goto 120}${color1}${cpugauge cpu7 15, 30}${voffset -8}${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     ${cpu cpu7} %${else}${voffset -12}${endif}
#
${if_match "${cpu cpu8}"!=""}${color green}${cpubar cpu8 15,}
${voffset -22}${color2} CPU 8:${color1}\
${voffset -6}${offset 0}${goto 120}${color1}${cpugauge cpu8 15, 30}${voffset -8}${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     ${cpu cpu8} %${else}${voffset -12}${endif}
#
${color darkgreen}${cpugraph 30,0 000000 00ff00 -l}
${voffset -30} ${color2}CPU History:\
${voffset -13}${offset 20}${goto -30}${color1}${cpugauge 30, 80}\
${alignr 5}${voffset -16}${cpu} %
#
${voffset -5}
${color DarkSlateGreen}${entropy_bar 15,380}
${voffset -22} ${color2}Empaty:${color1}${alignr 5}${entropy_perc} %  ${entropy_avail}  /  ${entropy_poolsize}
#
${voffset -3}${color3}${stippled_hr}
#
#
#
#
#
#
${color2}System load average:${color1}${alignr}[MB] for past min.   1    5   15 
${color2}Processes: ${color1}${processes} ${color2}Running: ${color1}${running_processes} ${color1}${alignr}${loadavg}
${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 mem 1} ${top pid 1}${alignr}|${color FF0000}${top_mem mem 1}${color1} ${top_mem cpu 1} ${top_mem pid 1} ${alignr}${top_mem name 1}
${color1}${top name 2}${offset -20}${color FF4500}${top cpu 2}${color1} ${top mem 2} ${top pid 2}${alignr}|${color FF4500}${top_mem mem 2}${color1} ${top_mem cpu 2} ${top_mem pid 2} ${alignr}${top_mem name 2}
${color1}${top name 3}${offset -20}${color FFFF00}${top cpu 3}${color1} ${top mem 3} ${top pid 3}${alignr}|${color FFFF00}${top_mem mem 3}${color1} ${top_mem cpu 3} ${top_mem pid 3} ${alignr}${top_mem name 3}
${color1}${top name 4}${offset -20}${color 9ACD32}${top cpu 4}${color1} ${top mem 4} ${top pid 4}${alignr}|${color 9ACD32}${top_mem mem 4}${color1} ${top_mem cpu 4} ${top_mem pid 4} ${alignr}${top_mem name 4}
${color1}${top name 5}${offset -20}${color 008000}${top cpu 5}${color1} ${top mem 5} ${top pid 5}${alignr}|${color 008000}${top_mem mem 5}${color1} ${top_mem cpu 5} ${top_mem pid 5} ${alignr}${top_mem name 5}
${color1}${top name 6}${offset -20}${color 006400}${top cpu 6}${color1} ${top mem 6} ${top pid 6}${alignr}|${color 006400}${top_mem mem 6}${color1} ${top_mem cpu 6} ${top_mem pid 6} ${alignr}${top_mem name 6}
${color3}${stippled_hr}
#
#
#
#
#
#
${voffset -5}${color blue}${membar 15,0}
${voffset -22} ${color2}Memory RAM Usage:${color1}${voffset -6}${offset 10}${memgauge 15, 30}${voffset -8}${alignr 5}${memperc} %  ${mem}  /  ${memmax}
${color orange}${memgraph 30,0 0000FF FFFF00 -l}
${voffset -30} ${color2}Memory RAM History${color1}
${voffset 5}${color3}${stippled_hr}
#
#
#
#
#
#
#
##
#
#
${color2}Disc "sda":${color1}\
#
${alignr}\
${color2}protect: ${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}' | sed '/^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}/$USER\
${color2}${alignr 0}Home katalog: ${color1}$HOME
#
${color black}${fs_bar 15 /}
${voffset -22} ${color2}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}Swap:${alignr 0}${color1}no swap${else}\
${if_match "${swapmax}"=="0"   }${color2}Swap:${alignr 0}${color1}no swap${else}\
${if_match "${swapmax}"=="0B"  }${color2}Swap:${alignr 0}${color1}no swap${else}\
${if_match "${swapmax}"=="0B " }${color2}Swap:${alignr 0}${color1}no swap${else}\
${if_match "${swapmax}"=="0B  "}${color2}Swap:${alignr 0}${color1}no swap${else}\
${if_match "${swapperc}"=="No swap"}${color2}Swap:${alignr 0}${color1}no swap${else}
${voffset -15}${color grey}${swapbar 15,}
${voffset -22}${color2} Swap: ${color1} ${swapfree}  ${alignr 5}${swapperc}%    ${swap}/${swapmax}\
${endif}${endif}${endif}${endif}${endif}${endif}
#
#
#
${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}${color2}Disk Activity\
${alignr 5}${color2}Write:${color1} ${diskio_write /dev/sda}
#
${voffset 7}${color2}Disc "sdb":${color1}\
${alignr}\
${if_empty ${exec df -h | grep "/dev/sdb"}}\
No disk sdb/USB\
${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 -7}${color3}${stippled_hr}
#
#
#
#
#
#
#
${color2}Vol: ${color1}${exec amixer -c 0 get Master | grep Mono: | awk '{print $NF}'} ${alignc}\
${if_match "${exec amixer get Master -M | grep -oE "[[:digit:]]*%"}" >   "0%"}${color lightgreen}|||||\
${if_match "${exec amixer get Master -M | grep -oE "[[:digit:]]*%"}" >= "10%"}${color green}|||||\
${if_match "${exec amixer get Master -M | grep -oE "[[:digit:]]*%"}" >= "20%"}${color darkgreen}|||||\
${if_match "${exec amixer get Master -M | grep -oE "[[:digit:]]*%"}" >= "30%"}${color yellow}|||||\
${if_match "${exec amixer get Master -M | grep -oE "[[:digit:]]*%"}" >= "40%"}${color yellow}|||||\
${if_match "${exec amixer get Master -M | grep -oE "[[:digit:]]*%"}" >= "50%"}${color yellow}|||||\
${if_match "${exec amixer get Master -M | grep -oE "[[:digit:]]*%"}" >= "60%"}${color lightred}|||||\
${if_match "${exec amixer get Master -M | grep -oE "[[:digit:]]*%"}" >= "70%"}${color red}|||||\
${if_match "${exec amixer get Master -M | grep -oE "[[:digit:]]*%"}" >= "80%"}${color darkred}|||||\
${if_match "${exec amixer get Master -M | grep -oE "[[:digit:]]*%"}" >= "90%"}${color black}|||||\
${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:]]*%"}
#
${voffset -6}${color3}${stippled_hr}
#
#
#
${color2}Internet device 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 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 Address: //' -e 's/<.*$//'}"!=""}\
${execi 3600 wget -O - http://ip.tupeux.com | tail}\
${else}\
${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}"=="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}
${voffset -13}
#
${color2}Gate/Router: ${color1}${if_gw}${gw_ip}${else}brak${endif}\
${alignr}${color2}DNS serwer: ${color1}${nameserver}
#
# 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}${else}\
${if_match "${gw_iface}"=="eth1"}${upspeedgraph eth1 20,188 0000ff ff0000 1}${else}\
${if_match "${gw_iface}"=="eth2"}${upspeedgraph eth2 20,188 0000ff ff0000 1}${else}\
${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}"=="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}${else}\
${if_match "${gw_iface}"=="usb1"}${upspeedgraph usb1 20,188 0000ff ff0000 1}${else}\
${if_match "${gw_iface}"=="ppp0"}${upspeedgraph ppp0 20,188 0000ff ff0000 1}${else}\
${if_match "${gw_iface}"=="ppp1"}${upspeedgraph ppp1 20,188 0000ff ff0000 1}${else}\
${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}\
#
${color DeepSkyBlue}${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}"=="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}
#
${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}"=="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}/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}"=="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}\
#
${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}"=="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}\
#
${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}"=="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}\
${alignr}/s
#
${voffset -13}${color2}${offset 60}Up↑↑↑${alignc}${offset 15}Usage${alignr}${offset -60}Down↓↓↓
${voffset 0}${color cyan}\
#
#
${voffset -6}
${if_match "${wireless_link_qual_perc wlan0}"!="unk"}\
${color2}Wireless Lan (Wi-Fi) mode: ${color1}${wireless_mode wlan0} ${color2}${alignr}Name SSID: ${color1}${wireless_essid wlan0}
${color2}Signal: ${color1}${wireless_link_qual wlan0}% ${alignc}${color2}Max: ${color1}${wireless_link_qual_max wlan0}% ${alignr}${color2}Wi-Fi AP: ${color1}${wireless_ap wlan0}
${color lightgreen}${wireless_link_bar 15 wlan0}
${voffset -22}${color2} Speed: ${color1}${wireless_bitrate wlan0} ${color1}${alignc}wlan0 ${color1}${alignr}${wireless_link_qual_perc wlan0} % 
${voffset -12}\
${else}${color2}Wireless Lan (Wi-Fi):${color1}${alignr}Wi-Fi no detect wlan0${voffset -8}${endif}
#
${voffset -6}
${if_match "${wireless_link_qual_perc wlan1}"!="unk"}\
${color2}Wireless Lan (Wi-Fi) mode: ${color1}${wireless_mode wlan1} ${color2}${alignr}Name SSID: ${color1}${wireless_essid wlan1}
${color2}Signal: ${color1}${wireless_link_qual wlan1}% ${alignc}${color2}Max: ${color1}${wireless_link_qual_max wlan1}% ${alignr}${color2}Wi-Fi AP: ${color1}${wireless_ap wlan1}
${color lightgreen}${wireless_link_bar 15 wlan1}
${voffset -22}${color2} Speed: ${color1}${wireless_bitrate wlan1} ${color1}${alignc}wlan1 ${color1}${alignr}${wireless_link_qual_perc wlan1} % 
${voffset -12}\
${else}${color2}Wireless Lan (Wi-Fi):${color1}${alignr}Wi-Fi no detect wlan1${voffset -8}${endif}
#
${voffset -6}
${if_match "${wireless_link_qual_perc wlan2}"!="unk"}\
${color2}Wireless Lan (Wi-Fi) mode: ${color1}${wireless_mode wlan2} ${color2}${alignr}Name SSID: ${color1}${wireless_essid wlan2}
${color2}Signal: ${color1}${wireless_link_qual wlan2}% ${alignc}${color2}Max: ${color1}${wireless_link_qual_max wlan2}% ${alignr}${color2}Wi-Fi AP: ${color1}${wireless_ap wlan2}
${color lightgreen}${wireless_link_bar 15 wlan2}
${voffset -22}${color2} Speed: ${color1}${wireless_bitrate wlan2} ${color1}${alignc}wlan2 ${color1}${alignr}${wireless_link_qual_perc wlan2} % 
${voffset -12}\
${else}${color2}Wireless Lan (Wi-Fi):${color1}${alignr}Wi-Fi no detect wlan2${voffset -8}${endif}
${color3}${stippled_hr}
#
#
#
#
#
${color2}Calendar: ${color1}${time %G-%m-%d %H}:${time %M}${blink :}${time %S }\
${if_match ${time %H}<=12}p.m.${else}${if_match ${time %H}>12}a.m.${endif}${endif}${alignr}${time %Z %z} ${execp cat /etc/timezone}
#
#
# month back
${color3}${execpi 900 cal | sed ':a;N;$!ba;s/\n/\${color3}\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}Sa ${color1}${else}Sa ${endif}\
${if_match "${time %u}" == "7"}${color2}Su ${color1}${else}Su ${endif}
\
${color3}${goto 132}${color3}${execpi 900 LAR=`date +%-d`; cal  | sed '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 cal | sed ':a;N;$!ba;s/\n/\n${goto 263}/g'}
#
${voffset -20}${color3}${stippled_hr}
#
#
#
#
#
${color2}Ports connections:${color2}${alignr}Bittorrent 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: ${color1}${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} Local 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 65535 lip 1}${alignr}${color2} Local host: ${color1}${tcp_portmon 1 65535 lhost 1}\
${endif}
#
${if_match  "\
${tcp_portmon 1 65535 lip 2}\
"!=""}\
${voffset -12}${else}\
${color2}Local port 2: ${color1}${tcp_portmon 1 65535 lip 2}${alignr}${color2} Local host: ${color1}${tcp_portmon 1 65535 lhost 2}\
${endif}
#
${if_match  "\
${tcp_portmon 1 65535 lip 3}\
"==""}\
${voffset -12}${else}\
${color2}Local port 3: ${color1}${tcp_portmon 1 65535 lip 3}${alignr}${color2} Local host: ${color1}${tcp_portmon 1 65535 lhost 3}\
${endif}
#
${if_match  "\
${tcp_portmon 1 65535 lip 4}\
"==""}\
${voffset -13}${else}\
${color2}Local port 4: ${color1}${tcp_portmon 1 65535 lip 4}${alignr}${color2} Local host: ${color1}${tcp_portmon 1 65535 lhost 4}\
${endif}
#
${if_match  "\
${tcp_portmon 1 65535 lip 5}\
"==""}\
${voffset -13}${else}\
${color2}Local port 5: ${color1}${tcp_portmon 1 65535 lip 5}${alignr}${color2} Local host: ${color1}${tcp_portmon 1 65535 lhost 5}\
${endif}
#
${if_match  "\
${tcp_portmon 1 65535 lip 6}\
"==""}\
${voffset -13}${else}\
${color2}Local port 6: ${color1}${tcp_portmon 1 65535 lip 6}${alignr}${color2} Local host: ${color1}${tcp_portmon 1 65535 lhost 6}\
${endif}
#
${if_match  "\
${tcp_portmon 1 65535 lip 7}\
"==""}\
${voffset -13}${else}\
${color2}Local port 7: ${color1}${tcp_portmon 1 65535 lip 7}${alignr}${color2} Local host: ${color1}${tcp_portmon 1 65535 lhost 7}\
${endif}
#
${if_match  "\
${tcp_portmon 1 65535 lip 8}\
"==""}\
${voffset -13}${else}\
${color2}Local port 8: ${color1}${tcp_portmon 1 65535 lip 8}${alignr}${color2} Local 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} Local 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_portmon 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_portmon 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_portmon 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_portmon 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_portmon 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_portmon 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_portmon 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_portmon 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_portmon 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_portmon 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}

Last edited by ohnonot (2021-07-04 07:00:25)


Give to COVAX! Here or here. (explanation)

Offline

#12 2016-02-15 13:03:45

Sector11
Conky 1.9er Mod Squid
From: Upstairs
Registered: 2015-08-20
Posts: 6,769

Re: conky -- can you test it please.

@ohnonot

Does: nproc work on ARCH? I think read somewhere it might not be 'exact'.

You brought up a good point that I have mentioned a lot but neglected here: the distro.  Not all conkys work on all distros.  Or even on the same distro with different 'DEs' or WM's; they sometimes get different results.

The sensors thing (hwmon) I did mention, those are specific to each machine and depend on the user installing lm-sensors and running sensors-detect.  I think "hddtemp" works different in different systems as well.

ie: today on BunsenLabs (Debian 8.3)

${hddtemp /dev/sda}

works just fine, but years ago I had to use, after gaining user access to hddtemp from root:

${exec hddtemp /dev/sda | cut --characters 34-37}

There is also.  conky-cli, conky-standard and conky-all, I believe I read some place ARCH even has a conky-nvidia.  So not all conky apps will react the same.

I felt the same with the shading and colours - but that's a personal choice.  I've bumped into a few colour blind people that displayed their conkys and I had a hell of a time trying to read them.  Clear as a bell for the creator though.

ncal gives more options than cal and is (on Debian) the same app.

"man ncal" or "man cal" show the same man page - so yes, ncal is not universal if it's not in ARCH

CAL(1)                                   BSD General Commands Manual                                   CAL(1)

NAME
     cal, ncal — displays a calendar and the date of Easter

SYNOPSIS
     cal [-3hjy] [-A number] [-B number] [[month] year]
     cal [-3hj] [-A number] [-B number] -m month [year]
     ncal [-3bhjJpwySM] [-A number] [-B number] [-s country_code] [[month] year]
     ncal [-3bhJeoSM] [-A number] [-B number] [year]
     ncal [-CN] [-H yyyy-mm-dd] [-d yyyy-mm]

DESCRIPTION
     The cal utility displays a simple calendar in traditional format and ncal offers an alternative layout,
     more options and the date of Easter.  The new format is a little cramped but it makes a year fit on a
     25x80 terminal.  If arguments are not specified, the current month is displayed.

ie: Easter; '-e' Christian, '-o' Orthodox Easter (Greek and Russian Orthodox Churches)

  $ cal -e
Usage: cal [general options] [-hjy] [[month] year]
       cal [general options] [-hj] [-m month] [year]
       ncal [general options] [-bhJjpwySM] [-s country_code] [[month] year]
       ncal [general options] [-bhJeoSM] [year]
General options: [-NC31] [-A months] [-B months]
For debug the highlighting: [-H yyyy-mm-dd] [-d yyyy-mm]
 
  $ ncal -e
27 March 2016
 
  $ ncal -o
 1 May 2016 

Since ncal does what cal does and more, I started using it, now it's habit.


The sun will never set if you keep walking towards it. - my son
Being positive doesn't understand physics.
_______________________________
Debian 10 Buster = SharpBang ♯!

Offline

#13 2016-02-15 17:48:25

ohnonot
...again
Registered: 2015-09-29
Posts: 5,554

Re: conky -- can you test it please.

S11, what's nproc? can't find it in op's conky, and not in conky docs either.

about ncal: as your manpage shows, it says "BSD General Commands...", on my system "man cal" shows "part of the util-linux package".
i even installed bsd utilities, incl ncal, but it complained about unknown options (-b iirc).


Give to COVAX! Here or here. (explanation)

Offline

#14 2016-02-15 19:56:55

Sector11
Conky 1.9er Mod Squid
From: Upstairs
Registered: 2015-08-20
Posts: 6,769

Re: conky -- can you test it please.

Yea, ARCH doesn't have ncal - what can I say.  sad

nproc is a CLI app:

NPROC(1)                                        User Commands                                        NPROC(1)

NAME
       nproc - print the number of processing units available

SYNOPSIS
       nproc [OPTION]...

DESCRIPTION
       Print the number of processing units available to the current process, which may be less than the num‐
       ber of online processors

       --all  print the number of installed processors

       --ignore=N
              if possible, exclude N processing units

       --help display this help and exit

       --version
              output version information and exit

AUTHOR
       Written by Giuseppe Scrivano.

REPORTING BUGS
       GNU coreutils online help: <http://www.gnu.org/software/coreutils/>
       Report nproc translation bugs to <http://translationproject.org/team/>

I really should have used ${nproc --all} (Post #10 above) other wise it reports CPUs available for a "process"

${execi 86400 nproc --all}

 15 Feb 16 @ 16:01:37 ~
  $ nproc --all
3
 
 15 Feb 16 @ 16:01:45 ~
  $ 

Testing nproc now - from tweaking grzegorzdabrowka code - he has some awesome stuff in there!

If the computer has 3 or more CPUs it will add a cpu0 reading: Average of them all.  I figure CPU0 isn't needed for a dual core - but it's only a number change anyway.  Also I'm not testing for a CPU1 - we all have at least 1  lol

And I padded 2 spaces for values less than 10 and 1 for values less than 100% - keeps the numbers in line.

${if_match "${execi 10 nproc -all}">="3"}${color1}${cpubar cpu0 15}${color}\
${goto 10}${color5}${cpugauge cpu0 15,30}
${voffset -22}${goto 50}Avg    ${freq_g 0} GHz  ${if_match ${cpu cpu0} < 10}  ${cpu cpu0}\
${else}${if_match ${cpu cpu0} < 100} ${cpu cpu0}\
${else}${color9}${cpu cpu0}${color}${endif}${endif} %${color}${else}${endif}
${color1}${cpubar cpu1 15}${color}\
${goto 10}${color5}${cpugauge cpu1 15,30}
${voffset -22}${goto 50}CPU 1  ${freq_g 1} GHz  ${if_match ${cpu cpu1} < 10}  ${cpu cpu1}\
${else}${if_match ${cpu cpu1} < 100} ${cpu cpu1}\
${else}${color9}${cpu cpu1}${color}${endif}${endif} %${color}\
	${if_match "${cpu cpu2}"!=""}
${color1}${cpubar cpu2 15}${color}\
${goto 10}${color5}${cpugauge cpu2 15,30}
${voffset -22}${goto 50}CPU 2  ${freq_g 2} GHz  ${if_match ${cpu cpu2} < 10}  ${cpu cpu2}\
${else}${if_match ${cpu cpu2} < 100} ${cpu cpu2}\
${else}${color9}${cpu cpu2}${color}${endif}${endif} %${color}\
	${if_match "${cpu cpu3}"!=""}
${color1}${cpubar cpu3 15}${color}\
${goto 10}${color5}${cpugauge cpu3 15,30}
${voffset -22}${goto 50}CPU 3  ${freq_g 3} GHz  ${if_match ${cpu cpu3} < 10}  ${cpu cpu3}\
${else}${if_match ${cpu cpu3} < 100} ${cpu cpu3}\
${else}${color9}${cpu cpu3}${color}${endif}${endif} %${color}\
	${if_match "${cpu cpu4}"!=""}
${color1}${cpubar cpu4 15}${color}\
${goto 10}${color5}${cpugauge cpu4 15,30}
${voffset -22}${goto 50}CPU 4  ${freq_g 4} GHz  ${if_match ${cpu cpu4} < 10}  ${cpu cpu4}\
${else}${if_match ${cpu cpu4} < 100} ${cpu cpu4}\
${else}${color9}${cpu cpu4}${color}${endif}${endif} %${color}\
	${if_match "${cpu cpu5}"!=""}
${color1}${cpubar cpu5 15}${color}\
${goto 10}${color5}${cpugauge cpu5 15,30}
${voffset -22}${goto 50}CPU 5  ${freq_g 5} GHz  ${if_match ${cpu cpu5} < 10}  ${cpu cpu5}\
${else}${if_match ${cpu cpu5} < 100} ${cpu cpu5}\
${else}${color9}${cpu cpu5}${color}${endif}${endif} %${color}\
	${if_match "${cpu cpu6}"!=""}
${color1}${cpubar cpu6 15}${color}\
${goto 10}${color5}${cpugauge cpu6 15,30}
${voffset -22}${goto 50}CPU 6  ${freq_g 6} GHz  ${if_match ${cpu cpu6} < 10}  ${cpu cpu6}\
${else}${if_match ${cpu cpu6} < 100} ${cpu cpu6}\
${else}${color9}${cpu cpu6}${color}${endif}${endif} %${color}\
	${if_match "${cpu cpu7}"!=""}
${color1}${cpubar cpu7 15}${color}\
${goto 10}${color5}${cpugauge cpu7 15,30}
${voffset -22}${goto 50}CPU 7  ${freq_g 7} GHz  ${if_match ${cpu cpu7} < 10}  ${cpu cpu7}\
${else}${if_match ${cpu cpu7} < 100} ${cpu cpu7}\
${else}${color9}${cpu cpu7}${color}${endif}${endif} %${color}\
	${if_match "${cpu cpu8}"!=""}
${color1}${cpubar cpu8 15}${color}\
${goto 10}${color5}${cpugauge cpu8 15,30}
${voffset -22}${goto 50}CPU 8  ${freq_g 8} GHz  ${if_match ${cpu cpu8} < 10}  ${cpu cpu8}\
${else}${if_match ${cpu cpu8} < 100} ${cpu cpu8}\
${else}${color9}${cpu cpu8}${color}${endif}${endif} %${color}
${endif}${endif}${endif}${endif}${endif}${endif}${endif}
----
cpu 1 ${if_match "${cpu cpu1}"!=""}exists${else}non-existant${endif}
cpu 2 ${if_match "${cpu cpu2}"!=""}exists${else}non-existant${endif}
cpu 3 ${if_match "${cpu cpu3}"!=""}exists${else}non-existant${endif}
cpu 4 ${if_match "${cpu cpu4}"!=""}exists${else}non-existant${endif}
cpu 5 ${if_match "${cpu cpu5}"!=""}exists${else}non-existant${endif}
cpu 6 ${if_match "${cpu cpu6}"!=""}exists${else}non-existant${endif}
cpu 0 ${if_match "${cpu cpu0}"!=""}exists${else}non-existant${endif}

This "${if_match "${cpu cpu6}"!=""}" is pure genius.

Hear that grzegorzdabrowka "genius!"  smile

2016_02_15_16_52_24_Scrot11.jpg Stressed a bit --> 2016_02_15_16_53_47_Scrot11.png


The sun will never set if you keep walking towards it. - my son
Being positive doesn't understand physics.
_______________________________
Debian 10 Buster = SharpBang ♯!

Offline

#15 2016-02-16 06:20:28

ohnonot
...again
Registered: 2015-09-29
Posts: 5,554

Re: conky -- can you test it please.

Sector11 wrote:

tweaking grzegorzdabrowka code - he has some awesome stuff in there!

agreed.

btw, s11, you have 3 cores?  yikes  i thought they only come in pairs?


Give to COVAX! Here or here. (explanation)

Offline

#16 2016-02-16 07:10:27

pvsage
Internal Affairs
Registered: 2015-09-29
Posts: 1,433

Re: conky -- can you test it please.

^ Some dual-core CPUs have two (or more) potentially unlockable cores; they're typically the same die as the quad cores, but they have one or two cores that didn't quite pass muster and are sorted out in the QC process and sold as dual-core with a pair of cores locked.  (EDIT:  I'm pretty sure the heat sink and fan bundled with them are sized for only two cores as well.)  I have such an Athlon chip in which one of the two locked cores is usable, and I can unlock individual cores via my mobo's BIOS.

Last edited by pvsage (2016-02-16 07:37:09)


Be excellent to each other, and...party on, dudes!
BunsenLabs Forum Rules
Tending and defending the Flame since 2009

Offline

#17 2016-02-16 11:11:18

Sector11
Conky 1.9er Mod Squid
From: Upstairs
Registered: 2015-08-20
Posts: 6,769

Re: conky -- can you test it please.

/OT

April 23, 2008: AMD's Phenom X3 processors
AMD Athlon II X3 450 Rana Triple-Core

AMD has been selling x3 CPU's for years, not dual core, quad cores with one disabled to get them into a lower price marked.

Not power houses by any means, but when I went to buy this is was less than half the cost of a quad core and the store didn't have any dual cores available.

I'm actually quite happy with it, and at 3.2MHz a nice plus too.  Unfortunately my bios won't 'unlock' the 4th core but it is unlockable.  You can still buy mine at Amazon - $25

/Topic


The sun will never set if you keep walking towards it. - my son
Being positive doesn't understand physics.
_______________________________
Debian 10 Buster = SharpBang ♯!

Offline

#18 2016-02-16 15:01:29

pvsage
Internal Affairs
Registered: 2015-09-29
Posts: 1,433

Re: conky -- can you test it please.

Just to finish up the sidebar:

Three cores is weird.

I seem to recall reading a lot of reviews before I purchased my Athlon that made it clear the locked cores were a rather open secret, and I might have been slightly disappointed at boot failure with all four cores unlocked.  A little web research found the problem was due to the why of it being sold as an X2; probably would have been sold as an X3 had I gone looking a few months earlier.
/sidebar


Be excellent to each other, and...party on, dudes!
BunsenLabs Forum Rules
Tending and defending the Flame since 2009

Offline

#19 2016-02-16 20:23:55

grzegorzdabrowka
Member
Registered: 2016-01-03
Posts: 16
Website

Re: conky -- can you test it please.

And my screens:
screen_1.png screen_2.png

Thank you all for your comments, tests, corrections and compliment. I read every of course.
I see that it is no possible made one conf for every distro sad My conf is full compatible with Ubuntu and Mint, and can be started on few other distro, but no more. So I hope that others could cut part of the code from my configuration.
If someone has ideas or every interesting parts of code can public, and I try use it.

When I update it, I public one more.
I will fix most of errors and will add part code of battery, music player and graphic card, (no weather because LUA configuration is too expanded).

Last edited by grzegorzdabrowka (2016-02-16 21:37:05)

Offline

#20 2016-02-16 22:22:06

Sector11
Conky 1.9er Mod Squid
From: Upstairs
Registered: 2015-08-20
Posts: 6,769

Re: conky -- can you test it please.


The sun will never set if you keep walking towards it. - my son
Being positive doesn't understand physics.
_______________________________
Debian 10 Buster = SharpBang ♯!

Offline

#21 2016-02-17 07:05:21

ohnonot
...again
Registered: 2015-09-29
Posts: 5,554

Re: conky -- can you test it please.

ok, so nobody knows why the original creator of this conky chose to display this network info.
well, i'll find it out evtl.

generally speaking, for me the most important aspect is not distro compatibility, but what do i even look at? what info do i really need to see constantly on my desktop? and does it get lost amongst other bits of info?


about weather:
TBG's weather conkys are unsurpassed. they've been around for ages, and there's lots of choice.
but they're all based on a rather convoluted bash sed/grep system.

my weather script works with a different logic. it
1) uses xmllint, and thus the same logic with which html pages are built
2) produces conky output, so the conkyrc itself becomes very short & lightweight.


Give to COVAX! Here or here. (explanation)

Offline

#22 2016-02-17 09:03:18

unklar
Back to the roots 1.9
From: #! BL
Registered: 2015-10-31
Posts: 1,549

Re: conky -- can you test it please.

ohnonot wrote:

about weather:
TBG's weather conkys are unsurpassed. they've been around for ages, and there's lots of choice.
but they're all based on a rather convoluted bash sed/grep system.

However, they work reliably!

my weather script works with a different logic. it
1) uses xmllint, and thus the same logic with which html pages are built
2) produces conky output, so the conkyrc itself becomes very short & lightweight.

Interested me, you have a link?

Offline

Board footer

Powered by FluxBB