VSIDO Support > Conky

Conky Support, Codes and Screenshots

(1/91) > >>

Sector11:
I do this in the form of a "screenshot thread" as well.
... 
Three new VSIDO installs:
[*]/dev/sda1 = M-1 - will remain "stock"
[*]/dev/sda8 = M-8 - my play land
[*]/dev/sda10 = M-10 - will be my working system when M-8 is right
The conky on the left comes to you because of mrpeachy's hard work with LUA.

--- Code: ---# To use #! in a conky use: ${exec echo '#!'}
# ${font DS\-Digital:bold:size=24}
# OS: ${pre_exec lsb_release -d | cut -c14-50}
# killall conky && conky -c /media/5/Conky/Chronograph_mrpeachy.conky &
# Thank you - mrpeachy

###  Begin Window Settings  ##################################################
# Create own window instead of using desktop (required in nautilus)
own_window yes
own_window_type normal
own_window_transparent yes
own_window_hints undecorated,below,skip_taskbar,skip_pager
#own_window_colour gray
own_window_class Conky
own_window_title Chronograph mrpeachy

# 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

### 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 normal
 own_window_argb_visual no # Options: yes or no

### When ARGB visuals are enabled, this use this to modify the alpha value
### Use: own_window_type normal
### Use: own_window_transparent no
### Valid range is 0-255, where 0 is 0% opacity, and 255 is 100% opacity.
# own_window_argb_value 0

minimum_size 340 700  ##420 420   ## width, height
maximum_width 340     ##420       ## width

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

alignment tl #ml
####################################################  End Window Settings  ###
###  Font Settings  ##########################################################
# Use Xft (anti-aliased font and stuff)
use_xft yes
xftfont Monofur:bold:size=9
#xftfont CorporateMonoExtraBold:size=9
#xftfont White Rabbit:size=9

# X font when Xft is disabled, you can pick one with program xfontsel
#font 5x7
#font 6x10
#font 7x13
#font 8x13
#font 9x15
#font *mintsmild.se*
#font -*-*-*-*-*-*-34-*-*-*-*-*-*-*

# Alpha of Xft font. Must be a value at or between 1 and 0 ###
xftalpha 1
# Force UTF8? requires XFT ###
override_utf8_locale yes

uppercase no
######################################################  End Font Settings  ###
###  Color Settings  #########################################################
draw_shades no
default_shade_color black

draw_outline no # amplifies text if yes
default_outline_color black

default_color DCDCDC #220 220 220 Gainsboro ## CCAA7A # chronograph-mrpeachy
color0 8FBC8F #143 188 143 DarkSeaGreen
color1 778899 #119 136 153 LightSlateGray
color2 FF8C00 #255 140   0 DarkOrange
color3 7FFF00 #127 255   0 Chartreuse
color4 FFA07A #255 160 122 LightSalmon
color5 FFDEAD #255 222 173 NavajoWhite
color6 00BFFF #  0 191 255 DeepSkyBlue
color7 00FFFF #  0 255 255 Cyan
color8 FFFF00 #255 255   0 Yellow
color9 B22222 #178  34  34 FireBrick
#####################################################  End Color Settings  ###
###  Borders Section  ########################################################
draw_borders no
# Stippled borders?
stippled_borders 0
# border margins
border_inner_margin 5
border_outer_margin 0
# border width
border_width 0
# graph borders
draw_graph_borders yes #no
#default_graph_size 15 40
#####################################################  End Borders Secton  ###
###  Miscellaneous Section  ##################################################
# Boolean value, if true, Conky will be forked to background when started.
background yes

# Adds spaces around certain objects to stop them from moving other things
# around, this only helps if you are using a mono font
# Options: right, left or none
use_spacer none

# Default and Minimum size is 256 - needs more for single commands that
# "call" a lot of text IE: bash scripts
text_buffer_size 256

# Subtract (file system) buffers from used memory?
no_buffers yes

# change GiB to G and MiB to M
short_units yes

# Like it says, ot pads the decimals on % values
# doesn't seem to work since v1.7.1
pad_percents 2

#   Maximum size of user text buffer, i.e. layout below TEXT line in config file
#  (default is 16384 bytes)
# max_user_text 16384

# Desired output unit of all objects displaying a temperature. Parameters are
# either "fahrenheit" or "celsius". The default unit is degree Celsius.
# temperature_unit Fahrenheit

##############################################  End Miscellaneous Section  ###
###  LUA Settings  ###########################################################
## Above and After TEXT - requires a composite manager or blinks.
##
# lua_load /media/5/Conky/LUA/draw-bg.lua
#TEXT
# ${lua conky_draw_bg 125 0 0 0 0 0x000000 0.3}
#
## ${lua conky_draw_bg corner_radius x_position y_position width height color alpha}
##
## OR Both above TEXT (No composite manager required - no blinking!)
#
#--------------------------------
lua_load /media/5/Conky/LUA/draw-bg.lua
#lua_draw_hook_pre draw_bg 20 0 0 0 0 0x000000 0.5
#lua_draw_hook_post draw_bg 20 0 0 0 0 0x000000 0.5
#
# TEXT
# ${lua conky_draw_bg 20 0 0 0 0 0x000000 0.3}
##
#
################### chronograph-mrpeachy #######################################
#lua_load /media/5/Conky/LUA/chronograph-mrpeachy.lua
lua_load /media/5/Conky/LUA/chronograph-mrpeachy_24.lua
lua_draw_hook_post main
#lua_draw_hook_pre main

### v9000 Weather ############################################################
lua_load ~/v9000/v9000.lua
lua_draw_hook_pre weather
#lua_draw_hook_post weather
lua_load /media/5/Conky/LUA/crono_mrp.template.lua
############################################################ v9000 Weather ###
### mount.lua ################################################################
lua_load /media/5/Conky/LUA/mounted.lua
### mount.lua ### INSTRUCTIONS ##############################################
#load script
#lua_load ~/path_to/mounted.lua
# first lua command below text:
# ${lua get_mounted_data interval}, where interval is a number.  This starts data gathering
# to get output:
# ${lua mount partition_number data_type}, where partition number is a number
# data_type can be
# total - shows total number of partitions mounted, requires a partition_number
#       - - also, use 1, could be used in an if_match
# fsys - shows filesystem
# size - shows space used in appropriate units
# free - shows free space in appropriate units
# use% - shows % used
# mount - shows mountpoint


# ${color6}${lua mount 7 fsys 9}${goto 100}${color8}${lua mount 7 size}${goto 150}${color7}${lua mount 7 free}${goto 200}${color1}${lua mount 7 use%}${goto 260}${color}${lua mount 7 mount}
# ${color6}${lua mount 8 fsys 9}${goto 100}${color8}${lua mount 8 size}${goto 150}${color7}${lua mount 8 free}${goto 200}${color1}${lua mount 8 use%}${goto 260}${color}${lua mount 8 mount}

################################################################ mount.lua ###
#######################################################  End LUA Settings  ###
# The all important - How often conky refreshes.
# If you have a "Crey" try: 0.2 - smokin' - but watch the CPU useage go UP!
update_interval 1
# ${lua conky_draw_bg 20 0 0 0 0 0x000000 0.5}
TEXT
${lua get_mounted_data 3}${lua conky_draw_bg 20 0 0 0 0 0x000000 0.5}












































${color1}${cpubar cpu4 1,340}${color}
${color3}Hosted by: ${color}${nodename}${goto 160}${color3}for the past: ${color}${uptime_short}
${alignc}${color3}Kernel: ${color}${kernel}
${alignc}${color3}CPU Usage ${color7}1: ${color}${if_match ${cpu cpu1} < 10}  ${cpu cpu1}\
${else}${if_match ${cpu cpu1} < 100} ${cpu cpu1}\
${else}${cpu cpu1}\
${endif}${endif} %\
 ${color7}2: ${color}${if_match ${cpu cpu2} < 10}  ${cpu cpu2}\
${else}${if_match ${cpu cpu2} < 100} ${cpu cpu2}\
${else}${cpu cpu2}\
${endif}${endif} %\
 ${color7}3: ${color}${if_match ${cpu cpu3} < 10}  ${cpu cpu3}\
${else}${if_match ${cpu cpu3} < 100} ${cpu cpu3}\
${else}${cpu cpu3}\
${endif}${endif} %\
 ${color7}Avg: ${color}${if_match ${cpu cpu0} < 10}  ${cpu cpu0}\
${else}${if_match ${cpu cpu0} < 100} ${cpu cpu0}\
${else}${cpu cpu0}\
${endif}${
--- End code ---

Sector11:
By design, in a terminal conky will start the default conky at: etc/conky/conky.conf.

Now if a user, or the creator of a distro, installs/includes conky they use the "user" default location:
--- Code: ---~/.conkyrc
--- End code ---
and that will be the conky that
--- Code: ---conky
--- End code ---
runs. This is the case with VSIDO, the default conky is ~/.conkyrc

But what if you want to run 2, 3, 4,  5 - 10 conkys.

Use a bash script: ssc.sh

--- Code: ---#!/bin/sh
# click to start, click to stop
if pidof conky | grep [0-9] > /dev/null
  then
    exec killall conky
  else
    sleep 30  # sleep not required for xfce on startup - 30 or more for others
    conky -c ~/Conky/conky1 &
    conky -c ~/Conky/conky2 &
    conky -c ~/Conky/conky3 &
    conky -c ~/Conky/conky4 &
  exit
fi
--- End code ---

The sleep command can be used like this:

--- Code: ---(sleep 30s && conky -c /Conky/conky1) &
(sleep 30s && conky -c /Conky/conky2) &
(sleep 30s && conky -c /Conky/conky3) &
(sleep 30s && conky -c /Conky/conky4) &
--- End code ---
but then you need it for every command - which will come in handy in a second.

With ssc.sh you can put it in your OpenBox autostart as well IF you make it the LAST command, it will NOT return to autostart.sh:

--- Code: ---## Start conkys
(sleep 2s && /media/5/Conky/OBMenuS/ssc.sh) &
exit

--- End code ---

You can assign it to a tint2 clock click function:

--- Code: ---clock_rclick_command = /media/5/Conky/OBMenuS/ssc.sh  ## start/stop all my conkys
--- End code ---

you can put an entry in OpenBox:

--- Code: ---Label: ssc - SSC - Srart|Stop Conky or Bob's your Uncle (anything you want)
Execute: /media/5/Conky/OBMenuS/ssc.sh
--- End code ---
Create an icon on your desktop or Xfce4 Menu and use it.  Run it as a start-up in Xfce4

Since it boots your conkys at start up:
[list=*]
[*]activating it once while all conkys are running - - - will "killall conky",[/*]
[*]activating it again - - - will restart ALL conkys.[/*]
[/list]

Now the multiple desktop trick.

This came to me by way of an old friend "mobilediesel" gotta find him and invite him here.

EDIT: I forgot another VERY important part of this.
There is a line in conky above TEXT, similar to if not that same as:


--- Code: ---own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager
--- End code ---
A lot of people use it because it's what they found in the internet  or in the default conky.

sticky - means the conky is on every desktop.  So for the conkys that you do NOT want on all desktops, drop the sticky.

--- Code: ---own_window_hints undecorated,below,skip_taskbar,skip_pager
--- End code ---

Next ... Install wmctrl

--- Code: ---sudo apt-get install wmctrl
--- End code ---


--- Quote ---Wmctrl is a command line tool to interact with an
EWMH/NetWM compatible X Window Manager (examples include
Enlightenment, icewm, kwin, metacity, and sawfish).

Wmctrl provides command line access to almost all the features
defined in the EWMH specification. For example it can maximize
windows, make them sticky, set them to be always on top. It can
switch and resize desktops and perform many other useful
operations.
--- End quote ---

Take a look, 13 conkys running on 4 desktops and only one file to edit to change what's running: ssc.sh



By trial and error I discovered that 'wmctrl' does not like going from desktop 0 to desktop 1, etc, and then back to desktop 0.  Conky counts desktops: 1, 2, 3, 4, etc but wmctrl counts 0, 1, 2, 3, etc.  And here is where sleep comes in for every command,  Linux reads the bash script lines one at a time and actions them in order, so if there are two lines say lines 7 and 8:


--- Code: ---sleep 10 ....
sleep 2 ...
--- End code ---
... the sleep 2 line is activates 2 seconds after the scripts starts, not 12 seconds as I once thought.

If your conkys on any particular desktop start slow because they need to gather information, ie weather, the "next" desktop change needs a sleep time to make sure the information is displayed "before" changing the desktop to the next section.  You'll need to test and tweak things to get it right.

So here it is, my "SSC.sh" script, as you see I have commented out conkys but left them there for a bit because I change things occasionally.

--- Code: --- #!/bin/bash
 # click to start, click to stop

if pidof conky | grep [0-9] > /dev/null
  then
exec killall conky
  else
     #conky -c /media/5/conky/test274.johnraff.conky &
     #conky -c /media/5/conky/test275.johnraff.conky &
#conky -c /media/5/Conky/S11_v9_R.conky &
#conky -c /media/5/conky/test287.memory.conky &

# on desktop 4 only
(sleep 1s && wmctrl -s 3 && conky -c /media/5/conky/Didier-T/conkyrc_meteo_graph_baro) &
(sleep 1s && wmctrl -s 3 && conky -c /media/5/conky/Didier-T/conkyrc_meteo_lua) &

# on desktop 3 only
(sleep 10s && wmctrl -s 2 && conky -c /media/5/Conky/TeoWeatherClock/Teo_Clock_2.conky) &
(sleep 10s && wmctrl -s 2 && conky -c /media/5/Conky/jed_greyclock_conkyrc) &
#(sleep 10s && wmctrl -s 2 && conky -c /media/5/Conky/Chronograph_mrpeachy.conky) &
#(sleep 10s && wmctrl -s 2 && conky -c /media/5/conky/Didier-T/conkyrc_meteo_graph_baro) &
#(sleep 10s && wmctrl -s 2 && conky -c /media/5/conky/Didier-T/conkyrc_meteo_lua) &

# on desktop 2 only (change to 5s if using desktop 3)
(sleep 18s && wmctrl -s 1 && conky -c /media/5/Conky/S11_Dates.conky) &
(sleep 18s && wmctrl -s 1 && conky -c /media/5/Conky/S11_VNS.conky) &
(sleep 18s && wmctrl -s 1 && conky -c /media/5/Conky/S11_Rem_Cal.conky) &
(sleep 18s && wmctrl -s 1 && conky -c /media/5/Conky/S11_Disk_Activity.conky) &
#(sleep 18s && wmctrl -s 1 && conky -c /media/5/Conky/S11_v9_SM.conky) &
#(sleep 18s && wmctrl -s 1 && conky -c /media/5/Conky/S11_mrp_FSYS.conky) &
(sleep 18s && wmctrl -s 1 && conky -c /media/5/Conky/S11_v9_H.conky) &
(sleep 18s && wmctrl -s 1 && conky -c /media/5/Conky/S11_v9_R.conky) &

# on desktop 1 only (change to 10s if using desktop 3)
(sleep 25s && wmctrl -s 0 && conky -c /media/5/Conky/VO_Radiotray.conky) &
(sleep 25s && wmctrl -s 0 && conky -c /media/5/Conky/Chronograph_mrpeachy.conky) &
#(sleep 25s && wmctrl -s 0 && conky -c /media/5/Conky/TeoWeatherClock/Teo_Clock_2.conky) &
#(sleep 25s && wmctrl -s 0 && conky -c /media/5/Conky/S11_Chronograph.conky) &
#(sleep 25s && wmctrl -s 0 && conky -c /media/5/Conky/S11_coin.conky) &

# on all desktops
(sleep 15s && wmctrl -s 0 && conky -c /media/5/Conky/S11_email.conky) &
  exit
fi
--- End code ---

If you have questions, just ask.

Sector11:
Create two bash files "light" and "dark" put them in your path (~/bin) and make them executable.

These are just some setups I have (one is default stuff) so you'll have to change things to match your setup.  These batch files also assume you have conky and tint2 running in one form or another

Light background (my bash file names are different I have light/dark bash scripts for another purpose)



~/bin/light

--- Code: ---#!/bin/bash
# ----------
# Light backgrounds

 (sleep 1s && killall tint2 && tint2) &
 (sleep 1s && killall conky && conky) &
exit 0

--- End code ---



~/bin/dark

--- Code: ---#!/bin/bash
# ----------
# dark backgrounds

  (sleep 1s && killall tint2 && tint2 -c  ~/.config/tint2/t2launchrc) &
  (sleep 1s && killall tint2 && tint2 -c  ~/.config/tint2/tint2rc_bot) &
    (sleep 1s && killall conky && conky -c ~/.conkyrc.vsido) &
exit 0

--- End code ---

Now just open a terminal and type "light" or "dark"

Or in OpenBox two menu items:

--- Code: ---label: Dark
Execute ~/bin/dark
--- End code ---


--- Code: ---label: Light
Execute ~/bin/light
--- End code ---

Of course I get around light/dark walls by using a shadow background, but it's not necessary.  See the light wallpaper above - on a dark background the shadow cannot be seen.

OH OH!!!  I need to use The ORB now...  new changes coming.

Sector11:
If you find interesting links please lets me know I'll add it/them.

Official Conky Sources
Conky Home
Conky Documentation
Conky Manual
Config Settings (above TEXT)
Conky Variables (below TEXT)
Conky Wiki!

Interesting Links
ConkyGUI - its aim is to speed the editing of the conky config files.
blendmaster.name - Conky and Compiz

Conky Threads on various forums (lots of samples)

#! Crunchbang - they can't have just one. Noooooo - conky isn't interesting enough.
The New Monster Conky Thread
My Conky Config - Archive
Conky Help - Archive
August 2011 Conky Thread - Archive
September 2011 Conky Thread - Archive
October 2011 Conky Thread - Archive
November 2011 Conky Thread - Archive
December 2011 Conky Thread - Archive
Conky weather scripts using Accuweather/WUnderground/NWS/Weather.com - TeoBigusGeekus
interactive conky - mrpeachy
weather in conky (v9000 LUA script) - mrpeachy

ARCH Linux
conky configs and screenshots!
Debian Post your conkyrc + screenshot
Fedora Conky & .conkyrc - Examples & Screenshots

Ubuntu
Post your .conkyrc files w/ screenshots
Conky Lua & Cairo Troubleshooting
LinuxMint Conky Showoff thread

openSUSE
How to install conky with both cairo and imlib2 in lua bingdings -- Thread
 malcolmlewis: Python/openSUSE_Factory:
conkyForecast
conkygooglecalendar
conkykeyring

Conky-Artists-Group - at deviantart.com
deviantart·com - Founder: Londonali1010

arpinux, BigRZA, Blitz-Bomb, Chicoray, Elchacmool, ElderVLaCoste, Freeazy, giancarlo64, Helmuthdu, Iacoporosso, LaGaDesk, minteastwood, Mloodszy, mmesantos1, Psyjunta, Pukinpr, Shamen456, Votritis, vrkalak, wlourf

Other links (blogs, wikis, websites, etc.)

! CrunchBang Conky Wiki – An excellent reference.
ARCHWiki: Conky - Also and excellent source.
todo.txt-cli
Gentoo Linux Conky Howto

Blogs:
Lusule Online:
[list=*]
[*]How To: Configuring Conky[/*]
[*]How To: Modify my .conkyrc[/*]
[*]My .conkyrc file[/*]
[/list]

Lua Links
Blogs:
The Peachy Blog
Blog about conky & Lua -- by Wlourf

Links
lua API -- sourceforge
The Programing Language Lua
About Lua
Lua (programming language) -- wikipedia
Lua-users wiki - Tutorial
Lua: for the beginner, italia, français, español, Deutsche -- a German site, very nice
Lua-Cairo Binding

Cairo links
Official page of the Cairo 2D library
Some samples
A tutorial for beginners
The library manual
Available functions in the Lua binding of Cairo

Français
Vos Conkyrc (forum #! Crunchbang (Fr))
(1) Conky : Postez vos conkyrc ou certaines parties intéressantes (forum Ubuntu - closed)
(2) Conky : Postez vos conkyrc ou certaines parties intéressantes (forum Ubuntu  - closed)
(3) Conky : Postez vos conkyrc ou certaines parties intéressantes (forum Ubuntu  - closed)
(4) Conky : Postez vos conkyrc ou certaines parties intéressantes (forum Ubuntu)
Postez vos scripts Lua pour Conky ! (forum Ubuntu)
Conky - Partage de scripts (forum Fedora)

Español
Posteen sus Conky's

Deutsch
Mandriva User.de - Conky Inhalt

Russian
Тема: Постим свой .conkyrc со скриншотом

Italian
Posta il tuo .conkyrc & png

Sector11:
ragamatrix posted a nice horizontal conky using mrpeachy's v9000 script for a widescreen monitor. Imagine my surprise when I found it was based on one of my templates.

His screenshot

I don't have a screen so I had a shot at redoing it to fit my 1280 screen.  I added a white circle where the moon is since it was a new moon the day I made it and that space was empty, it is exactly the same size as the moon image being called so you'll be able to see the unseen part of the moon.

Under construction: · · · · · · · And the finished work:


I also put all the controls back in place so changing one number changes a whole "group" ----

The conkys above use:

--- Code: ----- horizontal calc added to each days "X" values
dataxp=85 -- ???+(dataxp*1)

--- End code ---

change that one number:

--- Code: ----- horizontal calc added to each days "X" values
dataxp=75 -- ???+(dataxp*1)

--- End code ---
and things move closer:


Unfortunately it's not as easy with the draw-bg.lua script.  I also dropped the ${voffset -500} line from the conky by putting all the lua calls on one line. The ending \ is what does that.

The conky:

--- Code: ---# killall conky && conky -c /media/5/conky/conkybarre_v9000 &
# by ragamatrix - Jan 2013
# -- Paramètres Conky Météo -- #
# Text alignment, other possible values are commented
alignment tl
#alignment top_right
#alignment bottom_left
#alignment bottom_right
# -- Conky settings -- #
background yes
update_interval 1
cpu_avg_samples 2
net_avg_samples 2
override_utf8_locale yes
double_buffer yes
no_buffers yes
text_buffer_size 265 #2048
imlib_cache_size 0
# -- Window specifications -- #
own_window yes
own_window_type override
own_window_transparent yes
own_window_hints undecorated,sticky,skip_taskbar,skip_pager,below
show_graph_range no
show_graph_scale no
short_units yes
own_window_class Conky
border_inner_margin 0
border_outer_margin 0
# -- Graphics settings -- #
draw_shades no
draw_outline no
draw_borders no
draw_graph_borders yes
# -- Colours -- #
default_color 00BFFF #  0 191 255 DeepSkyBlue
color0 FFDEAD #255 222 173 NavajoWhite
color1 7FFF00 #127 255   0 Chartreuse
color2 778899 #119 136 153 LightSlateGray
color3 FF8C00 #255 140   0 DarkOrange
color4 B0E0E6 #Powder Blue #F0FFFF #240 255 255 Azure
color5 FFDEAD #255 222 173 NavajoWhite
color6 7B68EE #123 104 238 MediumSlateBlue
color7 00FFFF #  0 255 255 Cyan
color8 FFFF00 #255 255   0 Yellow
color9 FF0000 #255   0   0 Red
# Gap between borders of screen and text
# same thing as passing -x at command line

gap_x 5 # left-right
gap_y 5 # up-down
# Minimum size of text area

minimum_size 1900 86  #Taille minimum (px) ; largeur / hauteur
maximum_width 1900  #Largeur maximum (px)
#out_to_console no
# Force UTF8? note that UTF8 support required XFT
#override_utf8_locale yes
# Stippled borders?
#stippled_borders 0
# This is the number of times Conky will update before quitting.
# Set to zero to run forever.
#total_run_times 0
# set to yes if you want all text to be in uppercase
uppercase no

# Add spaces to keep things from moving about?  This only affects certain objects.
use_spacer right #left right none

# -- Text settings -- #
# Use Xft?
use_xft yes
xftalpha 1.0
#xftfont DejaVu:style=Bold:size=6
xftfont Monofur:bold:size=12

# -- Lua load -- #
lua_load ~/v9000/v9000.lua
lua_draw_hook_pre weather
lua_load /media/5/conky/LUA/template_meteo_barre.lua
lua_load /media/5/Conky/LUA/draw-bg.lua
##############################################

TEXT
${lua conky_draw_bg 15 0 0 480 87 0x000000 0.5}\
${lua conky_draw_bg 15 482 0 75 87 0x000000 0.5}\
${lua conky_draw_bg 15 567 0 75 87 0x000000 0.5}\
${lua conky_draw_bg 15 652 0 75 87 0x000000 0.5}\
${lua conky_draw_bg 15 737 0 75 87 0x000000 0.5}\
${lua conky_draw_bg 15 822 0 75 87 0x000000 0.5}\
${lua conky_draw_bg 15 907 0 75 87 0x000000 0.5}\
${lua conky_draw_bg 15 992 0 75 87 0x000000 0.5}\
${lua conky_draw_bg 15 1076 0 75 87 0x000000 0.5}\
${lua conky_draw_bg 15 1160 0 75 87 0x000000 0.5}\
${lua conky_draw_bg 30 105 5 60 60 0xffffff 0.2}

--- End code ---

and the LUA script (with the 85 back in place), imagine my surprise when I saw it - one of mine modified.  :D

--- Code: -----[[
 The latest script is a lua only weather script. aka: v9000
 http://crunchbang.org/forums/viewtopic.php?id=16100

 the file:
 http://dl.dropbox.com/u/19008369/weatheragain9000.lua.tar.gz

 mrppeachys LUA Tutorial
 http://crunchbang.org/forums/viewtopic.php?id=17246
]]
_G.weather_script = function()--#### DO NOT EDIT THIS LINE ##############
--these tables hold the coordinates for each repeat do not edit #########
top_left_x_coordinate={}--###############################################
top_left_y_coordinate={}--###############################################
--#######################################################################
--SET DEFAULTS ##########################################################
--set defaults do not localise these defaults if you use a seperate display script
default_font="Monofur"--font must be in quotes
default_font_size=12
default_color=0xB0E0E6 --Powder Blue
default_alpha=1 --fully opaque
default_image_width=40
default_image_height=40
-- ## New Options ###
default_face="bold"
-- "normal" for normal/normal
-- "bold" for normal/bold
-- "italic" for italic/normal
-- "bolditalic" for italic/bold
--END OF DEFAULTS #######################################################
--START OF WEATHER CODE -- START OF WEATHER CODE -- START OF WEATHER CODE

-- ======================================================================
-- SUN & MOON RISE ------------------------------------------------------
   out({fs=15,x=10,y=14,txt="Sun"})
     out({fs=15,x=50,y=14,txt="|"})
     out({fs=15,x=60,y=14,txt="Moon"})
   out({c=0xF0FFFF,x=10,y=30,txt="Rise "})
     out({c=0xF0FFFF,fs=15,x=50,y=30,txt="|"})
      out({c=0xFFFF00,x=10,y=45,txt=sun_rise_24[1]})
   out({c=0xF0FFFF,x=60,y=30,txt="Rise"})
     out({c=0xFFFF00,fs=15,x=50,y=45,txt="|"})
      out({c=0xFFFF00,x=60,y=45,txt=moon_rise_24[1]})
-- SUN & MOON SET -------------------------------------------------------
   out({c=0xF0FFFF,x=10,y=65,txt="Set"})
     out({c=0xF0FFFF,fs=15,x=50,y=65,txt="|"})
      out({x=10,y=80,txt=sun_set_24[1]})
   out({c=0xF0FFFF,x=60,y=65,txt="Set"})
     out({fs=15,x=50,y=80,txt="|"})
      out({x=60,y=80,txt=moon_set_24[1]})
-- ======================================================================
-- MOON PHASE - CENTRE --------------------------------------------------
   image({x=105,y=05,w=60,h=60,file=moon_icon[1]})
--   image({x=105,y=05,w=60,h=60,file="/media/5/Conky/images/red+x.png"})
   --out({c=0xF0FFFF.0,x=190,y=235,txt=moon_phase[1]})
-- ======================================================================
-- CURRENT FOR TODAY - SEE TOP LEFT -------------------------------------
   image({x=170,y=05,w=60,h=60,file=now["weather_icon"]})
--   image({x=170,y=05,w=60,h=60,file="/media/5/Conky/images/red+x.png"})
   out({x=170,y=70,txt="T"})
      out({c=0xFF8C00,x=180,y=70,txt=now["temp"]})
   out({x=205,y=70,txt="±"})
      out({c=0xF0FFFF,x=215,y=70,txt=now["feels_like"]})
-- ======================================================================
-- FORECAST FOR TODAY ---------------------------------------------------
out({fs=15,x=240,y=14,txt="Forecast"})
   image({x=300,y=20,w=50,h=50,file=weather_icon[1]})
--   image({x=300,y=20,w=50,h=50,file="/media/5/Conky/images/red+x.png"})
-- out({c=0xF0FFFF,x=300,y=23,txt="↑ "})
     out({c=0xFF8C00,fs=14,x=300,y=23,txt=high_temp[1]})
-- out({c=0xF0FFFF,x=330,y=23,txt="↓ "})
     out({c=0x00BFFF,fs=14,x=330,y=23,txt=low_temp[1]})
-- Humidity -------------------------------------------------------------
   out({c=0xF0FFFF,x=240,y=30,txt="Hum"})
      out({x=270,y=30,txt=now["humidity"].."%"})
-- Dew Point ------------------------------------------------------------
   out({c=0xF0FFFF,x=240,y=42,txt="DP"})
      out({x=270,y=42,txt=now["dew_point"].."°"})
-- Chance of Rain -------------------------------------------------------
   out({c=0xF0FFFF,x=240,y=54,txt="CR?"})
      out({x=270,y=54,txt=precipitation[1].."%"})
-- Cloud Cover
   out({c=0xF0FFFF,x=240,y=66,txt="CC"})
      out({x=270,y=66,txt=cloud_cover[1].."%"})
-- Ceiling
--   out({c=0xF0FFFF,x=240,y=65,txt="Ceil"})
--     out({x=270,y=65,txt=now["ceiling"]})
-- BOTTOM
-- UV -------------------------------------------------------------------
   out({c=0xF0FFFF,x=100,y=82,txt="UVI"})
     out({x=130,y=82,txt=uv_index_num[1]})
       out({x=155,y=82,txt=uv_index_txt[1]})
-- Barometric Pressure --------------------------------------------------
   out({c=0xF0FFFF,x=220,y=82,txt="BarP"})
out({x=260,y=82,txt=now["pressure_mb"].." mb"})
-- ======================================================================
-- FORECAST FOR NEXT 3 HOURS --------------------------------------------
-- 1st hour
  image({w=30,h=30,x=360,y=10,file=now["fc_hour1_wicon"]})
--  image({w=30,h=30,x=360,y=10,file="/media/5/Conky/images/red+x.png"})
  out({x=360,y=12,txt=now["fc_hour1_time_24"]..":00"})
  out({c=0xF0FFFF,x=365,y=45,txt=now["fc_hour1_temp"]})
-- 2nd hour
  image({w=30,h=30,x=400,y=10,file=now["fc_hour2_wicon"]})
--  image({w=30,h=30,x=400,y=10,file="/media/5/Conky/images/red+x.png"})
  out({x=400,y=12,txt=now["fc_hour2_time_24"]..":00"})
  out({c=0xF0FFFF,x=405,y=45,txt=now["fc_hour3_temp"]})
-- 3rd hour
  image({w=30,h=30,x=440,y=10,file=now["fc_hour3_wicon"]})
--  image({w=30,h=30,x=440,y=10,file="/media/5/Conky/images/red+x.png"})
out({x=440,y=12,txt=now["fc_hour3_time_24"]..":00"})
out({c=0xF0FFFF,x=445,y=45,txt=now["fc_hour3_temp"]})
-- ======================================================================
-- WIND INFORMATION for today--------------------------------------------
   image({w=30,h=30,x=360,y=50,file=now["wind_icon"]})
-- image({w=30,h=30,x=360,y=50,file="/media/5/Conky/images/red+x.png"})
   out({fs=14,x=400,y=61,txt=now["wind_deg"]})
   out({fs=14,x=442,y=62,txt=now["wind_nesw"]})
--   out({x=333,y=265,txt="@"})
      out({fs=14,x=400,y=76,txt=now["wind_km"]})

---------------------------------------------- END FORECAST FOR TODAY ---
-- ======================================================================

-- forecast calculations
-- horizontal text calcs
dataxm=497
dataxn=527
dataxd=510
dataxt=535
dataxrs=503
-- vertical text calcs
dataymd=13
datayn=25
datayh=35
datayl=60
datayr=73
datays=83
-- image calcs
imx=490
imy=25
-- horizontal calc added to each days "X" values
dataxp=85 -- ???+(dataxp*1)

-- FORECAST for the next 9 days

-- Forecast day 2 -- x = l|r  y = u|d
out({x=dataxm,y=dataymd,txt=forecast_month_short[2]})
 out({x=dataxn,y=dataymd,txt=forecast_date[2]})
  out({x=dataxd,y=datayn,txt=forecast_day_short[2]})
 image({x=imx,y=imy,file=weather_icon[2]})
-- image({x=imx,y=imy,file="/media/5/Conky/images/red+x.png"})
out({c=0xFF8C00,x=dataxt,y=datayh,txt=high_temp[2]})
out({c=0x00BFFF,x=dataxt,y=datayl,txt=low_temp[2]})
 out({c=0xFFFF00,x=dataxrs,y=datayr,txt=sun_rise_24[2]})
 out({x=dataxrs,y=datays,txt=sun_set_24[2]})

-- Forecast day 3 -- x = l|r  y = u|d
out({x=dataxm+(dataxp*1),y=dataymd,txt=forecast_month_short[3]})
 out({x=dataxn+(dataxp*1),y=dataymd,txt=forecast_date[3]})
  out({x=dataxd+(dataxp+1),y=datayn,txt=forecast_day_short[3]})
 image({x=imx+(dataxp*1),y=imy,file=weather_icon[3]})
-- image({x=imx+(dataxp*1),y=imy,file="/media/5/Conky/images/red+x.png"})
out({c=0xFF8C00,x=dataxt+(dataxp*1),y=datayh,txt=high_temp[3]})
out({c=0x00BFFF,x=dataxt+(dataxp*1),y=datayl,txt=low_temp[3]})
 out({c=0xFFFF00,x=dataxrs+(dataxp*1),y=datayr,txt=sun_rise_24[3]})
 out({x=dataxrs+(dataxp*1),y=datays,txt=sun_set_24[3]})

-- Forecast day 4 -- x = l|r  y = u|d
out({x=dataxm+(dataxp*2),y=dataymd,txt=forecast_month_short[4]})
 out({x=dataxn+(dataxp*2),y=dataymd,txt=forecast_date[4]})
  out({x=dataxd+(dataxp*2),y=datayn,txt=forecast_day_short[4]})
 image({x=imx+(dataxp*2),y=imy,file=weather_icon[4]})
-- image({x=imx+(dataxp*2),y=imy,file="/media/5/Conky/images/red+x.png"})
out({c=0xFF8C00,x=dataxt+(dataxp*2),y=datayh,txt=high_temp[4]})
out({c=0x00BFFF,x=dataxt+(dataxp*2),y=datayl,txt=low_temp[4]})
 out({c=0xFFFF00,x=dataxrs+(dataxp*2),y=datayr,txt=sun_rise_24[4]})
 out({x=dataxrs+(dataxp*2),y=datays,txt=sun_set_24[4]})

-- Forecast day 5 -- x = l|r  y = u|d
out({x=dataxm+(dataxp*3),y=dataymd,txt=forecast_month_short[5]})
 out({x=dataxn+(dataxp*3),y=dataymd,txt=forecast_date[5]})
  out({x=dataxd+(dataxp*3),y=datayn,txt=forecast_day_short[5]})
 image({x=imx+(dataxp*3),y=imy,file=weather_icon[5]})
-- image({x=imx+(dataxp*3),y=imy,file="/media/5/Conky/images/red+x.png"})
out({c=0xFF8C00,x=dataxt+(dataxp*3),y=datayh,txt=high_temp[5]})
out({c=0x00BFFF,x=dataxt+(dataxp*3),y=datayl,txt=low_temp[5]})
 out({c=0xFFFF00,x=dataxrs+(dataxp*3),y=datayr,txt=sun_rise_24[5]})
 out({x=dataxrs+(dataxp*3),y=datays,txt=sun_set_24[5]})

-- Forecast day 6 -- x = l|r  y = u|d
out({x=dataxm+(dataxp*4),y=dataymd,txt=forecast_month_short[6]})
 out({x=dataxn+(dataxp*4),y=dataymd,txt=forecast_date[6]})
  out({x=dataxd+(dataxp*4),y=datayn,txt=forecast_day_short[6]})
 image({x=imx+(dataxp*4),y=imy,file=weather_icon[6]})
-- image({x=imx+(dataxp*4),y=imy,file="/media/5/Conky/images/red+x.png"})
out({c=0xFF8C00,x=dataxt+(dataxp*4),y=datayh,txt=high_temp[6]})
out({c=0x00BFFF,x=dataxt+(dataxp*4),y=datayl,txt=low_temp[6]})
 out({c=0xFFFF00,x=dataxrs+(dataxp*4),y=datayr,txt=sun_rise_24[6]})
 out({x=dataxrs+(dataxp*4),y=datays,txt=sun_set_24[6]})

-- Forecast day 7 -- x = l|r  y = u|d
out({x=dataxm+(dataxp*5),y=dataymd,txt=forecast_month_short[7]})
 out({x=dataxn+(dataxp*5),y=dataymd,txt=forecast_date[7]})
  out({x=dataxd+(dataxp*5),y=datayn,txt=forecast_day_short[7]})
 image({x=imx+(dataxp*5),y=imy,file=weather_icon[7]})
-- image({x=imx+(dataxp*5),y=imy,file="/media/5/Conky/images/red+x.png"})
out({c=0xFF8C00,x=dataxt+(dataxp*5),y=datayh,txt=high_temp[7]})
out({c=0x00BFFF,x=dataxt+(dataxp*5),y=datayl,txt=low_temp[7]})
 out({c=0xFFFF00,x=dataxrs+(dataxp*5),y=datayr,txt=sun_rise_24[7]})
 out({x=dataxrs+(dataxp*5),y=datays,txt=sun_set_24[7]})

-- Forecast day 8 -- x = l|r  y = u|d
out({x=dataxm+(dataxp*6),y=dataymd,txt=forecast_month_short[8]})
 out({x=dataxn+(dataxp*6),y=dataymd,txt=forecast_date[8]})
  out({x=dataxd+(dataxp*6),y=datayn,txt=forecast_day_short[8]})
 image({x=imx+(dataxp*6),y=imy,file=weather_icon[8]})
-- image({x=imx+(dataxp*6),y=imy,file="/media/5/Conky/images/red+x.png"})
out({c=0xFF8C00,x=dataxt+(dataxp*6),y=datayh,txt=high_temp[8]})
out({c=0x00BFFF,x=dataxt+(dataxp*6),y=datayl,txt=low_temp[8]})
 out({c=0xFFFF00,x=dataxrs+(dataxp*6),y=datayr,txt=sun_rise_24[8]})
 out({x=dataxrs+(dataxp*6),y=datays,txt=sun_set_24[8]})

-- Forecast day 9 -- x = l|r  y = u|d
out({x=dataxm+(dataxp*7),y=dataymd,txt=forecast_month_short[9]})
 out({x=dataxn+(dataxp*7),y=dataymd,txt=forecast_date[9]})
  out({x=dataxd+(dataxp*7),y=datayn,txt=forecast_day_short[9]})
 image({x=imx+(dataxp*7),y=imy,file=weather_icon[9]})
-- image({x=imx+(dataxp*7),y=imy,file="/media/5/Conky/images/red+x.png"})
out({c=0xFF8C00,x=dataxt+(dataxp*7),y=datayh,txt=high_temp[9]})
out({c=0x00BFFF,x=dataxt+(dataxp*7),y=datayl,txt=low_temp[9]})
 out({c=0xFFFF00,x=dataxrs+(dataxp*7),y=datayr,txt=sun_rise_24[9]})
 out({x=dataxrs+(dataxp*7),y=datays,txt=sun_set_24[9]})

-- Forecast day 10 -- x = l|r  y = u|d
out({x=dataxm+(dataxp*8),y=dataymd,txt=forecast_month_short[10]})
 out({x=dataxn+(dataxp*8),y=dataymd,txt=forecast_date[10]})
  out({x=dataxd+(dataxp*8),y=datayn,txt=forecast_day_short[10]})
 image({x=imx+(dataxp*8),y=imy,file=weather_icon[10]})
-- image({x=imx+(dataxp*8),y=imy,file="/media/5/Conky/images/red+x.png"})
out({c=0xFF8C00,x=dataxt+(dataxp*8),y=datayh,txt=high_temp[10]})
out({c=0x00BFFF,x=dataxt+(dataxp*8),y=datayl,txt=low_temp[10]})
 out({c=0xFFFF00,x=dataxrs+(dataxp*8),y=datayr,txt=sun_rise_24[10]})
 out({x=dataxrs+(dataxp*8),y=datays,txt=sun_set_24[10]})

--]]
--#######################################################################
--END OF WEATHER CODE ----END OF WEATHER CODE ----END OF WEATHER CODE ---
--#######################################################################
end--of weather_display function do not edit this line ##################
--#######################################################################

--- End code ---

Today we have a moon phase so here it is again complete with an old wallpaper with an added twist:

VSIDO is popping out of a Stargate!

For anyone interested here is the 10x10 pixel red+x.png I use to place images that have transparent edges in conky.

Navigation

[0] Message Index

[#] Next page

Go to full version