Last active
January 2, 2016 15:49
-
-
Save cirrusUK/8325641 to your computer and use it in GitHub Desktop.
conky bar with weather and audacious now playing ( sh script for weather is below)
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
background yes | |
use_xft yes | |
xftfont DejaVu Sans Mono:size=8 | |
xftalpha 0.8 | |
out_to_console no | |
update_interval 5.0 | |
total_run_times 0 | |
draw_shades no | |
# Create own window instead of using desktop (required in nautilus) | |
own_window yes | |
# If own_window is yes, you may use type normal, desktop or override | |
own_window_type override | |
# Use pseudo transparency with own_window? | |
own_window_transparent yes | |
double_buffer yes | |
#default_color 555753 | |
#color1 grey | |
alignment top_left | |
gap_x 2 | |
gap_y 2 | |
#no_buffers yes | |
use_spacer yes | |
TEXT | |
$nodename ${color1}$kernel ${color}up ${color1}$uptime ${color}cpu1 ${color1}${cpu cpu1}% ${cpubar 6,40 cpu1} ${freq cpu1}MHz ${color}cpu2 ${color1}${cpu cpu2}% ${cpubar 6,40 cpu2} ${freq cpu2}MHz ${color}mem ${color1}$memperc% ${membar 6,40} ${color}disk ${color1}${fs_used /}/${fs_size /} ${fs_bar 6,40 /} ${color}disk ${color1}${fs_used /home}/${fs_size /home} ${fs_bar 6,40 /home} ${color}date ${color1}${time %d/%m/%y} ${color}time ${color1}${time %H:%M} ${execi 300 /home/cirrus/weather.sh "EUR|UK|UKXX0062|Glasgow"} ${color #98FB98}Audacious Playing${color #99182C}► ${if_running audacious}${color #98FB98}${font Droid Serif:size=8}${exec audtool --current-song}${endif} | |
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
#!/bin/sh | |
#AccuWeather (r) RSS weather tool for conky | |
# | |
#USAGE: weather.sh UKXX0062 | |
# | |
#(c) Michael Seiler 2007 | |
METRIC=1 #Should be 0 or 1; 0 for F, 1 for C | |
if [ -z $1 ]; then | |
echo | |
echo "USAGE: weather.sh <locationcode>" | |
echo | |
exit 0; | |
fi | |
curl -s http://rss.accuweather.com/rss/liveweather_rss.asp\?metric\=${METRIC}\&locCode\=$1 | perl -ne 'if (/Currently/) {chomp;/\<title\>Currently: (.*)?\<\/title\>/; print "$1"; }' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment