Last active
November 11, 2017 23:02
-
-
Save jan53n/1e59fd57243dc7d01a41e0694155615c to your computer and use it in GitHub Desktop.
moved to yahoo weather api, made weather status case Insensitive on sed matching.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
###################### | |
# - Conky settings - # | |
###################### | |
update_interval 1 | |
total_run_times 0 | |
net_avg_samples 1 | |
cpu_avg_samples 1 | |
if_up_strictness link | |
imlib_cache_size 0 | |
double_buffer yes | |
no_buffers yes | |
background yes | |
format_human_readable | |
##################### | |
# - Text settings - # | |
##################### | |
use_xft yes | |
xftfont Liberation Sans:size=9 | |
override_utf8_locale yes | |
text_buffer_size 4096 | |
#text_buffer_size 2048 | |
############################# | |
# - Window specifications - # | |
############################# | |
own_window_class Conky | |
own_window yes | |
own_window_type normal | |
own_window_transparent no | |
own_window_argb_visual yes | |
own_window_argb_value 200 | |
own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager | |
own_window_colour CCCCCC | |
alignment top_right | |
gap_x 25 | |
gap_y 60 | |
minimum_size 260 80 | |
maximum_width 280 | |
default_bar_size 60 8 | |
######################### | |
# - Graphics settings - # | |
######################### | |
draw_shades yes | |
stippled_borders 1 | |
default_color 1793d0 | |
color0 white | |
color1 1793d0 | |
color2 white | |
color3 1793d0 | |
color4 003366 | |
color5 003366 | |
############# | |
# - CLOCK - # | |
############# | |
TEXT | |
${voffset 10}${alignc}${color5}${font Liberation Sans:style=Bold:size=30}${time %H:%M} | |
${voffset -20}${alignc}${font Liberation Sans:style=Regular:size=10}${time ( %j )}${font}${color} | |
############## | |
# - SYSTEM - # | |
############## | |
${voffset -4}${color4}${font Liberation Sans:style=Regular:size=10} | |
${alignc}Cores: ${cpu cpu1}%, ${cpu cpu2}%, ${cpu cpu3}%, ${cpu cpu4}% | |
${alignc}Ram: $mem / $memmax | |
${alignc}Processes: $processes | |
${alignc}Uptime: ${uptime} | |
${font} | |
############## | |
# - NETWORK - # | |
############## | |
${color4}${font Liberation Sans:style=Regular:size=10} | |
${alignc}${addrs enp3s0} | |
${alignc}${upspeedgraph enp3s0 30,178 999967 999967} | |
${alignc}${voffset -32}↑ ${upspeed enp3s0}${voffset} | |
${alignc}${downspeedgraph enp3s0 30,175 996699 996699} | |
${alignc}${voffset -32}↓ ${downspeed enp3s0}${voffset} | |
${font} | |
${font Liberation Sans:style=Bold:size=20} | |
${voffset -10}${alignc}${execpi 30 curl "https://query.yahooapis.com/v1/public/yql?q=select%20*%20from%20weather.forecast%20where%20woeid%3D[REPLACE WITH WOEID]&format=json&env=store%3A%2F%2Fdatatables.org%2Falltableswithkeys" | | |
jq -cr '.query.results.channel.item.condition.text' | | |
sed 's/ /\n${alignc}/g' | | |
sed '/*/ s/^/${color 666666}/gI' | | |
sed '/rain/I s/^/${color 003366}/g' | | |
sed '/shower/I s/^/${color 007849}/g' | | |
sed '/cloud/I s/^/${color 444444}/g' | | |
sed '/thunder/I s/^/${color FF6600}/g'} | |
${font} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment