From 18 Jan, 2021 0:00 UTC: All services will be temporary unavailable for maintenance
  • R/O
  • HTTP
  • SSH
  • HTTPS

Commit

Tags

Frequently used words (click to add to your profile)

javaandroidc++linuxc#objective-ccocoa誰得qtrubypythonwindowsphpgamebathyscaphegui翻訳comegattwitterframeworkbtronvb.net計画中(planning stage)testdomarduinodirectxpreviewerゲームエンジン

Sample Conky (system monitor) configuration file with weather, CPU graph, memory graph, network traffic graph and processes


Commit MetaInfo

Revisionc794205d25bd378043a954c87a1095a4610d4286 (tree)
Zeit2014-12-31 23:19:52
Autorshitamo <shitamo@user...>
Commitershitamo

Log Message

customize

Ändern Zusammenfassung

Diff

--- a/conkyrc
+++ b/conkyrc
@@ -1,70 +1,77 @@
1-# Conky settings #
1+# Conky, a system monitor, based on torsmo
2+#
3+# Any original torsmo code is licensed under the BSD license
4+#
5+# All code written since the fork of torsmo is licensed under the GPL
6+#
7+# Please see COPYING for details
8+#
9+# Copyright (c) 2004, Hannu Saransaari and Lauri Hakkarainen
10+# Copyright (c) 2005-2010 Brenden Matthews, Philip Kovacs, et. al. (see AUTHORS)
11+# All rights reserved.
12+#
13+# This program is free software: you can redistribute it and/or modify
14+# it under the terms of the GNU General Public License as published by
15+# the Free Software Foundation, either version 3 of the License, or
16+# (at your option) any later version.
17+#
18+# This program is distributed in the hope that it will be useful,
19+# but WITHOUT ANY WARRANTY; without even the implied warranty of
20+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21+# GNU General Public License for more details.
22+# You should have received a copy of the GNU General Public License
23+# along with this program. If not, see <http://www.gnu.org/licenses/>.
24+#
25+
226 background yes
3-update_interval 1
4-double_buffer yes
27+border_width 1
28+cpu_avg_samples 2
29+default_color white
30+default_outline_color white
31+default_shade_color white
32+draw_borders no
33+draw_graph_borders yes
34+draw_outline no
35+draw_shades no
36+use_xft yes
37+minimum_size 5 5
38+net_avg_samples 2
539 no_buffers yes
6-imlib_cache_size 10
7-
8-# Window specifications #
9-gap_x 0
10-gap_y 0
11-minimum_size 268 1220
12-maximum_width 268
13-alignment top_right
40+out_to_console no
41+out_to_stderr no
42+extra_newline no
1443 own_window yes
15-own_window_type normal
16-own_window_transparent yes
17-own_window_argb_visual yes
18-own_window_argb_value 255
19-own_window_hints undecorate,sticky,skip_taskbar,skip_pager,below
20-#own_window_type normal
21-#own_window_transparent no
22-#own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager
23-#own_window_argb_visual yes
24-#own_window_argb_value 0
25-border_inner_margin 0
26-border_outer_margin 0
27-
28-# Graphics settings #
29-draw_shades no
30-default_shade_color AAAAAA
31-draw_outline no
32-default_outline_color AAAAAA
33-draw_borders no
34-draw_graph_borders no
35-default_graph_size 26 80
44+own_window_class Conky
45+own_window_type override
46+stippled_borders 0
47+update_interval 1.0
48+uppercase no
49+use_spacer none
3650 show_graph_scale no
3751 show_graph_range no
3852
39-# Text settings #
40-use_xft yes
41-xftalpha 0
42-xftfont Droid Sans:size=8
43-text_buffer_size 256
44-override_utf8_locale yes
4553
46-# Useful shortenings #
47-short_units yes
48-pad_percents 2
49-top_name_width 30
5054
51-# Color scheme #
52-default_color FFFFFF
53-color1 FFFFFF
54-color2 FFFFFF
55-color3 FFFFFF
56-color4 FFFFFF
57-color5 DCDCDC
58-color6 FFFFFF
59-color7 FFFFFF
60-color8 FFFFFF
55+alignment top_right
56+gap_y 20
57+double_buffer yes
58+maximum_width 400
59+minimum_size 400 1200
60+text_buffer_size 1024
61+own_window_transparent yes
62+override_utf8_locale yes
63+use_xft yes
64+xftfont TakaoGothic:style=Regular:size=11
65+
6166
6267 TEXT
63-${execi 300 curl -s "http://weather.yahooapis.com/forecastrss?w=493776&u=c" -o ~/.cache/weather.xml}
68+# https://weather.yahoo.com/japan/ -> Toyama Prefecture -> Toyama-shi
69+# https://weather.yahoo.com/japan/toyama-prefecture/toyama-shi-1118400/
70+${execi 300 curl -s "http://weather.yahooapis.com/forecastrss?w=1118400&u=c" -o ~/.cache/weather.xml}
6471 \
6572 # Weather
6673 \
67-${goto 36}${voffset 0}${font Droid Sans :size=36}${color1}${execi 300 grep "yweather:condition" ~/.cache/weather.xml | grep -o "temp=\"[^\"]*\"" | grep -o "\"[^\"]*\"" | grep -o "[^\"]*"}°${font}${color}
74+${goto 36}${voffset 0}${font Droid Sans :size=36}${color1}${execi 300 grep "yweather:condition" ~/.cache/weather.xml | grep -o "temp=\"[^\"]*\"" | grep -o "\"[^\"]*\"" | grep -o "[^\"]*"}°C${font}${color}
6875 ${goto 46}${voffset 14}${font Droid Sans :size=12}${color1}${execi 300 grep "yweather:condition" ~/.cache/weather.xml | grep -o "text=\"[^\"]*\"" | grep -o "\"[^\"]*\"" | grep -o "[^\"]*"}${font}${color}
6976 \
7077 ${color1}${alignr 55}${voffset -72}${execi 300 grep "yweather:atmosphere" ~/.cache/weather.xml | grep -o "pressure=\"[^\"]*\"" | grep -o "\"[^\"]*\"" | grep -o "[^\"]*"} ${execi 300 grep "yweather:units" ~/.cache/weather.xml | grep -o "pressure=\"[^\"]*\"" | grep -o "\"[^\"]*\"" | grep -o "[^\"]*"}
@@ -72,71 +79,66 @@ ${color1}${alignr 55}${voffset 7}${execi 300 grep "yweather:atmosphere" ~/.cache
7279 ${color1}${alignr 55}${voffset 7}${execi 300 grep "yweather:wind" ~/.cache/weather.xml | grep -o "speed=\"[^\"]*\"" | grep -o "\"[^\"]*\"" | grep -o "[^\"]*"} ${execi 300 grep "yweather:units" ~/.cache/weather.xml | grep -o "speed=\"[^\"]*\"" | grep -o "\"[^\"]*\"" | grep -o "[^\"]*"}${color}
7380 \
7481 ${color3}${voffset 30}${alignc 77}${execi 300 grep "yweather:forecast" ~/.cache/weather.xml | grep -o "day=\"[^\"]*\"" | grep -o "\"[^\"]*\"" | grep -o "[^\"]*" | awk 'NR==1' | tr '[a-z]' '[A-Z]'}${color}
75-${color3}${voffset -13}${alignc}${execi 300 grep "yweather:forecast" ~/.cache/weather.xml | grep -o "day=\"[^\"]*\"" | grep -o "\"[^\"]*\"" | grep -o "[^\"]*" | awk 'NR==2' | tr '[a-z]' '[A-Z]'}${color}
76-${color3}${voffset -13}${alignc -77}${execi 300 grep "yweather:forecast" ~/.cache/weather.xml | grep -o "day=\"[^\"]*\"" | grep -o "\"[^\"]*\"" | grep -o "[^\"]*" | awk 'NR==3' | tr '[a-z]' '[A-Z]'}${color}
82+${color3}${voffset -14}${alignc}${execi 300 grep "yweather:forecast" ~/.cache/weather.xml | grep -o "day=\"[^\"]*\"" | grep -o "\"[^\"]*\"" | grep -o "[^\"]*" | awk 'NR==2' | tr '[a-z]' '[A-Z]'}${color}
83+${color3}${voffset -14}${alignc -77}${execi 300 grep "yweather:forecast" ~/.cache/weather.xml | grep -o "day=\"[^\"]*\"" | grep -o "\"[^\"]*\"" | grep -o "[^\"]*" | awk 'NR==3' | tr '[a-z]' '[A-Z]'}${color}
7784 \
7885 ${color2}${voffset 40}${alignc 77}${execi 300 grep "yweather:forecast" ~/.cache/weather.xml | grep -o "low=\"[^\"]*\"" | grep -o "\"[^\"]*\"" | grep -o "[^\"]*" | awk 'NR==1'}°/${execi 300 grep "yweather:forecast" ~/.cache/weather.xml | grep -o "high=\"[^\"]*\"" | grep -o "\"[^\"]*\"" | grep -o "[^\"]*" | awk 'NR==1'}°${color}
79-${color2}${voffset -13}${alignc}${execi 300 grep "yweather:forecast" ~/.cache/weather.xml | grep -o "low=\"[^\"]*\"" | grep -o "\"[^\"]*\"" | grep -o "[^\"]*" | awk 'NR==2'}°/${execi 300 grep "yweather:forecast" ~/.cache/weather.xml | grep -o "high=\"[^\"]*\"" | grep -o "\"[^\"]*\"" | grep -o "[^\"]*" | awk 'NR==2'}°${color}
80-${color2}${voffset -13}${alignc -77}${execi 300 grep "yweather:forecast" ~/.cache/weather.xml | grep -o "low=\"[^\"]*\"" | grep -o "\"[^\"]*\"" | grep -o "[^\"]*" | awk 'NR==3'}°/${execi 300 grep "yweather:forecast" ~/.cache/weather.xml | grep -o "high=\"[^\"]*\"" | grep -o "\"[^\"]*\"" | grep -o "[^\"]*" | awk 'NR==3'}°${color}
81-${hr 2}
82-\
83-# Cpu, memory and disk IO
84-\
85-${voffset 20}
86-${goto 40}${cpugraph 26,190 FFFFFF FFFFFF -l}
87-${goto 40}Cpu:${alignr 39}${cpu}%
88-
89-${goto 40}${memgraph 26,190 FFFFFF FFFFFF -l}
90-${goto 40}Mem:${alignr 39}${memperc}%
91-
92-${goto 40}${diskiograph 26,190 FFFFFF FFFFFF -l}
93-${goto 40}Disk I/O:${alignr 39}${diskio}
86+${color2}${voffset -14}${alignc}${execi 300 grep "yweather:forecast" ~/.cache/weather.xml | grep -o "low=\"[^\"]*\"" | grep -o "\"[^\"]*\"" | grep -o "[^\"]*" | awk 'NR==2'}°/${execi 300 grep "yweather:forecast" ~/.cache/weather.xml | grep -o "high=\"[^\"]*\"" | grep -o "\"[^\"]*\"" | grep -o "[^\"]*" | awk 'NR==2'}°${color}
87+${color2}${voffset -14}${alignc -77}${execi 300 grep "yweather:forecast" ~/.cache/weather.xml | grep -o "low=\"[^\"]*\"" | grep -o "\"[^\"]*\"" | grep -o "[^\"]*" | awk 'NR==3'}°/${execi 300 grep "yweather:forecast" ~/.cache/weather.xml | grep -o "high=\"[^\"]*\"" | grep -o "\"[^\"]*\"" | grep -o "[^\"]*" | awk 'NR==3'}°${color}
9488 ${hr 2}
9589 \
96-# Network
97-\
98-${if_existing /proc/net/route wlan0}
99-${goto 40}${upspeedgraph wlan0 26,80 FFFFFF FFFFFF}${goto 150}${downspeedgraph wlan0 26,80 FFFFFF FFFFFF}
100-${goto 40}${color5}Up: ${color2}${upspeed wlan0}${color5}${goto 150}Down: ${color2}${downspeed wlan0}
101-${goto 40}${color5}Sent: ${color2}${totalup wlan0}${color5}${goto 150}Received: ${color2}${totaldown wlan0}
102-${endif}
103-${if_existing /proc/net/route eth0}
104-${goto 40}${upspeedgraph eth0 26,80 FFFFFF FFFFFF}${goto 150}${downspeedgraph eth0 26,80 FFFFFF FFFFFF}
105-${goto 40}${color5}Up: ${color2}${upspeed eth0}${color5}${goto 150}Down: ${color2}${downspeed eth0}
106-${goto 40}${color5}Sent: ${color2}${totalup eth0}${color5}${goto 150}Received: ${color2}${totaldown eth0}
107-${endif}
108-${hr 2}
109-\
110-# Proceses
111-\
112-${goto 40}${color1}Proc${color}${alignr 39}${color1}${color1}Mem${color}
113-${goto 40}${color2}${top_mem name 1}${color}${alignr 39}${top_mem mem_res 1}
114-${goto 40}${color2}${top_mem name 2}${color}${alignr 39}${top_mem mem_res 2}
115-${goto 40}${color2}${top_mem name 3}${color}${alignr 39}${top_mem mem_res 3}
116-${goto 40}${color2}${top_mem name 4}${color}${alignr 39}${top_mem mem_res 4}
117-${goto 40}${color2}${top_mem name 5}${color}${alignr 39}${top_mem mem_res 5}
118-
119-${goto 40}${color1}Proc${color}${alignr 39}${color1}Cpu %${color}
120-${goto 40}${color2}${top_mem name 1}${color}${alignr 39}${top cpu 1} %
121-${goto 40}${color2}${top_mem name 2}${color}${alignr 39}${top cpu 2} %
122-${goto 40}${color2}${top_mem name 3}${color}${alignr 39}${top cpu 3} %
123-${goto 40}${color2}${top_mem name 4}${color}${alignr 39}${top cpu 4} %
124-${goto 40}${color2}${top_mem name 5}${color}${alignr 39}${top cpu 5} %
125-${hr 2}
126-\
127-# System shortcuts
128-${font Droid Sans :size=12}
129-${goto 40}W-t${alignr 40}Terminal
130-${goto 40}W-e${alignr 40}Editor
131-${goto 40}W-f${alignr 40}File browser
132-${goto 40}W-w${alignr 40}Web browser
133-${goto 40}C-W-F4${alignr 40}Log off
134-\
90+${color #d8e698}System information :${color #eae5e3}
91+ ${color #ffffff}Uptime : ${alignr}${color #eae5e3}${uptime}
92+ ${color #ffffff}Frequency(GHz): ${color #eae5e3}${freq_g} ${color #ffffff}Processes:${color #eae5e3} ${processes}
93+ ${color #ffffff}CPU Usage : ${color #eae5e3}${cpu}% - ${cpubar 5}
94+ ${color #ffffff}RAM Usage : ${color #eae5e3}${mem}/${memmax} - ${memperc}% - ${membar 5}
95+ ${color #ffffff}Swap Usage : ${color #eae5e3}${swap}/${swapmax} - ${swapperc}% - ${swapbar 5}
96+${color #d8e698}${stippled_hr}
97+${color #d8e698}Device temperature :${color #eae5e3}
98+${color #ffffff} CPU0:${color #eae5e3}${execi 60 sensors | grep -A 0 'Core0' | cut -c 14-22} ${color #ffffff}HDD1: ${color #eae5e3}${execi 60 /usr/sbin/hddtemp /dev/sde -n -unit=C}.0°C
99+${color #ffffff} CPU1:${color #eae5e3}${execi 60 sensors | grep -A 0 'Core1' | cut -c 14-22} ${color #ffffff}HDD2: ${color #eae5e3}${execi 60 /usr/sbin/hddtemp /dev/sdf -n -unit=C}.0°C
100+${color #ffffff} M/B :${color #eae5e3}${execi 60 sensors | grep -A 0 'MB' | cut -c 25-33} ${color #ffffff}HDD3: ${color #eae5e3}${execi 60 /usr/sbin/hddtemp /dev/sdg -n -unit=C}.0°C
101+${color #d8e698}${stippled_hr}
102+${color #d8e698}Weather report :${color #eae5e3}
103+ 富山空港 ${weather http://weather.noaa.gov/pub/data/observations/metar/stations/ RJNT weather } ${weather http://weather.noaa.gov/pub/data/observations/metar/stations/ RJNT temperature} °C
104+${color #d8e698}${stippled_hr}
105+${color #d8e698}Storm warning :${color #eae5e3}
106+ ${rss http://weather.livedoor.com/forecast/rss/warn/16.xml 60 item_title 1}
107+ ${rss http://weather.livedoor.com/forecast/rss/warn/16.xml 60 item_title 2}
108+ ${rss http://weather.livedoor.com/forecast/rss/warn/16.xml 60 item_title 3}
109+ ${rss http://weather.livedoor.com/forecast/rss/warn/16.xml 60 item_title 4}
110+ ${rss http://weather.livedoor.com/forecast/rss/warn/16.xml 60 item_title 5}
111+${color #d8e698}${stippled_hr}
112+${color #d8e698}File systems : ${color #eae5e3}
113+ / ${fs_used /}/${fs_size /} ${fs_bar 5 /}
114+ /var/backups ${fs_used /var/backups}/${fs_size /var/backups} ${fs_bar 5 /var/backups}
115+${color #d8e698}${stippled_hr}${color #eae5e3}
116+${color #d8e698}Disk IO : ${color #eae5e3}
117+ / Read ${diskio_read /dev/sdg}/s
118+ / Write ${diskio_write /dev/sdg}/s
119+ ${color #ffffff}${diskiograph_read /dev/sdg 20,190 fef4f4 eebbcb}${alignr}${color #ffffff}${diskiograph_write /dev/sdg 20,190 fef4f4 eebbcb}
120+${color #d8e698}${stippled_hr}
121+${color #d8e698}Name PID CPU% MEM% TIME
122+ ${color #eae5e3}${top name 1} ${top pid 1} ${top cpu 1} ${top mem 1} ${top time 1}
123+ ${color #eae5e3}${top name 2} ${top pid 2} ${top cpu 2} ${top mem 2} ${top time 2}
124+ ${color #eae5e3}${top name 3} ${top pid 3} ${top cpu 3} ${top mem 3} ${top time 3}
125+ ${color #eae5e3}${top name 4} ${top pid 4} ${top cpu 4} ${top mem 4} ${top time 4}
126+ ${color #eae5e3}${top name 5} ${top pid 5} ${top cpu 5} ${top mem 5} ${top time 5}
127+${color #d8e698}${stippled_hr}
128+${color #d8e698}Networking :
129+ ${color #ffffff}Up size : ${color #eae5e3}${totalup}
130+ ${color #ffffff}Down size : ${color #eae5e3}${totaldown}
131+ ${color #ffffff}Up speed : ${color #eae5e3}${upspeed eth0}
132+ ${color #ffffff}Down speed : ${color #eae5e3}${downspeed eth0}
133+${color #d8e698}${stippled_hr}
134+${font mono:size=9}${execi 60 cal -h3 |sed -e "1s/^\(.\{16\}\).\{21\}/\1/" -e "2s/^\(.\{15\}\).\{15\}/\1/" -e "3,$ s/^\(.\{20\}\).\{22\}/\1/"}
135+${color #d8e698}${stippled_hr}
136+${font mono:size=12}${execi 60 cal -h}
135137 # Various images including the icons of the forecast #
136138 \
137-${image ~/.conky/images/pressure.png -p 214,20 -s 16x16}\
138-${image ~/.conky/images/humidity.png -p 214,40 -s 16x16}\
139-${image ~/.conky/images/wind.png -p 214,60 -s 16x16}\
140-${execi 300 cp -f ~/.conky/icons/$(grep "yweather:forecast" ~/.cache/weather.xml | grep -o "code=\"[^\"]*\"" | grep -o "\"[^\"]*\"" | grep -o "[^\"]*" | awk 'NR==1').png ~/.cache/weather-1.png}${image ~/.cache/weather-1.png -p 41,120 -s 32x32}\
141-${execi 300 cp -f ~/.conky/icons/$(grep "yweather:forecast" ~/.cache/weather.xml | grep -o "code=\"[^\"]*\"" | grep -o "\"[^\"]*\"" | grep -o "[^\"]*" | awk 'NR==2').png ~/.cache/weather-2.png}${image ~/.cache/weather-2.png -p 119,120 -s 32x32}\
142-${execi 300 cp -f ~/.conky/icons/$(grep "yweather:forecast" ~/.cache/weather.xml | grep -o "code=\"[^\"]*\"" | grep -o "\"[^\"]*\"" | grep -o "[^\"]*" | awk 'NR==3').png ~/.cache/weather-3.png}${image ~/.cache/weather-3.png -p 195,120 -s 32x32}${font}\
139+${image ~/.conky/images/pressure.png -p 350,20 -s 16x16}\
140+${image ~/.conky/images/humidity.png -p 350,42 -s 16x16}\
141+${image ~/.conky/images/wind.png -p 350,64 -s 16x16}\
142+${execi 300 cp -f ~/.conky/icons/$(grep "yweather:forecast" ~/.cache/weather.xml | grep -o "code=\"[^\"]*\"" | grep -o "\"[^\"]*\"" | grep -o "[^\"]*" | awk 'NR==1').png ~/.cache/weather-1.png}${image ~/.cache/weather-1.png -p 107,128 -s 32x32}\
143+${execi 300 cp -f ~/.conky/icons/$(grep "yweather:forecast" ~/.cache/weather.xml | grep -o "code=\"[^\"]*\"" | grep -o "\"[^\"]*\"" | grep -o "[^\"]*" | awk 'NR==2').png ~/.cache/weather-2.png}${image ~/.cache/weather-2.png -p 185,128 -s 32x32}\
144+${execi 300 cp -f ~/.conky/icons/$(grep "yweather:forecast" ~/.cache/weather.xml | grep -o "code=\"[^\"]*\"" | grep -o "\"[^\"]*\"" | grep -o "[^\"]*" | awk 'NR==3').png ~/.cache/weather-3.png}${image ~/.cache/weather-3.png -p 261,128 -s 32x32}${font}\
Binary files a/screenshot.png and b/screenshot.png differ