Site Tools


conky

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
conky [2014/01/18 01:40]
conovaloff
conky [2014/01/18 03:38] (current)
conovaloff
Line 42: Line 42:
   maximum_width 350   maximum_width 350
   #Если не помогает - проверить переопределение этих настроек далее по конфигу   #Если не помогает - проверить переопределение этих настроек далее по конфигу
 +
 +==== конфиг файл ====
 +~/projects$ diff -NacrB ​ ./conky/ ./empty/ | awk '​{print " ​ "​$0}'​
 +  diff -NacrB ./​conky/​192_168_1_1.sh ./​empty/​192_168_1_1.sh
 +  *** ./​conky/​192_168_1_1.sh 2014-01-18 03:​28:​26.514642732 +0400
 +  --- ./​empty/​192_168_1_1.sh 1970-01-01 03:​00:​00.000000000 +0300
 +  ***************
 +  *** 1,9 ****
 +  - #!/bin/bash
 +  - T2="​true"​
 +  - T1=$(ping -c1 192.168.1.1 >/​dev/​null && echo "​true"​)
 +  - if [ "​$T1"​ = "​$T2"​ ];
 +  - then
 +  -      echo "​1"​
 +  - else
 +  -      echo "​0"​
 +  - fi
 +  --- 0 ----
 +  diff -NacrB ./​conky/​8_8_8_8.sh ./​empty/​8_8_8_8.sh
 +  *** ./​conky/​8_8_8_8.sh 2014-01-18 03:​24:​08.186639347 +0400
 +  --- ./​empty/​8_8_8_8.sh 1970-01-01 03:​00:​00.000000000 +0300
 +  ***************
 +  *** 1,9 ****
 +  - #!/bin/bash
 +  - T2="​true"​
 +  - T1=$(ping -c1 8.8.8.8 >/​dev/​null && echo "​true"​)
 +  - if [ "​$T1"​ = "​$T2"​ ];
 +  - then
 +  -      echo "​1"​
 +  - else
 +  -      echo "​0"​
 +  - fi
 +  --- 0 ----
 +  diff -NacrB ./​conky/​acer_smb.sh ./​empty/​acer_smb.sh
 +  *** ./​conky/​acer_smb.sh 2014-01-18 03:​20:​02.998636135 +0400
 +  --- ./​empty/​acer_smb.sh 1970-01-01 03:​00:​00.000000000 +0300
 +  ***************
 +  *** 1,9 ****
 +  - #!/bin/bash
 +  - T2="​Videos"​
 +  - T1=$(smbclient -NL 192.168.1.3 2>/​dev/​null | grep -o Videos)
 +  - if [ "​$T1"​ = "​$T2"​ ];
 +  - then
 +  -      echo "​1"​
 +  - else
 +  -      echo "​0"​
 +  - fi
 +  --- 0 ----
 +  diff -NacrB ./​conky/​apache.sh ./​empty/​apache.sh
 +  *** ./​conky/​apache.sh 2014-01-17 22:​59:​49.814431568 +0400
 +  --- ./​empty/​apache.sh 1970-01-01 03:​00:​00.000000000 +0300
 +  ***************
 +  *** 1,9 ****
 +  - #!/bin/bash
 +  - T2="​apache2 is running"​
 +  - T1=$(/​etc/​init.d/​apache2 status | awk '​{print $2,​$3,​$4}'​)
 +  - if [ "​$T1"​ = "​$T2"​ ];
 +  - then
 +  -      echo "​1"​
 +  - else
 +  -      echo "​0"​
 +  - fi
 +  --- 0 ----
 +  diff -NacrB ./​conky/​.conkyrc_main ./​empty/​.conkyrc_main
 +  *** ./​conky/​.conkyrc_main 2014-01-18 01:​46:​50.470562860 +0400
 +  --- ./​empty/​.conkyrc_main 1970-01-01 03:​00:​00.000000000 +0300
 +  ***************
 +  *** 1,116 ****
 +  - # Conky, a system monitor, based on torsmo
 +  - #
 +  - # Any original torsmo code is licensed under the BSD license
 +  - #
 +  - # All code written since the fork of torsmo is licensed under the GPL
 +  - #
 +  - # Please see COPYING for details
 +  - #
 +  - # Copyright (c) 2004, Hannu Saransaari and Lauri Hakkarainen
 +  - # Copyright (c) 2005-2010 Brenden Matthews, Philip Kovacs, et. al. (see AUTHORS)
 +  - # All rights reserved.
 +  - #
 +  - # This program is free software: you can redistribute it and/or modify
 +  - # it under the terms of the GNU General Public License as published by
 +  - # the Free Software Foundation, either version 3 of the License, or
 +  - # (at your option) any later version.
 +  - #
 +  - # This program is distributed in the hope that it will be useful,
 +  - # but WITHOUT ANY WARRANTY; without even the implied warranty of
 +  - # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. ​ See the
 +  - # GNU General Public License for more details.
 +  - # You should have received a copy of the GNU General Public License
 +  - # along with this program. ​ If not, see <​http://​www.gnu.org/​licenses/>​.
 +  - #
 +  - 
 +  - alignment top_left
 +  - background no
 +  - border_width 1
 +  - cpu_avg_samples 2
 +  - default_color white
 +  - default_outline_color white
 +  - default_shade_color white
 +  - draw_borders no
 +  - draw_graph_borders yes
 +  - draw_outline no
 +  - draw_shades no
 +  - use_xft yes
 +  - xftfont DejaVu Sans Mono:​size=12
 +  - minimum_size 350 1080
 +  - maximum_width 350
 +  - gap_x 1570
 +  - gap_y 0
 +  - #​minimum_size 5 5
 +  - net_avg_samples 2
 +  - no_buffers yes
 +  - out_to_console no
 +  - out_to_stderr no
 +  - extra_newline no
 +  - own_window yes
 +  - own_window_class Conky
 +  - #​own_window_type desktop
 +  - own_window_type normal ​
 +  - #​own_window_type override
 +  - own_window_hints undecorated,​below,​sticky,​skip_taskbar,​skip_pager  ​
 +  - #​own_window_transparent yes
 +  - stippled_borders 0
 +  - update_interval 1.0
 +  - uppercase no
 +  - use_spacer none
 +  - show_graph_scale no
 +  - show_graph_range no
 +  - 
 +  - TEXT
 +  - RESOURCE ${hr 2}
 +  -  ​
 +  - Kernel: ​ ${alignr}${kernel}
 +  - Uptime: ${alignr}${uptime}
 +  - CPU1: ${cpu cpu1}% ${alignr}${cpubar cpu1 8,60}
 +  - CPU2: ${cpu cpu2}% ${alignr}${cpubar cpu2 8,60}
 +  - CPU3: ${cpu cpu3}% ${alignr}${cpubar cpu3 8,60}
 +  - CPU4: ${cpu cpu4}% ${alignr}${cpubar cpu4 8,60}
 +  - RAM: $memperc% ${alignr}${membar 8,60}
 +  - Uptime: ${alignr}${uptime}
 +  - #${if_match ${execi 10 echo 87} <= 60}${if_match ${execi 10 echo 54} >=50} my battery is between 50 and 60 ${endif}${endif}
 +  - #Apache: ${if_existing /​home/​conovaloff/​projects/​conky/​apache.sh}${if_match ${execi 10 /​home/​conovaloff/​projects/​conky/​apache.sh} == 1}${color green}work${else} ${if_match ${execi 10 /​home/​conovaloff/​projects/​conky/​apache.sh} == 0}${color red}not work${else} ${color red}error $endif $endif ${else}${color red}does'​t exist config $endif
 +  - #Apache: ${if_match ${execi 10 /​home/​conovaloff/​projects/​conky/​apache.sh} = true}work${endif}
 +  -  ​
 +  - ${color white}Cpu: ${color white}${alignr}$cpu%
 +  - ${color white}${cpugraph 20,170 white white}
 +  -  ​
 +  - ${color white}Ram: ​ ${color white}$memperc% ​ ${alignr 4}$mem/​$memmax
 +  - ${color white}${membar 3,170}
 +  -  ​
 +  - ${color white}Disk IO:${color white} ${alignr 4}$diskio
 +  - ${color white}${diskiograph 20,170 white white}
 +  - ${color white}Root: ​ ${color white}${alignr 4}${fs_free /}
 +  - ${color white}${fs_bar 3,170 /}
 +  -  ​
 +  - ${if_existing /​proc/​net/​route ppp0}
 +  - WIRELESS NETWORK ${hr 2}
 +  - ${voffset 4}${font PizzaDude Bullets:​size=14}O${font}${color white}Up:​${color white}${alignr 4}${upspeed ppp0}k/s
 +  - ${color white}${upspeedgraph ppp0 20,170 white white}
 +  - ${voffset 4}${font PizzaDude Bullets:​size=14}N${font}${color white}Total:​${color white} ${totalup ppp0}
 +  - ${voffset 4}${font PizzaDude Bullets:​size=14}U${font}${color white}Down:​${color white}${alignr 4}${downspeed ppp0}k/s
 +  - ${color white}${downspeedgraph ppp0 20,170 white white}
 +  - ${voffset 4}${font PizzaDude Bullets:​size=14}T${font}${color white}Total:​ ${color white}${totaldown ppp0}
 +  - ${voffset 4}${font PizzaDude Bullets:​size=14}a${font}${color white}Local Ip: ${color white}${addr ppp0}
 +  - ${else}${if_existing /​proc/​net/​route eth0}
 +  - ETHERNET NETWORK ${hr 2}
 +  - ${voffset 4}${font PizzaDude Bullets:​size=14}O${font}${color 776241}Up:​${color 707070}${alignr 4}${upspeed eth0}k/s
 +  - ${color 3E3629}${upspeedgraph eth0 20,85 3E3629 776241}
 +  - ${voffset 4}${font PizzaDude Bullets:​size=14}N${color 776241}Total:​${color 707070} ${totalup eth0}
 +  - ${voffset 4}${font PizzaDude Bullets:​size=14}U${color 776241}Down:​${color 707070}${alignr 4}${downspeed eth0}k/s
 +  - ${color 3E3629}${downspeedgraph eth0 20,85 3E3629 776241}
 +  - ${voffset 4}${font PizzaDude Bullets:​size=14}T${color 776241}Total:​ ${color 707070}${totaldown eth0}
 +  - ${voffset 4}${font PizzaDude Bullets:​size=14}a${color white}Local Ip: ${color white}${addr eth0}
 +  - ${endif}${endif}
 +  -  ​
 +  - PROCESSES ${hr 2}
 +  - NAME $alignr PID    CPU
 +  - ${top name 1} $alignr ${top pid 1} ${top cpu 1}
 +  - ${top name 2} $alignr ${top pid 2} ${top cpu 2}
 +  - ${top name 3} $alignr ${top pid 3} ${top cpu 3}
 +  - ${top name 4} $alignr ${top pid 4} ${top cpu 4}
 +  - ${top name 5} $alignr ${top pid 5} ${top cpu 5}
 +  - ${top name 6} $alignr ${top pid 6} ${top cpu 6}
 +  --- 0 ----
 +  diff -NacrB ./​conky/​.conkyrc_services ./​empty/​.conkyrc_services
 +  *** ./​conky/​.conkyrc_services 2014-01-18 03:​29:​35.666643638 +0400
 +  --- ./​empty/​.conkyrc_services 1970-01-01 03:​00:​00.000000000 +0300
 +  ***************
 +  *** 1,75 ****
 +  - # Conky, a system monitor, based on torsmo
 +  - #
 +  - # Any original torsmo code is licensed under the BSD license
 +  - #
 +  - # All code written since the fork of torsmo is licensed under the GPL
 +  - #
 +  - # Please see COPYING for details
 +  - #
 +  - # Copyright (c) 2004, Hannu Saransaari and Lauri Hakkarainen
 +  - # Copyright (c) 2005-2010 Brenden Matthews, Philip Kovacs, et. al. (see AUTHORS)
 +  - # All rights reserved.
 +  - #
 +  - # This program is free software: you can redistribute it and/or modify
 +  - # it under the terms of the GNU General Public License as published by
 +  - # the Free Software Foundation, either version 3 of the License, or
 +  - # (at your option) any later version.
 +  - #
 +  - # This program is distributed in the hope that it will be useful,
 +  - # but WITHOUT ANY WARRANTY; without even the implied warranty of
 +  - # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. ​ See the
 +  - # GNU General Public License for more details.
 +  - # You should have received a copy of the GNU General Public License
 +  - # along with this program. ​ If not, see <​http://​www.gnu.org/​licenses/>​.
 +  - #
 +  - 
 +  - alignment top_left
 +  - background no
 +  - border_width 1
 +  - cpu_avg_samples 2
 +  - default_color white
 +  - default_outline_color white
 +  - default_shade_color white
 +  - draw_borders no
 +  - draw_graph_borders yes
 +  - draw_outline no
 +  - draw_shades no
 +  - use_xft yes
 +  - xftfont DejaVu Sans Mono:​size=12
 +  - minimum_size 350 1080
 +  - maximum_width 350
 +  - gap_x 1205
 +  - gap_y 0
 +  - #​minimum_size 5 5
 +  - net_avg_samples 2
 +  - no_buffers yes
 +  - out_to_console no
 +  - out_to_stderr no
 +  - extra_newline no
 +  - own_window yes
 +  - own_window_class Conky
 +  - #​own_window_type desktop
 +  - own_window_type normal ​
 +  - #​own_window_type override
 +  - own_window_hints undecorated,​below,​sticky,​skip_taskbar,​skip_pager  ​
 +  - #​own_window_transparent yes
 +  - stippled_borders 0
 +  - update_interval 1.0
 +  - uppercase no
 +  - use_spacer none
 +  - show_graph_scale no
 +  - show_graph_range no
 +  - 
 +  - TEXT
 +  - SERVICES ${hr 2}
 +  -  ​
 +  - ${color white}Apache:​ $alignr ${if_existing /​home/​conovaloff/​projects/​conky/​apache.sh}${if_match ${execi 10 /​home/​conovaloff/​projects/​conky/​apache.sh} == 1}${color green}work${else} ${if_match ${execi 10 /​home/​conovaloff/​projects/​conky/​apache.sh} == 0}${color red}not work${else} ${color red}error $endif $endif ${else}${color red}does'​t exist config $endif
 +  - ${color white}MySQL:​ $alignr ${if_existing /​home/​conovaloff/​projects/​conky/​mysql.sh}${if_match ${execi 10 /​home/​conovaloff/​projects/​conky/​mysql.sh} == 1}${color green}work${else} ${if_match ${execi 10 /​home/​conovaloff/​projects/​conky/​mysql.sh} == 0}${color red}not work${else} ${color red}error $endif $endif ${else}${color red}does'​t exist config $endif
 +  - 
 +  - ${color white}conovaloff.com WIKI: $alignr ${if_existing /​home/​conovaloff/​projects/​conky/​conovaloffcom_wiki.sh}${if_match ${execi 10 /​home/​conovaloff/​projects/​conky/​conovaloffcom_wiki.sh} == 1}${color green}work${else} ${if_match ${execi 10 /​home/​conovaloff/​projects/​conky/​conovaloffcom_wiki.sh} == 0}${color red}not work${else} ${color red}error $endif $endif ${else}${color red}does'​t exist config $endif
 +  - ${color white}conovaloff.com MX: $alignr ${if_existing /​home/​conovaloff/​projects/​conky/​conovaloffcom_mx.sh}${if_match ${execi 10 /​home/​conovaloff/​projects/​conky/​conovaloffcom_mx.sh} == 1}${color green}work${else} ${if_match ${execi 10 /​home/​conovaloff/​projects/​conky/​conovaloffcom_mx.sh} == 0}${color red}not work${else} ${color red}error $endif $endif ${else}${color red}does'​t exist config $endif
 +  - ${color white}Acer SMB: $alignr ${if_existing /​home/​conovaloff/​projects/​conky/​acer_smb.sh}${if_match ${execi 10 /​home/​conovaloff/​projects/​conky/​acer_smb.sh} == 1}${color green}work${else} ${if_match ${execi 10 /​home/​conovaloff/​projects/​conky/​acer_smb.sh} == 0}${color red}not work${else} ${color red}error $endif $endif ${else}${color red}does'​t exist config $endif
 +  - 
 +  - ${color white}int 192.168.1.1:​ $alignr ${if_existing /​home/​conovaloff/​projects/​conky/​192_168_1_1.sh}${if_match ${execi 10 /​home/​conovaloff/​projects/​conky/​192_168_1_1.sh} == 1}${color green}work${else} ${if_match ${execi 10 /​home/​conovaloff/​projects/​conky/​192_168_1_1.sh} == 0}${color red}not work${else} ${color red}error $endif $endif ${else}${color red}does'​t exist config $endif
 +  - ${color white}int 8.8.8.8: $alignr ${if_existing /​home/​conovaloff/​projects/​conky/​8_8_8_8.sh}${if_match ${execi 10 /​home/​conovaloff/​projects/​conky/​8_8_8_8.sh} == 1}${color green}work${else} ${if_match ${execi 10 /​home/​conovaloff/​projects/​conky/​8_8_8_8.sh} == 0}${color red}not work${else} ${color red}error $endif $endif ${else}${color red}does'​t exist config $endif
 +  - ${color white}int ya.ru: $alignr ${if_existing /​home/​conovaloff/​projects/​conky/​yaru.sh}${if_match ${execi 10 /​home/​conovaloff/​projects/​conky/​yaru.sh} == 1}${color green}work${else} ${if_match ${execi 10 /​home/​conovaloff/​projects/​conky/​yaru.sh} == 0}${color red}not work${else} ${color red}error $endif $endif ${else}${color red}does'​t exist config $endif
 +  --- 0 ----
 +  diff -NacrB ./​conky/​conky_start.sh ./​empty/​conky_start.sh
 +  *** ./​conky/​conky_start.sh 2014-01-18 01:​48:​30.690564174 +0400
 +  --- ./​empty/​conky_start.sh 1970-01-01 03:​00:​00.000000000 +0300
 +  ***************
 +  *** 1,3 ****
 +  - #!/bin/bash
 +  - conky -c ~/​projects/​conky/​.conkyrc_main &
 +  - conky -c ~/​projects/​conky/​.conkyrc_services &
 +  --- 0 ----
 +  diff -NacrB ./​conky/​conovaloffcom_mx.sh ./​empty/​conovaloffcom_mx.sh
 +  *** ./​conky/​conovaloffcom_mx.sh 2014-01-18 03:​01:​25.702621496 +0400
 +  --- ./​empty/​conovaloffcom_mx.sh 1970-01-01 03:​00:​00.000000000 +0300
 +  ***************
 +  *** 1,9 ****
 +  - #!/bin/bash
 +  - T2="​aspmx3.googlemail.com"​
 +  - T1=$(dig conovaloff.com MX +short | grep -o aspmx3.googlemail.com)
 +  - if [ "​$T1"​ = "​$T2"​ ];
 +  - then
 +  -      echo "​1"​
 +  - else
 +  -      echo "​0"​
 +  - fi
 +  --- 0 ----
 +  diff -NacrB ./​conky/​conovaloffcom_wiki.sh ./​empty/​conovaloffcom_wiki.sh
 +  *** ./​conky/​conovaloffcom_wiki.sh 2014-01-18 03:​07:​34.690626330 +0400
 +  --- ./​empty/​conovaloffcom_wiki.sh 1970-01-01 03:​00:​00.000000000 +0300
 +  ***************
 +  *** 1,9 ****
 +  - #!/bin/bash
 +  - T2="​dokuwiki__pagetools"​
 +  - T1=$(curl -m15 -s conovaloff.com | grep -o dokuwiki__pagetools)
 +  - if [ "​$T1"​ = "​$T2"​ ];
 +  - then
 +  -      echo "​1"​
 +  - else
 +  -      echo "​0"​
 +  - fi
 +  --- 0 ----
 +  diff -NacrB ./​conky/​mysql.sh ./​empty/​mysql.sh
 +  *** ./​conky/​mysql.sh 2014-01-18 02:​47:​00.882610165 +0400
 +  --- ./​empty/​mysql.sh 1970-01-01 03:​00:​00.000000000 +0300
 +  ***************
 +  *** 1,9 ****
 +  - #!/bin/bash
 +  - T2="​true"​
 +  - T1=$(echo '​SELECT CONCAT("​tr",​ "​ue"​);'​ | mysql -uroot -pyourpass | tail -1)
 +  - if [ "​$T1"​ = "​$T2"​ ];
 +  - then
 +  -      echo "​1"​
 +  - else
 +  -      echo "​0"​
 +  - fi
 +  --- 0 ----
 +  diff -NacrB ./​conky/​yaru.sh ./​empty/​yaru.sh
 +  *** ./​conky/​yaru.sh 2014-01-18 03:​25:​48.450640661 +0400
 +  --- ./​empty/​yaru.sh 1970-01-01 03:​00:​00.000000000 +0300
 +  ***************
 +  *** 1,9 ****
 +  - #!/bin/bash
 +  - T2="​true"​
 +  - T1=$(ping -c1 ya.ru >/​dev/​null && echo "​true"​)
 +  - if [ "​$T1"​ = "​$T2"​ ];
 +  - then
 +  -      echo "​1"​
 +  - else
 +  -      echo "​0"​
 +  - fi
 +  --- 0 ----
 +
conky.txt · Last modified: 2014/01/18 03:38 by conovaloff

Page Tools