Last active
January 3, 2016 00:09
-
-
Save matthewhartman/8381339 to your computer and use it in GitHub Desktop.
My Conky Configuration - CrunchBang Linux
This file contains 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
# Matthew's Conky Configuration - CrunchBang Linux | |
# DOWNLOAD AND INSTALL THE FOLLOWING: | |
# -- Fonts | |
# Open Sans (All Variants) - http://www.google.com/fonts#UsePlace:use/Collection:Open+Sans | |
# Raleway (All Variants) - http://www.google.com/fonts#UsePlace:use/Collection:Raleway | |
# - | |
# -- Icons | |
# Conky weather icons (place in root home dir eg: /home/matthew/) - https://www.dropbox.com/sh/tz5kjronomxyvpo/zky8s3lvkh | |
# Enjoy :) | |
############################################## | |
# Settings | |
############################################## | |
background yes | |
use_xft yes | |
xftfont Open Sans:size=9 | |
xftalpha 1 | |
update_interval 1.0 | |
total_run_times 0 | |
own_window yes | |
own_window_transparent yes | |
own_window_type desktop | |
#own_window_argb_visual yes | |
own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager | |
double_buffer yes | |
#minimum_size 180 150 | |
#maximum_width 500 | |
draw_shades no | |
draw_outline no | |
draw_borders no | |
draw_graph_borders no | |
default_color ffffff | |
default_shade_color 000000 | |
default_outline_color 828282 | |
alignment top_middle | |
gap_x 20 | |
gap_y 150 | |
no_buffers yes | |
uppercase no | |
draw_shades yes | |
cpu_avg_samples 2 | |
override_utf8_locale yes | |
# Color scheme # | |
default_color FFFFFF | |
color1 FFFFFF | |
color2 FFFFFF | |
color3 FFFFFF | |
color4 FFFFFF | |
color5 FFFFFF | |
color6 FFFFFF | |
color7 333333 | |
############################################## | |
# Output | |
############################################## | |
TEXT | |
${font Raleway:weight=Light :size=100}${alignc}${time %H:%M}${font} | |
${font Raleway:weight=Light:size=27}${alignc}${time %A %B %d}${font} | |
${execi 300 curl -s "http://weather.yahooapis.com/forecastrss?w=55864247&u=c" -o ~/.cache/weather.xml}${font Raleway:size=20} | |
${goto 16}${execi 300 grep "yweather:condition" ~/.cache/weather.xml | grep -o "temp=\"[^\"]*\"" | grep -o "\"[^\"]*\"" | grep -o "[^\"]*"}°${font Raleway:weight=Light:size=14}${goto 114}${execi 300 grep "yweather:forecast" ~/.cache/weather.xml | grep -o "high=\"[^\"]*\"" | grep -o "\"[^\"]*\"" | grep -o "[^\"]*" | awk 'NR==2'}°${goto 224}${execi 300 grep "yweather:forecast" ~/.cache/weather.xml | grep -o "high=\"[^\"]*\"" | grep -o "\"[^\"]*\"" | grep -o "[^\"]*" | awk 'NR==3'}°${goto 334}${execi 300 grep "yweather:forecast" ~/.cache/weather.xml | grep -o "high=\"[^\"]*\"" | grep -o "\"[^\"]*\"" | grep -o "[^\"]*" | awk 'NR==4'}°${goto 444}${execi 300 grep "yweather:forecast" ~/.cache/weather.xml | grep -o "high=\"[^\"]*\"" | grep -o "\"[^\"]*\"" | grep -o "[^\"]*" | awk 'NR==5'}° | |
${font Raleway:weight=Light:size=10}${goto 150}${execi 300 grep "yweather:forecast" ~/.cache/weather.xml | grep -o "low=\"[^\"]*\"" | grep -o "\"[^\"]*\"" | grep -o "[^\"]*" | awk 'NR==2'}°${goto 260}${execi 300 grep "yweather:forecast" ~/.cache/weather.xml | grep -o "low=\"[^\"]*\"" | grep -o "\"[^\"]*\"" | grep -o "[^\"]*" | awk 'NR==3'}°${goto 370}${execi 300 grep "yweather:forecast" ~/.cache/weather.xml | grep -o "low=\"[^\"]*\"" | grep -o "\"[^\"]*\"" | grep -o "[^\"]*" | awk 'NR==4'}°${goto 480}${execi 300 grep "yweather:forecast" ~/.cache/weather.xml | grep -o "low=\"[^\"]*\"" | grep -o "\"[^\"]*\"" | grep -o "[^\"]*" | awk 'NR==5'}° | |
${font Raleway:weight=Light:size=15} | |
${goto 4}${execi 300 grep "yweather:forecast" ~/.cache/weather.xml | grep -o "day=\"[^\"]*\"" | grep -o "\"[^\"]*\"" | grep -o "[^\"]*" | awk 'NR==1' | tr '[a-z]' '[A-Z]'}${goto 114}${execi 300 grep "yweather:forecast" ~/.cache/weather.xml | grep -o "day=\"[^\"]*\"" | grep -o "\"[^\"]*\"" | grep -o "[^\"]*" | awk 'NR==2' | tr '[a-z]' '[A-Z]'}${goto 224}${execi 300 grep "yweather:forecast" ~/.cache/weather.xml | grep -o "day=\"[^\"]*\"" | grep -o "\"[^\"]*\"" | grep -o "[^\"]*" | awk 'NR==3' | tr '[a-z]' '[A-Z]'}${goto 334}${execi 300 grep "yweather:forecast" ~/.cache/weather.xml | grep -o "day=\"[^\"]*\"" | grep -o "\"[^\"]*\"" | grep -o "[^\"]*" | awk 'NR==4' | tr '[a-z]' '[A-Z]'}${goto 444}${execi 300 grep "yweather:forecast" ~/.cache/weather.xml | grep -o "day=\"[^\"]*\"" | grep -o "\"[^\"]*\"" | grep -o "[^\"]*" | awk 'NR==5' | tr '[a-z]' '[A-Z]'} | |
${font Raleway:weight=Light:size=15}${execi 300 cp -f ~/.conky-weather-icons/$(grep "yweather:condition" ~/.cache/weather.xml | grep -o "code=\"[^\"]*\"" | grep -o "\"[^\"]*\"" | grep -o "[^\"]*").png ~/.cache/weather-1.png}${image ~/.cache/weather-1.png -p 0,320 -s 32x32}${execi 300 cp -f ~/.conky-weather-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 110,320 -s 32x32}${execi 300 cp -f ~/.conky-weather-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 220,320 -s 32x32}${execi 300 cp -f ~/.conky-weather-icons/$(grep "yweather:forecast" ~/.cache/weather.xml | grep -o "code=\"[^\"]*\"" | grep -o "\"[^\"]*\"" | grep -o "[^\"]*" | awk 'NR==4').png ~/.cache/weather-4.png}${image ~/.cache/weather-4.png -p 330,320 -s 32x32}${execi 300 cp -f ~/.conky-weather-icons/$(grep "yweather:forecast" ~/.cache/weather.xml | grep -o "code=\"[^\"]*\"" | grep -o "\"[^\"]*\"" | grep -o "[^\"]*" | awk 'NR==5').png ~/.cache/weather-5.png}${image ~/.cache/weather-5.png -p 440,320 -s 32x32}${voffset 20} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment