SEARCH

Enter your search query in the box above ^, or use the forum search tool.

You are not logged in.

#1 2011-11-01 14:38:18

Sector11
77345 ¡#
From: SR11 Cockpit
Registered: 2010-05-05
Posts: 7,419
Website

November 2011 Conky Thread

The monthly conky thread purpose:

  • seek help with conky, and

  • show your conky and the files that created them

-----------------------------------------------------------
And in accordance with the screenshot thread:

Please continue to use thumbnails (please try to avoid the large thumbnail imgur.com code) linking to the larger image to help those of us with slow connections. An example of the code needed is below. Most image hosting sites will automatically generate this for you as well. I've been using postimage.org lately which does a nice job.

[url=http://link.to.your.fullsized.image][img]http://link.to.your.thumbnail.image[/img][/url]

Last edited by Sector11 (2011-11-01 14:40:29)

Offline

Be excellent to each other!

#2 2011-11-01 14:40:05

dubois
The Old Codger
Registered: 2010-09-03
Posts: 2,238

Re: November 2011 Conky Thread

^ Don't want to pop your bubble so early in the morning but you really need to re-read your thread title.  tongue

Offline

#3 2011-11-01 14:41:05

Sector11
77345 ¡#
From: SR11 Cockpit
Registered: 2010-05-05
Posts: 7,419
Website

Re: November 2011 Conky Thread

dubois wrote:

^ Don't want to pop your bubble so early in the morning but you really need to re-read your thread title.  tongue

It's not been a good few days .. fixed!

Offline

#4 2011-11-01 20:57:53

elija
Member
Registered: 2011-10-29
Posts: 33

Re: November 2011 Conky Thread

I've been playing with the conky that comes with #!. This is what I have come up with. Hope someone else finds it useful

# conky configuration
#
# The list of variables has been removed from this file in favour
# of keeping the documentation more maintainable.
# Check http://conky.sf.net for an up-to-date-list.
#
# For ideas about how to modify conky, please see:
# http://crunchbanglinux.org/forums/topic/59/my-conky-config/
#
# For help with conky, please see:
# http://crunchbanglinux.org/forums/topic/2047/conky-help/
#
# Enjoy! :)
##############################################
#  Settings
##############################################
background yes
use_xft yes
xftfont 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_hints undecorated,below,sticky,skip_taskbar,skip_pager
double_buffer yes
minimum_size 200 200
maximum_width 240
draw_shades no
draw_outline no
draw_borders no
draw_graph_borders yes
default_color d8d8d8
default_shade_color 000000
default_outline_color d9d7d6
alignment top_right
gap_x 12
gap_y 24
no_buffers yes
uppercase no
cpu_avg_samples 2
override_utf8_locale no
##############################################
#  Output
##############################################
TEXT
S Y S T E M    I N F O
${hr}
Host:$alignr$nodename
Uptime:$alignr$uptime
RAM:$alignr$mem/$memmax
Swap usage:$alignr$swap/$swapmax
Disk usage:$alignr${fs_used /}/${fs_size /}


C P U
${hr}
Usage:$alignr${cpu cpu0}%
Temp:$alignr${acpitemp}${iconv_start UTF-8 ISO_8859-1}°${iconv_stop}
Load:${alignr}${loadavg}
Frequency:$alignr${freq}MHz 
$cpubar


W I R E L E S S 
${hr}
Signal:${alignr}${wireless_link_qual wlan0} / $color${wireless_link_qual_max wlan0}
Down:${alignr}${downspeed wlan0} k/s
Up:${alignr}${upspeed wlan0} k/s
${downspeedgraph wlan0 25,120 000000 ff0000} ${alignr}${upspeedgraph wlan0 
25,120 000000 00ff00}$color
Total: ${totaldown wlan0} ${alignr}Total: ${totalup wlan0}


S H O R T C U T    K E Y S
${hr}
Alt+F2$alignr Run Dialog
Alt+F3$alignr Alt Menu
Super+Space$alignr Main Menu
Super+Tab$alignr Client Menu
Super+t$alignr Terminal
Super+f$alignr File Manager
Super+e$alignr Editor
Super+m$alignr Media Player
Super+w$alignr Web Browser
Super+l$alignr Lock Screen
Super+v$alignr Volume Control
Super+x$alignr Logout
PrtSc$alignr Screenshot

conky.png

Oh my, I've just looked through the October thread. Feel even more like a conky newb than I did!

Last edited by elija (2011-11-01 21:13:11)


less is more. less is more more than more is so if you want more more, use less.

Offline

#5 2011-11-01 22:00:31

Sector11
77345 ¡#
From: SR11 Cockpit
Registered: 2010-05-05
Posts: 7,419
Website

Re: November 2011 Conky Thread

elija wrote:

I've been playing with the conky that comes with #!. This is what I have come up with. Hope someone else finds it useful

Oh my, I've just looked through the October thread. Feel even more like a conky newb than I did!

We all start somewhere, relax, the conky bug will get you  big_smile

Offline

#6 2011-11-01 23:59:17

demarsjcd
#! Member
Registered: 2011-09-28
Posts: 94

Re: November 2011 Conky Thread

elija wrote:

Oh my, I've just looked through the October thread. Feel even more like a conky newb than I did!

dont worry I just started modifying about a month ago and this is what I have now.  There are many helpful people on here so if you have questions just ask.

Same as oct but now I made a keyboard shortcut to change my conky,tint2, wallpaper,etc.  I did this so when I go outside I can actually read with the sun glare.  The all black was making it impossible to see anything
1-145.png
1-226.png

36e07297ee38ab8710c960f796dc17ea9.png


conkyrc

background no
own_window yes
own_window_type override
own_window_transparent yes
own_window_hints skip_taskbar,skip_pager
own_window_title CBL-Today
own_window_class CBL-Today

double_buffer yes
use_spacer right
override_utf8_locale yes
use_xft yes
xftfont monospace:bold:size=8
xftalpha 1.0
update_interval 1
uppercase no
stippled_borders 0
border_inner_margin 5
border_width 0
default_outline_color black
default_shade_color black
draw_borders no
draw_graph_borders no
draw_outline no
draw_shades no

# Colors
default_color DCDCDC #Gainsboro
color0 7FFF00 #Chartreuse
color1 FFA07A #LightSalmon
color2 FF8C00 #Darkorange
color3 778899 #LightSlateGrey
color4 FFD700 #Gold
color5 FFDEAD #NavajoWhite
color6 00BFFF #DeepSkyBlue
color7 48D1CC #MediumTurquoise
color8 FFFF00 #Yellow
color9 FF0000 #Red

text_buffer_size 1028
no_buffers yes
short_units yes
pad_percents 2

alignment top_left
gap_x 5
gap_y 5

minimum_size 180 0
maximum_width 2220
override_utf8_locale yes
TEXT
${font digitalk:size=30}${color6}${goto 8}${time %C}${goto 203}${time %y}${color}${font}
${goto 63}${voffset -25}${execpi 3600 ~/conky/scripts/week_2.sh}
${font monospace:bold:size=16}${goto 50}${color7}${time %a}${goto 160}${time %b}${color}${voffset -55}

autostart.sh

#!/bin/bash
## Xfce autostart.sh
## =================
## When you login to your CrunchBang Xfce session, this autostart script 
## will be executed to set-up your environment and launch any applications
## you want to run at startup.
##
## This script is fashioned after Openbox's autostart.sh file.
## More information about this can be found at:
## http://openbox.org/wiki/Help:Autostart
##
## If you do something cool with your autostart script and you think others
## could benefit from your hack, please consider sharing it at:
## http://crunchbanglinux.org/forums/
##
## NOTE ABOUT CONDITIONS
## ---------------------
## Varios commands in this script are conditional. Conditions have been added
## as Xfce has its own internal session manager, which will happily autostart
## some of CrunchBang's default autostart applications. If you know of a
## better way of handling this, please consider sharing it at:
## http://crunchbanglinux.org/forums/
##
## Have fun! :)

## Condition, only run this script under Xfce
if [ ! "$(pidof xfwm4)" ]; then
    exit 0
fi

## Launch panel
(sleep 1s && tint2 [-c] /home/jason/.config/tint2/tint2rc) &

## Detect and configure touchpad. See 'man synclient' for more info.
if egrep -iq 'touchpad' /proc/bus/input/devices; then
    synclient VertEdgeScroll=1 &
    synclient TapButton1=1 &
fi

## Condition: Start xscreensaver, if required.
if [ ! "$(pidof xscreensaver)" ]; then
    xscreensaver -no-splash &
fi

## Condition: Start Conky after a slight delay
(sleep 4s && conky -c /home/jason/conky/conkyrc ) &
(sleep 4s && conky -c /home/jason/conky/.conkyrc ) &
(sleep 4s && conky -c /home/jason/conky/startconky.sh) &
(sleep 4s && conky -c /home/jason/conky/one_line ) &

## The following command will set-up a keyboard map selection tool when
## running in a live session.
cb-setxkbmap-live &

## cb-fortune - have Statler say a little adage
#(sleep 120s && cb-fortune) &

## FIXME: there is a known issue whereby Xfce’s keyboard shortcuts do not always
## work. The following is a fix, although it may not be needed on your system;
## feel free to remove it and find out. :)
(sleep 5s && killall xfce4-settings-helper) &

## Bad Nautilus, minimises the impact of running Nautilus under
## an Xfce session by applying some gconf settings. Safe to delete.
cb-bad-nautilus &

exit 0

one_line

background no
own_window yes
own_window_type override
own_window_transparent yes
own_window_hints undecorated,below,skip_taskbar,skip_pager

double_buffer yes
use_spacer right
override_utf8_locale yes
use_xft yes
xftfont DejaVu Sans Mono:bold:size=8
xftalpha 1.0 
update_interval 1
uppercase no
stippled_borders 0
border_inner_margin 0
border_width 0
default_outline_color black
default_shade_color black
draw_borders no
draw_graph_borders no
draw_outline no
draw_shades no

# Colors
default_color DCDCDC #Gainsboro
color0 7FFF00 #Chartreuse
color1 FFA07A #LightSalmon
color2 FF8C00 #Darkorange
color3 778899 #LightSlateGrey
color4 FFD700 #Gold
color5 FFDEAD #NavajoWhite
color6 00BFFF #DeepSkyBlue
color7 48D1CC #MediumTurquoise
color8 FFFF00 #Yellow
color9 FF0000 #Red

text_buffer_size 1028
no_buffers yes
short_units yes
pad_percents 2
alignment tl  # Aligned position on screen: tl, tr, tm, bl, br, bm, ml, mr
gap_x 255
gap_y 10

minimum_size 750 0
maximum_width 750
temperature_unit fahrenheit

TEXT
${color7}CPU: ${color6}${cpu cpu0}${goto 50}${color7}% RAM: ${color6}${memperc} ${color6}${goto 110}% ${color7}Disk: ${color6}${fs_used_perc /}${goto 176}${color7}% ${color9}Temps: ${color7}CPU: ${hwmon 0 temp 1 | cut --characters 15-16 | xargs ~/conky/scripts/ColorTempCore.sh}°${goto 290}${color7}Core 1: ${hwmon 1 temp 1 | cut --characters 15-16 | xargs ~/conky/scripts/ColorTempCore.sh}°${goto 365} ${color7}Core 2: ${hwmon 2 temp 1 | cut --characters 15-16 | xargs ~/conky/scripts/ColorTempCore.sh}°

.conkyrc

## killall conky && conky -c /home/jason/conky/.conkyrc

 ###  Begin Window Settings  ##################################################
 # Create own window instead of using desktop (required in nautilus)
own_window yes
own_window_type override
own_window_transparent yes
own_window_hints below,sticky,skip_taskbar,skip_pager
# own_window_colour brown
own_window_class Conky
own_window_title AccuWeather USA

 ### ARGB can be used for real transparency
 ### NOTE that a composite manager is required for real transparency.
 ### This option will not work as desired (in most cases) in conjunction with
 ### 'own_window_type override'
# own_window_argb_visual yes
 ### When ARGB visuals are enabled, this use this to modify the alpha value
 ### Valid range is 0-255, where 0 is 0% opacity, and 255 is 100% opacity. 
#own_window_argb_value 0

minimum_size 120 0    ## width, height
maximum_width 120    ## width - usually a good idea to equal minimum width.

gap_x 10    ## left &right
gap_y 10    ## up & down

alignment bottom_left
 ####################################################  End Window Settings  ###
 ###  Font Settings  ##########################################################
 # Use Xft (anti-aliased font and stuff) 
use_xft yes
xftfont monospace:size=8
 # Alpha of Xft font. Must be a value at or between 1 and 0 ###
xftalpha 0
 # Force UTF8? requires XFT ###
override_utf8_locale yes

draw_shades no
draw_outline no
uppercase no

draw_outline no # amplifies text if yes
 ######################################################  End Font Settings  ###
 ###  Color Settings  #########################################################
default_shade_color grey
default_outline_color black

default_color DCDCDC #Gainsboro
color0 DAA520 #Goldenrod  FFFFF0 #Ivory
color1 778899 #LightSlateGrey
color2 FF8C00 #Darkorange
color3 7FFF00 #Chartreuse
color4 FFA07A #LightSalmon
color5 FFDEAD #NavajoWhite
color6 00BFFF #DeepSkyBlue
color7 00FFFF #Cyan 48D1CC #MediumTurquoise
color8 FFFF00 #Yellow
color9 FF0000 #Red
 #####################################################  End Color Settings  ###
 ###  Borders Section  ########################################################
draw_borders no
# Stippled borders?
stippled_borders 0
# border margins
border_inner_margin 5
# border width
border_width 0
 #####################################################  End Borders Secton  ###


 # Use the Xdbe extension? (eliminates flicker)
 # It is highly recommended to use own window with this one so
 # double buffer won't be so big
double_buffer yes

 # Adds spaces around certain objects to stop them
 # from moving other things around.
 # only works with mono fonts
use_spacer right
 # Arguments are left, right, and none (default)

 # Size of the standard text buffer (default is 256 bytes).
 # Will allow for more text display per variable.
text_buffer_size 256

 # Sets bars size even for bars that do not hace that function
 # IE: execbar and execibar
default_bar_size 335 9

 # 0 makes Conky run forever
total_run_times 0
cpu_avg_samples 1
net_avg_samples 1
no_buffers yes

 # Defaults to 4MiB
 # Set to 0 to disable the image cache
 # Increase this value if you use $image lots
imlib_cache_size 0

update_interval 3

lua_load /home/jason/conky/LUA/draw-bg.lua
lua_draw_hook_pre draw_bg

TEXT
${execi 600 bash /home/jason/accuweather_conky_USA/accuw_USA_script}${font Orbitron:size=12}${font Orbitron:size=15}${execpi 600 sed -n '1p' /home/jason/accuweather_conky_USA/days}${font}
${voffset 5}${color6}${font conkyweather:size=30}${execi 600  sed -n '6p' /home/jason/accuweather_conky_USA/images}${font}${color}${voffset -25}${goto 55}H: ${font digitalk:bold:size=15}${execpi 600 sed -n '1p' /home/jason/accuweather_conky_USA/temperatures}${font Orbitron:size=15}°f${font}
${goto 55}L: ${font digitalk:bold:size=15}${execpi 600 sed -n '2p' /home/jason/accuweather_conky_USA/temperatures}${font Orbitron:size=15}°f${font}
${execpi 600 sed -n '2p' /home/jason/accuweather_conky_USA/messages|fold -s -w 18}

${font Orbitron:size=12}${execpi 600 sed -n '2p' /home/jason/accuweather_conky_USA/days}${font}
${voffset 5}${color6}${font conkyweather:size=30}${execi 600  sed -n '7p' /home/jason/accuweather_conky_USA/images}${font}${color}${voffset -25}${goto 55}H: ${font digitalk:bold:size=15}${execpi 600 sed -n '3p' /home/jason/accuweather_conky_USA/temperatures}${font Orbitron:size=15}°f${font}
${goto 55}L: ${font digitalk:bold:size=15}${execpi 600 sed -n '4p' /home/jason/accuweather_conky_USA/temperatures}${font Orbitron:size=15}°f${font}
${execpi 600 sed -n '5p' /home/jason/accuweather_conky_USA/messages|fold -s -w 18}

${font Orbitron:size=12}${execpi 600 sed -n '3p' /home/jason/accuweather_conky_USA/days}${font}
${voffset 5}${color6}${font conkyweather:size=30}${execi 600  sed -n '8p' /home/jason/accuweather_conky_USA/images}${font}${color}${voffset -25}${goto 55}H: ${font digitalk:bold:size=15}${execpi 600 sed -n '5p' /home/jason/accuweather_conky_USA/temperatures}${font Orbitron:size=15}°f${font}
${goto 55}L: ${font digitalk:bold:size=15}${execpi 600 sed -n '6p' /home/jason/accuweather_conky_USA/temperatures}${font Orbitron:size=15}°f${font}
${execpi 600 sed -n '8p' /home/jason/accuweather_conky_USA/messages|fold -s -w 18}

${font Orbitron:size=12}${execpi 600 sed -n '4p' /home/jason/accuweather_conky_USA/days}${font}
${voffset 5}${color6}${font conkyweather:size=30}${execi 600  sed -n '9p' /home/jason/accuweather_conky_USA/images}${font}${color}${voffset -25}${goto 55}H: ${font digitalk:bold:size=15}${execpi 600 sed -n '7p' /home/jason/accuweather_conky_USA/temperatures}${font Orbitron:size=15}°f${font}
${goto 55}L: ${font digitalk:bold:size=15}${execpi 600 sed -n '8p' /home/jason/accuweather_conky_USA/temperatures}${font Orbitron:size=15}°f${font}
${execpi 600 sed -n '11p' /home/jason/accuweather_conky_USA/messages|fold -s -w 18}

week_2.sh

#!/bin/bash

font=("\${voffset -10}\${font digitalk:size=4}" "\${voffset -0}\${font digitalk:size=8}" "\${voffset -0}\${font digitalk:size=12}" "\${voffset -3}\${font digitalk:size=30}\${color 00FFFF}" "\${voffset -15}\${font digitalk:size=12}" "\${voffset -4}\${font digitalk:size=7}" "\${voffset -2}\${font digitalk:size=4}")
color=("" "" "" "\${color}" "" "" "")

for i in $(seq -3 3); do
echo -n "${font[$[i+3]]}$(date '+%d' -d "$i days")${color[3]}\${offset 3}"
done

Offline

#7 2011-11-02 00:31:06

el_koraco
#!/loony/bun
From: inside Ed
Registered: 2011-07-25
Posts: 4,643

Re: November 2011 Conky Thread

you guys are crazy. mine is a little like a sorry stepchild in lue of this thread, but it serves all my needs.

tYjM2cg

# Conky configuration for ScrotWM Bar

##############################################
#  Settings
##############################################
out_to_x no
background no
out_to_console yes
update_interval 1
total_run_times 0
use_spacer none

#no_buffers yes
#cpu_average_samples 1
#net_average_samples 1
TEXT
${time %A %B %d %Y %R}                                                                                                 Up - $uptime_short  |  CPU - ${cpu cpu0}%  |  Mem - ${memperc}%  |  Temp - ${hwmon 0 temp 1}'C  |  Batt - ${battery_percent BAT1}%  |  WiFi - ${wireless_link_qual_perc wlan0}%         

Offline

#8 2011-11-02 00:50:57

ElderV.LaCoste
#! Die Hard
From: Equarico
Registered: 2010-07-15
Posts: 781

Re: November 2011 Conky Thread

From last month regarding Jpope's Cairo Side Bar...

@ Jpope - Hey man thanks for responding!  I didn't see that until today when I went back to last month's thread.  I am looking forward to the new version.  As for parsing for updates I found something that seems to work however I don't know why.   I just went digging through the Linux Mint scripts until I found something that looked like something that might do something.  I combined it with your command and now the count shows 0 updates which is correct.  Now I have to wait until there are some updates to see if it is actually working.  Here is what I have but I don't know if it makes any sense lol:

${execi 3600 aptitude search '~U' | ps -A | grep mintUpdate | wc -l | tail > ~/.conky/cairosidebar/upd}

Last edited by ElderV.LaCoste (2011-11-02 01:27:51)


Proceed with confidence!
http://eldervlacoste.deviantart.com/

Offline

#9 2011-11-02 02:48:42

PackRat
#! Die Hard
From: USA
Registered: 2011-03-03
Posts: 733

Re: November 2011 Conky Thread

ElderV.LaCoste wrote:

<snip>

I just went digging through the Linux Mint scripts until I found something that looked like something that might do something.

<snip>

The tried and true method of getting Linux to work the way you want. big_smile

Still with the one-liner; one of these years I may change it:

tYjM5Mg


"It does not require many words to speak the truth." - Chief Joseph, Nez Perce tribe

Offline

#10 2011-11-02 16:01:26

dlm955
#! CrunchBanger
From: Mansfield,Ohio USA
Registered: 2011-07-23
Posts: 127

Re: November 2011 Conky Thread

{this only works in the USA because of the lua and accuweather script}
With winter coming I wanted to get some detailed weather info going in conky. But after reading the conky weather disaster thread,I knew my first choice was out...
  But more reading and searching paid off......A lot of this comes from Sector11 posts,Mr Peachys radartest.lua and some from that orange forum too.....
  I set this up to start and stop like any program because it has so much info in it and it is a large conky
that I don't want it on the desktop all the time...just start it when wanted and stop it like any program.
You have to add it to your start menu to do this.It has a window border with all the buttons working.


     radarconkyrc

   

# conky configuration
#
# The list of variables has been removed from this file in favour
# of keeping the documentation more maintainable.
# Check http://conky.sf.net for an up-to-date-list.
#
# For ideas about how to modify conky, please see:
# http://crunchbanglinux.org/forums/topic/59/my-conky-config/
#
# 
#
#
# Enjoy! :)
##############################################
#  Settings
##############################################
background yes
use_xft yes
xftfont Monospace:size=10
xftalpha 1
override_utf8_locale yes
text_buffer_size 2048
imlib_cache_size 0
update_interval 1.0
total_run_times 0
own_window yes
own_window_title Weather Radar
own_window_transparent no
own_window_type normal
max_specials 1024
double_buffer yes
minimum_size 1000 545
maximum_width 1000
draw_shades no
draw_outline no
draw_borders yes
draw_graph_borders no
default_color white
default_shade_color FFFFFF
default_outline_color 888888
alignment top_right
gap_x 20
gap_y 20
no_buffers yes
uppercase no
cpu_avg_samples 2
#temperature_unit fahrenheit

lua_load ~/conky/radar/radar.lua
lua_draw_hook_pre radar

##############################################
#  Output
##############################################
TEXT
${execi 600 bash $HOME/accuweather_conky_USA/accuw2_USA_script}
${goto 40}${color}Sunrise: ${execpi 600 sed -n '14p' ~/accuweather_conky_USA/current}   ${goto 170}Moonrise: ${execpi 600 sed -n '16p' ~/accuweather_conky_USA/current}
${goto 40}Sunset:  ${execpi 600 sed -n '18p' ~/accuweather_conky_USA/current}   ${goto 170}Moonset:  ${execpi 600 sed -n '20p' ~/accuweather_conky_USA/current}

${goto 40}${font conkyweather:size=40}${color}${execi 600  sed -n '23p' ~/accuweather_conky_USA/current}${color}
${font Monospace:size=30}${goto 120}${voffset -75}${execpi 600 sed -n '2p' ~/accuweather_conky_USA/current}°
${font}${goto 120}${voffset -30}${execpi 600 sed -n '1p' ~/accuweather_conky_USA/current|fold -w30}

${goto 120}Wind:           ${execpi 600 sed -n '12p' ~/accuweather_conky_USA/current} ${execpi 600 sed -n '13p' ~/accuweather_conky_USA/current}mph
${goto 120}Feels Like:     ${execpi 600 sed -n '3p' ~/accuweather_conky_USA/current}°
${goto 120}Humidity:       ${execpi 600 sed -n '5p' ~/accuweather_conky_USA/current}%
${goto 120}Pressure:       ${execpi 600 sed -n '6p' ~/accuweather_conky_USA/current}in
${goto 120}Cloud Cover:    ${execpi 600 sed -n '7p' ~/accuweather_conky_USA/current}%
${goto 120}UV Index:       ${execpi 600 sed -n '8p' ~/accuweather_conky_USA/current}
${goto 120}Dew Point:      ${execpi 600 sed -n '9p' ~/accuweather_conky_USA/current}°
${goto 120}Precipitation:  ${execpi 600 sed -n '10p' ~/accuweather_conky_USA/current}in
${goto 120}Visibility:     ${execpi 600 sed -n '11p' ~/accuweather_conky_USA/current} miles

${goto 120}${color0}${font Nimbus Sans L:bold:size=10}FORECAST $font$color

${goto 40}${font conkyweather:size=40}${color3}${execi 600  sed -n '7p' ~/accuweather_conky_USA/images}${color}${font Nimbus Sans L:bold:size=8}${goto 120}${voffset -35}${execpi 600 sed -n '2p' ~/accuweather_conky_USA/days}
${font}${goto 120}${execpi 600 sed -n '5p' ~/accuweather_conky_USA/messages|fold -w30}
${goto 120}High: ${execpi 600 sed -n '3p' ~/accuweather_conky_USA/temperatures}°  Low: ${execpi 600 sed -n '4p' ~/accuweather_conky_USA/temperatures}°

${goto 40}${font conkyweather:size=40}${color3}${execi 600  sed -n '8p' ~/accuweather_conky_USA/images}${color}${font Nimbus Sans L:bold:size=8}${goto 120}${voffset -35}${execpi 600 sed -n '3p' ~/accuweather_conky_USA/days}
${font}${goto 120}${execpi 600 sed -n '8p' ~/accuweather_conky_USA/messages|fold -w30}
${goto 120}High: ${execpi 600 sed -n '5p' ~/accuweather_conky_USA/temperatures}°  Low: ${execpi 600 sed -n '6p' ~/accuweather_conky_USA/temperatures}°

${goto 40}${font conkyweather:size=40}${color3}${execi 600  sed -n '9p' ~/accuweather_conky_USA/images}${color}${font Nimbus Sans L:bold:size=8}${goto 120}${voffset -35}${execpi 600 sed -n '4p' ~/accuweather_conky_USA/days}
${font}${goto 120}${execpi 600 sed -n '11p' ~/accuweather_conky_USA/messages|fold -w30}
${goto 120}High: ${execpi 600 sed -n '7p' ~/accuweather_conky_USA/temperatures}°  Low: ${execpi 600 sed -n '8p' ~/accuweather_conky_USA/temperatures}°

${goto 40}${font conkyweather:size=40}${color3}${execi 600  sed -n '10p' ~/accuweather_conky_USA/images}${color}${font Nimbus Sans L:bold:size=8}${goto 120}${voffset -35}${execpi 600 sed -n '5p' ~/accuweather_conky_USA/days}
${font}${goto 120}${execpi 600 sed -n '14p' ~/accuweather_conky_USA/messages|fold -w30}${goto 500}Lat/Lon:${font digitalk:size=18} ${execi 3600 python ~/conky/radar/conkyLatLong.py}${font}
${goto 120}High: ${execpi 600 sed -n '9p' ~/accuweather_conky_USA/temperatures}°  Low: ${execpi 600 sed -n '10p' ~/accuweather_conky_USA/temperatures}°   

  you need to install the conkyLatLong.py for that to work

    MrPeachys radartest.lua

--[[
call 
lua_load ~/lua/radartest.lua
lua_draw_hook_pre radar
]]

--settings

--file directory, if this directory is permanent then you will only have to download the background images once
--a sub directory will be created within the directory for the radar images
directory="/home/dlm955/conky/radar/"

--do you want Short or Long distance radar images? (capital first letter)
distance="Short"

--enter your weather station... find at the bottom of this page...  http://forecast.weather.gov/jetstream/doppler/ridge_download.htm
station="CLE"

--update interval, the site itself updates from around 6 to 10 minutes
interval=300

--positions and image scale set lower down


require 'cairo'
require 'imlib2'
------------------------------------------------------------------------------
function string:split(delimiter)
local result = { }
local from  = 1
local delim_from, delim_to = string.find( self, delimiter, from  )
while delim_from do
table.insert( result, string.sub( self, from , delim_from-1 ) )
from  = delim_to + 1
delim_from, delim_to = string.find( self, delimiter, from  )
end
table.insert( result, string.sub( self, from  ) )
return result
end
--------------------------------------------------------------------------------

function conky_radar()
if conky_window == nil then return end
local cs = cairo_xlib_surface_create(conky_window.display,  conky_window.drawable, conky_window.visual, conky_window.width,  conky_window.height)
cr = cairo_create(cs)
local updates=tonumber(conky_parse('${updates}'))
if updates==3 then
os.execute("wget -nc --directory-prefix=" .. directory .. "  http://radar.weather.gov/ridge/Overlays/Topo/" .. distance .. "/" ..  station .. "_Topo_" .. distance .. ".jpg")
os.execute("wget -nc --directory-prefix=" .. directory .. "  http://radar.weather.gov/ridge/Overlays/County/" .. distance .. "/" ..  station .. "_County_" .. distance .. ".gif")
os.execute("wget -nc --directory-prefix=" .. directory .. "  http://radar.weather.gov/ridge/Overlays/Highways/" .. distance .. "/" ..  station .. "_Highways_" .. distance .. ".gif")
os.execute("wget -nc --directory-prefix=" .. directory .. "  http://radar.weather.gov/ridge/Overlays/Cities/" .. distance .. "/" ..  station .. "_City_" .. distance .. ".gif")
end
if updates>5 then
--#########################################################################################################
--#########################################################################################################
--positioning
pos_x=708
pos_y=279
--original images are 600 wide by 550 tall
--you can resize the images here
scale_x=600
scale_y=550

file=directory .. station .. "_Topo_" .. distance .. ".jpg"
image(pos_x,pos_y,scale_x,scale_y,file)

if distance=="Short" then
pic="N0R"
elseif distance=="Long" then
pic="N0Z"
end

timer=(updates % interval)+1
if timer==1 or updates==10 then
os.execute("rm " .. directory .. "radar/" .. station .. "_" .. pic .. "_0.gif")
os.execute("rm " .. directory .. "radar/" .. station .. "_" .. pic .. "_Legend_0.gif")
os.execute("rm " .. directory .. "radar/" .. station .. "_Warnings_0.gif")

os.execute("wget --directory-prefix=" .. directory .. "radar/  http://radar.weather.gov/ridge/RadarImg/" .. pic .. "/" .. station ..  "_" .. pic .. "_0.gif")
os.execute("wget --directory-prefix=" .. directory .. "radar/  http://radar.weather.gov/ridge/Legend/" .. pic .."/" .. station .. "_"  .. pic .. "_Legend_0.gif")
os.execute("wget --directory-prefix=" .. directory .. "radar/  http://radar.weather.gov/ridge/Warnings/" .. distance .. "/" .. station  .. "_Warnings_0.gif")
end
file=directory .. "/radar/" .. station .. "_" .. pic .. "_0.gif"
image(pos_x,pos_y,scale_x,scale_y,file)

file=directory .. station .. "_County_" .. distance .. ".gif"
image(pos_x,pos_y,scale_x,scale_y,file)

file=directory .. station .. "_Highways_" .. distance .. ".gif"
image(pos_x,pos_y,scale_x,scale_y,file)

file=directory .. station .. "_City_" .. distance .. ".gif"
image(pos_x,pos_y,scale_x,scale_y,file)

file=directory .. "/radar/" .. station .. "_Warnings_0.gif"
image(pos_x,pos_y,scale_x,scale_y,file)

file=directory .. "/radar/" .. station .. "_" .. pic .. "_Legend_0.gif"
image(pos_x,pos_y,scale_x,scale_y,file)
--#########################################################################################################
--#########################################################################################################
end-- if updates>5
cairo_destroy(cr)
cairo_surface_destroy(cs)
cr=nil
end-- end main function

function image(center_x,center_y,w,h,file)
show = imlib_load_image(file)
if show == nil then return end
imlib_context_set_image(show)
if tonumber(w)==0 then 
width=imlib_image_get_width() 
else
width=tonumber(w)
end
if tonumber(h)==0 then 
height=imlib_image_get_height() 
else
height=tonumber(h)
end
iacross=center_x-(width/2)
idown=center_y-(height/2)
imlib_context_set_image(show)
scaled=imlib_create_cropped_scaled_image(0, 0, imlib_image_get_width(), imlib_image_get_height(), width, height)
imlib_free_image()
imlib_context_set_image(scaled)
imlib_render_image_on_drawable(iacross, idown)
imlib_free_image()
show=nil
end   

   read lines 1-20 to setup the lua for your location ...lines 55-60 for size and position of lua

                      ksMFAs.jpg
                    click pic to inlarge click pic again to see full screen

  edit: removed dead link from conkyrc

Last edited by dlm955 (2011-11-02 18:53:41)


Give a man a truth and he will think for a day.
Teach a man to reason and he will think for a lifetime!

Offline

#11 2011-11-02 16:06:33

orionthehunter
#! Constellation
From: Japan
Registered: 2011-04-09
Posts: 842
Website

Re: November 2011 Conky Thread

#  Settings
##############################################
background yes
use_xft yes
xftfont granapadano: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_hints undecorated,below,sticky,skip_taskbar,skip_pager
double_buffer yes
minimum_size 500 200
maximum_width 500
draw_shades no
draw_outline no
draw_borders no
draw_graph_borders no
default_color d8d8d8
default_shade_color 000000
default_outline_color d9d7d6
alignment top_right
gap_x 20
gap_y 10
no_buffers yes
uppercase no
cpu_avg_samples 2
override_utf8_locale no
##############################################
#  Output
##############################################
TEXT
${font granapadano:size=34}$alignr${time %A}${font GranaPadano:size=24}
$alignr It's${time %l:%M %p}
$alignr on ${time %B %d}
${font granapadano:size=14}
$alignr$nodename has been up for $uptime_short
$alignr Using $mem of ram and ${cpu cpu0}% of cpu

6306419784_bbb144a5b2_m.jpg

Offline

#12 2011-11-02 16:17:44

Sector11
77345 ¡#
From: SR11 Cockpit
Registered: 2010-05-05
Posts: 7,419
Website

Re: November 2011 Conky Thread

dlm955 wrote:

{this only works in the USA because of the lua and accuweather script}

                      ksMFAs.jpg
                    click pic to inlarge click pic again to see full screen

AWESOME!!!!  I'm a fan of conky's in windows now getting to love a clean screen, but love my conkys too!

One point!
This:

# For help with conky, please see:
# http://crunchbanglinux.org/forums/topic/2047/conky-help/

unfortunately is a closed thread.  Just the monthly threads now.

Last edited by Sector11 (2011-11-02 16:18:22)

Offline

#13 2011-11-02 16:28:57

dlm955
#! CrunchBanger
From: Mansfield,Ohio USA
Registered: 2011-07-23
Posts: 127

Re: November 2011 Conky Thread

Sector11 wrote:

One point!
This:
# For help with conky, please see:
# http://crunchbanglinux.org/forums/topic … onky-help/
unfortunately is a closed thread.  Just the monthly threads now.

    yea I used the conkyrc that comes with crunchbang as a start for that one [ oops sorry I missed that]


Give a man a truth and he will think for a day.
Teach a man to reason and he will think for a lifetime!

Offline

#14 2011-11-02 16:44:37

ichase
#! CrunchBanger
Registered: 2011-03-16
Posts: 136

Re: November 2011 Conky Thread

dlm955 wrote:

{this only works in the USA because of the lua and accuweather script}
With winter coming I wanted to get some detailed weather info going in conky. But after reading the conky weather disaster thread,I knew my first choice was out...
  But more reading and searching paid off......A lot of this comes from Sector11 posts,Mr Peachys radartest.lua and some from that orange forum too.....
  I set this up to start and stop like any program because it has so much info in it and it is a large conky
that I don't want it on the desktop all the time...just start it when wanted and stop it like any program.
You have to add it to your start menu to do this.It has a window border with all the buttons.

                        ksMFAs.jpg
                    click pic to inlarge click pic again to see full screen

WOW!!!!!  Just when I thought I have seen everything conky is able to do, you go off and post a conky that actually has the current weather map along with a closable window????????  AMAZING!!!

I want that!!!!!!   big_smile big_smile big_smile big_smile

All the best,

Ian

Offline

#15 2011-11-02 17:52:25

Sector11
77345 ¡#
From: SR11 Cockpit
Registered: 2010-05-05
Posts: 7,419
Website

Re: November 2011 Conky Thread

ichase wrote:

WOW!!!!!  Just when I thought I have seen everything conky is able to do, you go off and post a conky that actually has the current weather map along with a closable window????????  AMAZING!!!

I want that!!!!!!   big_smile big_smile big_smile big_smile

All the best,

Ian

You can't have it - it's dlm955's   big_smile
Windowed conkys have been around for a while.

If you use OpenBox if not just ignore the OpenBox part and create a menu entry in Xfce or GNOME or ......

Last edited by Sector11 (2011-11-02 17:52:50)

Offline

#16 2011-11-02 18:57:39

dlm955
#! CrunchBanger
From: Mansfield,Ohio USA
Registered: 2011-07-23
Posts: 127

Re: November 2011 Conky Thread

ichase wrote:
dlm955 wrote:

{this only works in the USA because of the lua and accuweather script}
With winter coming I wanted to get some detailed weather info going in conky. But after reading the conky weather disaster thread,I knew my first choice was out...
  But more reading and searching paid off......A lot of this comes from Sector11 posts,Mr Peachys radartest.lua and some from that orange forum too.....
  I set this up to start and stop like any program because it has so much info in it and it is a large conky
that I don't want it on the desktop all the time...just start it when wanted and stop it like any program.
You have to add it to your start menu to do this.It has a window border with all the buttons.

                        ksMFAs.jpg
                    click pic to inlarge click pic again to see full screen

WOW!!!!!  Just when I thought I have seen everything conky is able to do, you go off and post a conky that actually has the current weather map along with a closable window????????  AMAZING!!!

I want that!!!!!!   big_smile big_smile big_smile big_smile

All the best,

Ian

                     I think of the most amazing things when I'am sleep deprived.....

   When I was working on that I saw how much of my desktop it used..and noticed my cpu usage was way up so that was a big factor in making it close.
  and thank you....

Last edited by dlm955 (2011-11-02 19:05:00)


Give a man a truth and he will think for a day.
Teach a man to reason and he will think for a lifetime!

Offline

#17 2011-11-02 19:09:47

Sector11
77345 ¡#
From: SR11 Cockpit
Registered: 2010-05-05
Posts: 7,419
Website

Re: November 2011 Conky Thread

dlm955 wrote:

                     I think of the most amazing things when I'am sleep deprived.....

   When I was working on that I saw how much of my desktop it used..and noticed my cpu usage was way up so that was a big factor in making it close.
  and thank you....

One of the best reasons to put conky in a window - when it's sleep depri -- no wait - when it's CPU hungry.

That looks really good.

Offline

#18 2011-11-02 19:14:33

Sector11
77345 ¡#
From: SR11 Cockpit
Registered: 2010-05-05
Posts: 7,419
Website

Re: November 2011 Conky Thread

PackRat wrote:
ElderV.LaCoste wrote:

<snip>

I just went digging through the Linux Mint scripts until I found something that looked like something that might do something.

<snip>

The tried and true method of getting Linux to work the way you want. big_smile

Still with the one-liner; one of these years I may change it:

tYjM5Mg

Wait a sec ... I see a one liner on the top ... but that weather conky has more than a line   big_smile

Looks nice

Offline

#19 2011-11-02 19:16:42

BoredOOMM
#! Junkie
From: 36.0718,-119.03519
Registered: 2011-06-19
Posts: 350

Re: November 2011 Conky Thread

Sector11 wrote:

Wait a sec ... I see a one liner on the top ... but that weather conky has more than a line   big_smile

Looks nice

Looks nice until Nov 16th. wink


Congratulations, you've figured out the sound of one hand clapping...

Offline

#20 2011-11-02 20:09:54

Sector11
77345 ¡#
From: SR11 Cockpit
Registered: 2010-05-05
Posts: 7,419
Website

Re: November 2011 Conky Thread

BoredOOMM wrote:
Sector11 wrote:

Wait a sec ... I see a one liner on the top ... but that weather conky has more than a line   big_smile

Looks nice

Looks nice until Nov 16th. wink

Ooooo right ...

@ PackRat
Is that conkyForecast?  You may want to look at:
HOW TO: Conky weather info using Accuweather/WUnderground/NWS

Offline

#21 2011-11-02 21:37:50

xeNULL
#! Pirate
From: The Internet
Registered: 2011-01-23
Posts: 811

Re: November 2011 Conky Thread

Just packaged my dzen2/conky up on deviantart there is a preview there so I will just post the link =]

http://xenull.deviantart.com/#/d4ev2mt


AKA xii on #crunchbang #!WMFS2
dotshare | dA | 1 1 0 1 0 1 0 0 0

Offline

#22 2011-11-02 23:16:26

PackRat
#! Die Hard
From: USA
Registered: 2011-03-03
Posts: 733

Re: November 2011 Conky Thread

Sector11 wrote:
BoredOOMM wrote:
Sector11 wrote:

Wait a sec ... I see a one liner on the top ... but that weather conky has more than a line   big_smile

Looks nice

Looks nice until Nov 16th. wink

Ooooo right ...

@ PackRat
Is that conkyForecast?  You may want to look at:
HOW TO: Conky weather info using Accuweather/WUnderground/NWS

Thanks. I have that bookmarked but haven't gotten around to configuring it yet.

Edit: accuweather configured:

tYjNxbQ

Last edited by PackRat (2011-11-03 01:05:22)


"It does not require many words to speak the truth." - Chief Joseph, Nez Perce tribe

Offline

#23 2011-11-02 23:20:46

psyco430404
#! Die Hard
From: Las Vegas, Nevada
Registered: 2011-07-04
Posts: 804

Re: November 2011 Conky Thread

I second accuweather it's a great and good looking script.


"'If fighting is to result in victory, then you must fight'...Sun Tzu said that and id say he knows a little more about fighting then you do pal."

