Skip to content

Instantly share code, notes, and snippets.

@KaeruCT
Created June 5, 2014 23:46
Show Gist options
  • Save KaeruCT/07431fab17781f28c958 to your computer and use it in GitHub Desktop.
Save KaeruCT/07431fab17781f28c958 to your computer and use it in GitHub Desktop.
new conky config
# Conky Google Now style #
# Conky settings #
background yes
update_interval 1
double_buffer yes
no_buffers yes
format_human_readable yes
# Window specifications #
own_window yes
own_window_type normal
own_window_hints sticky,undecorated,below,skip_taskbar,skip_pager
own_window_title
own_window_class Conky
own_window_transparent no
own_window_argb_visual yes
own_window_argb_value 205
own_window_colour 2D2D2D
minimum_size 300
# Alignment #
alignment tr
gap_x 8
gap_y 8
border_inner_margin 8
border_outer_margin 0
# Graphics settings #
draw_shades no
#draw_outline yes
draw_borders no
draw_graph_borders no
# Text settings #
use_xft yes
xftalpha 0
xftfont Liberation Mono:size=10
override_utf8_locale yes
imlib_cache_size 0
# Color scheme #
default_outline_color FFFFFF
default_color DCDCDC
color1 ACACAC # labels
color2 BCBCBC # sent/received
color3 CCCCCC # up/down
color4 AA8866 # unused?
color5 CC0000 # unused?
color6 AAAAAA # err
color7 787878 # hr
TEXT
${execi 300 curl -s "http://weather.yahooapis.com/forecastrss?w=12698473&u=c" -o ~/.cache/weather.xml}${font Open Sans Light:size=15}${execi 300 grep "yweather:location" ~/.cache/weather.xml | grep -o "city=\"[^\"]*\"" | grep -o "\"[^\"]*\"" | grep -o "[^\"]*"}, ${execi 300 grep "yweather:location" ~/.cache/weather.xml | grep -o "country=\"[^\"]*\"" | grep -o "\"[^\"]*\"" | grep -o "[^\"]*"}${font}
${font Open Sans Light:size=60}${alignr}${execi 300 grep "yweather:condition" ~/.cache/weather.xml | grep -o "temp=\"[^\"]*\"" | grep -o "\"[^\"]*\"" | grep -o "[^\"]*"}°${font}${voffset 0}
${execi 300 cp -f ~/.conky-google-now/$(grep "yweather:condition" ~/.cache/weather.xml | grep -o "code=\"[^\"]*\"" | grep -o "\"[^\"]*\"" | grep -o "[^\"]*").png ~/.cache/weather.png}${image ~/.cache/weather.png -p 0,45 -s 60x60}
${execi 300 grep "yweather:condition" ~/.cache/weather.xml | grep -o "text=\"[^\"]*\"" | grep -o "\"[^\"]*\"" | grep -o "[^\"]*" | tr '[a-z]' '[A-Z]'}
${voffset -12}
${image ~/.conky-google-now/wind.png -p 0,135 -s 15x15}${goto 35}${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 "[^\"]*"}
${image ~/.conky-google-now/humidity.png -p 0,155 -s 15x15}${goto 35}${execi 300 grep "yweather:atmosphere" ~/.cache/weather.xml | grep -o "humidity=\"[^\"]*\"" | grep -o "\"[^\"]*\"" | grep -o "[^\"]*"}%
${color1}host${color} ${color3} ${nodename} (${addr wlan0})
${color1}os${color} ${color3} ${sysname} ${kernel}
${color1}hz${color} ${color3} ${freq_g} Ghz
#SYSTEM${color7}${hr}${color}
${color1}uptime${color} ${color3} $uptime ${color white}
${color1}cpu1${color} ${color3}${cpu cpu1}% ${cpubar cpu1}
${color1}cpu2${color} ${color3}${cpu cpu2}% ${cpubar cpu2}
${color1}cpu3${color} ${color3}${cpu cpu3}% ${cpubar cpu3}
${color1}cpu4${color} ${color3}${cpu cpu4}% ${cpubar cpu4}
${color1}ram${color} ${color3}$memperc% $membar
#STORAGE${color7}${hr}${color}
${color1}/${color} ${color3}${fs_free /} ${fs_bar /}
#NETWORK${color7}${hr}${color}
${if_existing /proc/net/route wlan0}
${color1}Up:${color} ${color3}${upspeed wlan0}${color}${alignr}${color1}Down:${color} ${color3}${downspeed wlan0}${color}
${upspeedgraph wlan0 30,135 AA8866 AA8866}${alignr}${downspeedgraph wlan0 30,135 AA8866 AA8866}
${color1}Sent:${color} ${color2}${totalup wlan0}${color}${alignr}${color1}Received:${color} ${color2}${totaldown wlan0}${color}
${else}${if_existing /proc/net/route wlan1}
${color1}Up:${color} ${color3}${upspeed wlan1}${color}${alignr}${color1}Down:${color} ${color3}${downspeed wlan1}${color}
${upspeedgraph wlan1 30,135 AA8866 AA8866}${alignr}${downspeedgraph wlan1 30,135 AA8866 AA8866}
${color1}Sent:${color} ${color2}${totalup wlan1}${color}${alignr}${color1}Received:${color} ${color2}${totaldown wlan1}${color}
${else}${if_existing /proc/net/route eth0}
${color1}Up:${color} ${color3}${upspeed eth0}${color}${alignr}${color1}Down:${color} ${color3}${downspeed eth0}${color}
${upspeedgraph eth0 30,135 AA8866 AA8866}${alignr}${downspeedgraph eth0 30,135 AA8866 AA8866}
${color1}Sent:${color} ${color2}${totalup eth0}${color}${alignr}${color1}Received:${color} ${color2}${totaldown eth0}${color}
${else}${if_existing /proc/net/route eth1}
${color1}Up:${color} ${color3}${upspeed eth1}${color}${alignr}${color1}Down:${color} ${color3}${downspeed eth1}${color}
${upspeedgraph eth1 30,135 AA8866 AA8866}${alignr}${downspeedgraph eth1 30,135 AA8866 AA8866}
${color1}Sent:${color} ${color2}${totalup eth1}${color}${alignr}${color1}Received:${color} ${color2}${totaldown eth1}${color}
${else}${if_existing /proc/net/route ppp0}
${color1}Up:${color} ${color3}${upspeed ppp0}${color}${alignr}${color1}Down:${color} ${color3}${downspeed ppp0}${color}
${upspeedgraph ppp0 30,135 AA8866 AA8866}${alignr}${downspeedgraph ppp0 30,135 AA8866 AA8866}
${color1}Sent:${color} ${color2}${totalup ppp0}${color}${alignr}${color1}Received:${color} ${color2}${totaldown ppp0}${color}
${else}${if_existing /proc/net/route ppp1}
${color1}Up:${color} ${color3}${upspeed ppp1}${color}${alignr}${color1}Down:${color} ${color3}${downspeed ppp1}${color}
${upspeedgraph ppp1 30,135 AA8866 AA8866}${alignr}${downspeedgraph ppp1 30,135 AA8866 AA8866}
${color1}Sent:${color} ${color2}${totalup ppp1}${color}${alignr}${color1}Received:${color} ${color2}${totaldown ppp1}${color}
${else}${if_existing /proc/net/route usb0}
${color1}Up:${color} ${color3}${upspeed usb0}${color}${alignr}${color1}Down:${color} ${color3}${downspeed usb0}${color}
${upspeedgraph usb0 30,135 AA8866 AA8866}${alignr}${downspeedgraph usb0 30,135 AA8866 AA8866}
${color1}Sent:${color} ${color2}${totalup usb0}${color}${alignr}${color1}Received:${color} ${color2}${totaldown usb0}${color}
${else}${if_existing /proc/net/route usb1}
${color1}Up:${color} ${color3}${upspeed usb1}${color}${alignr}${color1}Down:${color} ${color3}${downspeed usb1}${color}
${upspeedgraph usb1 30,135 AA8866 AA8866}${alignr}${downspeedgraph usb1 30,135 AA8866 AA8866}
${color1}Sent:${color} ${color2}${totalup usb1}${color}${alignr}${color1}Received:${color} ${color2}${totaldown usb1}${color}
${else}
Network disconnected
${color6}Connect to a network to see statistics${color}
${endif}${endif}${endif}${endif}${endif}${endif}${endif}${endif}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment