• R/O
  • HTTP
  • SSH
  • HTTPS

Commit

Tags

Frequently used words (click to add to your profile)

javac++androidlinuxc#windowsobjective-ccocoa誰得qtpythonphprubygameguibathyscaphec計画中(planning stage)翻訳omegatframeworktwitterdomtestvb.netdirectxゲームエンジンbtronarduinopreviewer

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


Commit MetaInfo

Révisionc9950b8a40364c5fd9261448c879f2828aeecd02 (tree)
l'heure2016-03-26 18:00:01
Auteurshitamo <shitamo@user...>
Commitershitamo

Message de Log

Correct image selection

Change Summary

Modification

--- a/conkyrc
+++ b/conkyrc
@@ -44,7 +44,7 @@ conky.config = {
4444 template2 = [[
4545 ${color #eae5e3}${top name \1} ${top pid \1} ${top cpu \1} ${top mem \1} ${top time \1}]],
4646 template3 = [[
47-${execi 300 cp -f ~/.conky/icons/$(ruby -ne 'cnt ||= 0; if /yweather:forecast.*code="(.+?)"/ then cnt+=1; print $1 if cnt == \1; end' ${template1}).png ~/.cache/weather-\1.png}${image ~/.cache/weather-\1.png -p \2 -s 32x32}]],
47+${execi 300 cp -f ~/.conky/icons/$(ruby -ne 'cnt ||= 0; $_.scan(/yweather:forecast.*?code="(.+?)"/) { cnt+=1; print $1 if cnt == \1; }' ${template1}).png ~/.cache/weather-\1.png}${image ~/.cache/weather-\1.png -p \2 -s 32x32}]],
4848 template4 = [[
4949 ${rss http://weather.livedoor.com/forecast/rss/warn/16.xml 60 item_title \1}]],
5050
@@ -59,10 +59,10 @@ ${execi 300 curl -s 'https://query.yahooapis.com/v1/public/yql' -d q='select * f
5959 \
6060 # Weather
6161 \
62-${goto 36}${voffset 0}${font mono:size=36}${color1}${execi 300 ruby -ne 'if /yweather:condition .* temp="(.+?)"/ then printf("%s℃", $1 ); end' ${template1}}${font}${color}
63-${goto 46}${voffset 14}${font mono:size=12}${color1}${execi 300 ruby -ne 'if /yweather:condition .* text="(.+?)"/ then print $1; end' ${template1}}${font}${color}
62+${goto 36}${voffset 0}${font mono:size=36}${color1}${execi 300 ruby -ne 'if /yweather:condition .*? temp="(.+?)"/ then printf("%s℃", $1 ); end' ${template1}}${font}${color}
63+${goto 46}${voffset 14}${font mono:size=12}${color1}${execi 300 ruby -ne 'if /yweather:condition .*? text="(.+?)"/ then print $1; end' ${template1}}${font}${color}
6464 \
65-${color1}${alignr 55}${voffset -72}${execi 300 ruby -ne 'if /yweather:atmosphere .* pressure="(.+?)"/ then print $1; end' ${template1}}${execi 300 ruby -ne 'if /yweather:units .*? pressure="(.+?)"/ then print $1; end' ${template1}}
65+${color1}${alignr 55}${voffset -72}${execi 300 ruby -ne 'if /yweather:atmosphere .*? pressure="(.+?)"/ then print $1; end' ${template1}}${execi 300 ruby -ne 'if /yweather:units .*? pressure="(.+?)"/ then print $1; end' ${template1}}
6666 ${color1}${alignr 55}${voffset 7}${execi 300 ruby -ne 'if /yweather:atmosphere .* humidity="(.+?)"/ then print $1; end' ${template1}}%${color}
6767 ${color1}${alignr 55}${voffset 7}${execi 300 ruby -ne 'if /yweather:wind .* speed="(.+?)"/ then print $1; end' ${template1}}${execi 300 ruby -ne 'if /yweather:units .*? speed="(.+?)"/ then print $1; end' ${template1}}${color}
6868 \