- TF2 Soldier

Offline

#24 2011-11-02 23:52:57

chaanakya
#! Die Hard
Registered: 2010-12-30
Posts: 940

Re: November 2011 Conky Thread

Here's a script to display your Facebook notifications

#!/bin/bash
numberoflines=5
address="<URL of Facebook RSS feed>"
wget --user-agent="Mozilla/5.0 (X11; U; Linux i686; en-US) AppleWebKit/533.4 (KHTML, like Gecko) Chrome/5.0.375.55 Safari/533.4" -q $address -O - | grep title | sed 's/<title>//g' | sed 's/<\/title>//g' | sed "s/\&apos\;/'/g" | sed 's/\&quot\;/"/g' | tail -n +2 | head -n $numberoflines

To use this, you need the URL of your Facebook RSS Feed.  To get this, click on your Notifications icon and click "See all Notifications".  Near the top, there should be an option to download the RSS feed.  That is the URL you paste in to the third line of the script.

- Chaanakya


Check out Musik - an easy-to-use text-to-music converter!
Join SpiderOak using this link and get an extra 1 GB free: https://spideroak.com/download/referral … 660e787ff1

Offline

Be excellent to each other!

#25 2011-11-03 00:55:20

Sector11
77345 ¡#
From: SR11 Cockpit
Registered: 2010-05-05
Posts: 7,419
Website

Re: November 2011 Conky Thread

psyco430404 wrote:

I second accuweather it's a great and good looking script.

Accuweather is good, but only gives 3 days to us International Users.  So a marriage of Accuweather and Wunderground makes for a nice combo.  Since Wunderground seems to only give "forecast" info it does "nights" of the first three days and days and nights for the rest in the conky on the right.

Here's three -- two in a window and one down the side mixed with other "conky stuff" - I'm still playing with the pure Wunderground one.

dab3b3157155557.jpg

three_conkys.zip

Oh Oh, I just saw there is an error there, after a certain time, Wunderground stops forecasting today - makes sense, and starts with tomorrow, which messes things up.  Guess I need to play with some ${if_match} statements.

Oh well, I'll leave the files if anyone wants them.

Offline

Board footer

Powered by FluxBB

Copyright © 2012 CrunchBang Linux.
Proudly powered by Debian. Hosted by Linode.
Debian is a registered trademark of Software in the Public Interest, Inc.

Debian Logo