SEARCH

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

You are not logged in.

#276 2012-01-18 18:56:47

mrpeachy
20% cooler
From: The Everfree Forest
Registered: 2009-11-08
Posts: 3,460

Re: Conky v1.9 Thread

lionhead wrote:

i'm using the actual weather-script modified by ackernan.

Conky: llua_do_call: function conky_weather execution failed: /home/alexander/conky/weatheragain9000.lua:773: attempt to concatenate field '?' (a nil value)

can you open up the script in a rext editor, make sure the editor is set to show line numbers and then
post what you get on line 773?

that is one of the lines within the weather_display function if im not mistaken
it could be a copy paste error of perhaps an unintended edit throwing off a variable

Offline

Be excellent to each other!

#277 2012-01-18 19:00:31

ackernan
#! Junkie
Registered: 2011-01-10
Posts: 403

Re: Conky v1.9 Thread

mrpeachy wrote:
lionhead wrote:

i'm using the actual weather-script modified by ackernan.

Conky: llua_do_call: function conky_weather execution failed: /home/alexander/conky/weatheragain9000.lua:773: attempt to concatenate field '?' (a nil value)

can you open up the script in a rext editor, make sure the editor is set to show line numbers and then
post what you get on line 773?

that is one of the lines within the weather_display function if im not mistaken
it could be a copy paste error of perhaps an unintended edit throwing off a variable

Line 773 in my weatheragain9000.lua is about sunset time in the user add section.

out({c=0xffffff,a=1,f="santana-black",fs=11,x=200,y=620,txt="Sun Set: "..sun_set_time[1]})

Last edited by ackernan (2012-01-18 19:14:33)

Offline

#278 2012-01-18 19:32:15

mrpeachy
20% cooler
From: The Everfree Forest
Registered: 2009-11-08
Posts: 3,460

Re: Conky v1.9 Thread

@ lionhead

it was the web address that was wrong
you hadnt clicked the "extended forecast" link

use this address instead at the top of the script

http://www.intellicast.com/Local/Forecast.aspx?location=GMXX0156

Offline

#279 2012-01-18 19:40:24

lionhead
#! Junkie
From: Dagobah / Germany
Registered: 2011-01-22
Posts: 459

Re: Conky v1.9 Thread

ohhh, i'm such an idiot smile thanks for your help. it's working now!

Offline

#280 2012-01-18 21:27:30

bdbr
Member
From: Northants, UK
Registered: 2012-01-06
Posts: 18

Re: Conky v1.9 Thread

Do any of you know if there is a way to remove the percentage when using execbar or is it not optional? With fs_bar there is fc_used_perc, for example. Can't find anything in the docs.

Last edited by bdbr (2012-01-18 21:28:04)

Offline

#281 2012-01-18 22:48:48

Sector11
#!'er to BL'er
From: SR11 Cockpit
Registered: 2010-05-05
Posts: 15,667
Website

Re: Conky v1.9 Thread

OK, been a while since I posted my conky - it just doesn't change that much.  Plus I got lost in a whirlwind of "conky weather"

  • - Teo's weather scripts that I have to get back to,

  • - mrpeachys scripts from v5, v6, v7 and then the big jump to v9000 that I'm still struggling with

  • - Mark's new ConkyForecastWU python script that I "almost" have working

  • ... toss in a lot of real life action lately and

... it has been a struggle.

Today once we got back from another real life adventure I decided to hunker down and make some changes ... ran into a few problems but got them ironed out.
New look: CPU running at 4% with Iceweasel (I'm here ain't I), claws-mail and gedit open.

474232170496171.jpg

Here's the thing, there are two calendars, in opposite corners, but the one with "reminders under it" in the top left corner is ONLY ON desktop 3, automatically placed there on boot or when I re-start all my conkys.  The others are sticky and run on all desktops.

It starts with OpenBox's autostart.sh the first working command there is: wmctrl -s 2 &

## Openbox autostart.sh
## ====================
## When you login to your CrunchBang Openbox session, this autostart script
## will be executed to set-up your environment and launch any applications
## you want to run at startup.
##
## 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/
##
## Have fun! :)

wmctrl -s 2 &

## Start session manager

and then it starts that one conky ~/Conky/OB_Win_remind-cal along with all the other stuff that autostart.sh does ... with a twist ... the last command:

(sleep 3s && sh /home/sector11/.config/openbox/autostart_2.sh) &

exit

calls another bash script:
autostart_2.sh that switches back to desktop 1 and runs the other conkys.

#!/bin/bash

## Openbox autostart_2.sh
## ========================
## When you login to your CrunchBang Openbox session, this autostart script
## will be executed to set-up your environment and launch any applications
## you want to run at startup.
##
## 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/
##
## Have fun! :)

## switch to Desktop 1 and start conky after a slight delay

(sleep 3s && wmctrl -s 0) &

(sleep 3s && conky -c ~/Conky/OB_Cal-br) &
(sleep 3s && conky -c ~/Conky/OB_thinV_top) &
(sleep 3s && conky -c ~/Conky/OB_VR2) &

# sh /home/sector11/.config/openbox/autostart_3.sh &

exit

~/Conky/OB_Win_remind-cal - top left on Desktop 3 only.

# To use #! in a conky use: ${exec echo '#!'}
## killall conky && conky -c ~/Conky/OB_Win_remind-cal &
background no

own_window yes
own_window_type normal #override
own_window_transparent yes
own_window_hints below,undecorated,skip_taskbar,skip_pager
own_window_title Win Remind
own_window_class Win Remind

### 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

use_xft yes
xftfont Andale Mono:bold:size=9
xftalpha 1.0 #0.2

override_utf8_locale yes
total_run_times 0
double_buffer yes
no_buffers yes
cpu_avg_samples 2
net_avg_samples 2
use_spacer none
draw_shades no
draw_outline no
draw_borders no
draw_graph_borders no
uppercase no
imlib_cache_size 0

border_inner_margin 15
border_outer_margin 0

# Colors
default_color DCDCDC #Gainsboro
color0 FFFFF0 #Ivory
color1 FFA07A #LightSalmon
color2 F0E68C # 240 230 140    Khaki
color3 C6FF8E #a light green #7FFF00 #Chartreuse
color4 778899 #LightSlateGrey
color5 FFDEAD #NavajoWhite
color6 00BFFF #DeepSkyBlue
color7 48D1CC #MediumTurquoise
color8 FFFF00 #Yellow
color9 FF0000 #Red

text_buffer_size 512 # 256 is the minimum
short_units yes
pad_percents 2

minimum_size 180 0
maximum_width 180

alignment tl
gap_x 20 # left-right
gap_y 20 # up-down
text_buffer_size 2048 is minimum

update_interval 1 #86400
###  LUA Settings  ###########################################################
## What's what:
## ${lua conky_draw_bg corner_radius x_position y_position width height color alpha}
##
## ---------------------
## Above and After TEXT
##
## lua_load ~/Conky/LUA/draw_bg.lua
## TEXT
## ${lua conky_draw_bg 10 0 0 0 0 0x000000 0.4}
## ---------------------
##
## OR Both above TEXT (No LUA required - no blinking!)
lua_load ~/Conky/LUA/draw_bg.lua
lua_draw_hook_pre draw_bg 20 0 0 0 0 0x000000 0.5
## TEXT
##
#######################################################  End LUA Settings  ###
TEXT
${color2}SU MO  ${color6}${time %b %y}${color2}  FR SA
${color0}${execpi 3600 CPS=`date +%-d`; cal -h | sed '2d' | sed -e '1d' -e 's/\<'"$CPS"'\>/${color6}&${color0}/'}
${color3}${if_match "${time %b}"=="Jan"}${tail $HOME/Conky/DAYS/jan.txt 20 1}${else}\
${if_match "${time %b}"=="Feb"}${tail $HOME/Conky/DAYS/feb.txt 20 1}${else}\
${if_match "${time %b}"=="Mar"}${tail $HOME/Conky/DAYS/mar.txt 20 1}${else}\
${if_match "${time %b}"=="Apr"}${tail $HOME/Conky/DAYS/apr.txt 20 1}${else}\
${if_match "${time %b}"=="May"}${tail $HOME/Conky/DAYS/may.txt 20 1}${else}\
${if_match "${time %b}"=="Jun"}${tail $HOME/Conky/DAYS/jun.txt 20 1}${else}\
${if_match "${time %b}"=="Jul"}${tail $HOME/Conky/DAYS/jul.txt 20 1}${else}\
${if_match "${time %b}"=="Aug"}${tail $HOME/Conky/DAYS/aug.txt 20 1}${else}\
${if_match "${time %b}"=="Sep"}${tail $HOME/Conky/DAYS/sep.txt 20 1}${else}\
${if_match "${time %b}"=="Oct"}${tail $HOME/Conky/DAYS/oct.txt 20 1}${else}\
${if_match "${time %b}"=="Nov"}${tail $HOME/Conky/DAYS/nov.txt 20 1}${else}\
${if_match "${time %b}"=="Dec"}${tail $HOME/Conky/DAYS/dec.txt 20 1}\
${endif}${endif}${endif}${endif}${endif}${endif}${endif}${endif}${endif}\
${endif}${endif}${endif}${color}

It uses 12 text files one for each month to remind is about birthdays anniversaries or other important things.  I have it set to a maximum of 20 lines.

Now under my tint2 bar you see some strange looking code ... for example:

♂ 12·05 114

male: birthday 12 May in 114 days, tomorrow it will read:

♂ 12·05 113

The symbols represent various people and events that my wife and I are aware of.  The conky uses kaivalagi's python 'conkyDaysDiff' script and does a daily countdown.  The font 'Andale Mono' handles those symbols quite nicely

~/Conky/OB_VR2

# To use #! in a conky use: ${exec echo '#!'}
# killall conky && conky -c ~/Conky/OB_VR2 &
# WARNING: Uploading to the net? get rid of personal info!

###  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 undecorated,below,sticky,skip_taskbar,skip_pager
# own_window_colour brown
own_window_class Conky
own_window_title VR2

# 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 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 32 0     ## width, height
maximum_width 32       ## width, usually a good idea to equal minimum width

gap_x 5 # left-right
gap_y 10 # up-down

alignment bl
###################################################  End Window Settings  ###

background no
override_utf8_locale yes
total_run_times 0
double_buffer yes
no_buffers yes
cpu_avg_samples 2
net_avg_samples 2
use_spacer none
draw_shades no
draw_outline no
draw_borders no
draw_graph_borders no
uppercase no
imlib_cache_size 0

# Colors
default_color DCDCDC #Gainsboro
color0 FFFFF0 #Ivory
color1 FFA07A #LightSalmon
color2 F0E68C # 240 230 140    Khaki
color3 C6FF8E #a light green #7FFF00 #Chartreuse
color4 778899 #LightSlateGrey
color5 FFDEAD #NavajoWhite
color6 00BFFF #DeepSkyBlue
color7 48D1CC #MediumTurquoise
color8 FFFF00 #Yellow
color9 FF0000 #Red

text_buffer_size 6144 # 256 is the minimum
short_units yes
pad_percents 2

minimum_size 1015 0 # width & height
maximum_width 1015 # width only

border_inner_margin 0
border_outer_margin 0

update_interval 60 #10
alignment bl

use_xft yes
xftfont Anonymous Pro:size=9
xftalpha 1.0 #0.2
imlib_cache_size 0

###  LUA Settings  ###########################################################
## What's what:
## ${lua conky_draw_bg corner_radius x_position y_position width height color alpha}
##
## ---------------------
## Above and After TEXT
##
## lua_load ~/Conky/LUA/draw_bg.lua
## TEXT
## ${lua conky_draw_bg 10 0 0 0 0 0x000000 0.4}
## ---------------------
##
## OR Both above TEXT (No LUA required - no blinking!)
lua_load ~/Conky/LUA/draw_bg.lua
lua_draw_hook_pre draw_bg 7 0 0 0 0 0x000000 0.5
## TEXT
##
#######################################################  End LUA Settings  ###

TEXT
 ${color1}${font Andale Mono:bold:size=12}♂${goto 95}♀${goto 184}®${goto 273}♂♀${goto 369}♣${goto 460}♥${goto 543}©${goto 630}♠${goto 715}♦${font}${color}
${voffset -15}   12·05 ${color6}${execi 1800 ~/Conky/scripts/conkyDaysDiff.py 20120512}${color}\
${goto 110}13·08 ${color6}${execi 1800 ~/Conky/scripts/conkyDaysDiff.py 20120813}${color}\
${goto 200}19·08 ${color6}${execi 1800 ~/Conky/scripts/conkyDaysDiff.py 20120819}${color}\
${goto 295}13·11 ${color6}${execi 1800 ~/Conky/scripts/conkyDaysDiff.py 20121113}${color}\
${goto 385}30·06 ${color2}${execi 1800 ~/Conky/scripts/conkyDaysDiff.py 20120630}${color}\
${goto 475}29·11 ${color2}${execi 1800 ~/Conky/scripts/conkyDaysDiff.py 20121129}${color}\
${goto 560}24·10 ${color2}${execi 1800 ~/Conky/scripts/conkyDaysDiff.py 20121024}${color}\
${goto 645}10·03 ${color7}${execi 1800 ~/Conky/scripts/conkyDaysDiff.py 20120310}${color}\
${goto 730}07·02 ${color7}${execi 1800 ~/Conky/scripts/conkyDaysDiff.py 20120207}${color}\
 | ${color0}03·04 ${color3}${execi 1800 ~/Conky/scripts/conkyDaysDiff.py 20120325} ${color}|${color2} ${execi 1800 ~/Conky/scripts/conkyDaysDiff.py 20120403} ${color}|${color1} ${execi 1800 ~/Conky/scripts/conkyDaysDiff.py 20120411}${color}\
${goto 950}${uptime_short}

Next the calendar in the bottom right corner - a nice little bash script by mobilediesel.

~/Conky/OB_Cal-br

# To use #! in a conky use: ${exec echo '#!'}
# by Sector11 - 14 Aug 2011
# killall conky && conky -c ~/Conky/OB_Cal-br &

background no
own_window yes
own_window_type override
own_window_transparent yes
#  own_window_colour grey
own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager
# # own_window_argb_visual yes
own_window_title OB_Cal-br
own_window_class OB_Cal-br

# ARGB
# to use: own_window_transparent no
# to use: own_window_type normal
# to use: own_window_hints undecorated,below,skip_taskbar,skip_pager
 own_window_argb_visual yes
## own_window_argb_value 75


double_buffer yes
use_spacer right

uppercase no
stippled_borders 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
border_inner_margin 5
border_outer_margin 0

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

text_buffer_size 510 # 256 is minimum
no_buffers yes
short_units yes
pad_percents 2

update_interval 1
imlib_cache_size 0
gap_x 10            ## left &right
gap_y -37         ## up & down
minimum_size 240 0 ## width, height
maximum_width 240   ## make this equal to minimum size width

alignment br

use_xft yes
xftfont Droid Sans Mono:bold:size=7
#  xftfont Santana:bold:size=8
xftalpha 1.0
override_utf8_locale yes
z
###  LUA Settings  ###########################################################
## Above and After TEXT
##
## lua_load ~/Conky/LUA/draw_bg.lua
## TEXT
## ${lua conky_draw_bg 10 0 0 0 0 0x000000 0.4}
## ${lua conky_draw_bg corner_radius x_position y_position width height color alpha}
##
##
## OR Both above TEXT (No LUA required - no blinking!)
lua_load ~/Conky/LUA/draw_bg.lua
lua_draw_hook_pre draw_bg 8 0 0 0 45 0x000000 0.5
##
#######################################################  End LUA Settings  ###
# temperature_unit celsius  # fahrenheit or celsius 

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}${font}

~/Conky/scripts/week_2.sh

#!/bin/bash
# by: mobilediesel

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

I left that ${voffset -0} in there on purpose incase I ever change the font - those will probably need adjusting.

Last but not least ... the conky on the right - my information conky, pretty generic nothing super fancy.

~/Conky/OB_thinV_top.conky

# To use #! in a conky use: ${exec echo '#!'}
# killall conky && conky -c ~/Conky/OB_thinV_top.conky &
# WARNING: Change name and passwords on e-mail code if posting!!

###  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 undecorated,below,sticky,skip_taskbar,skip_pager
# own_window_colour brown
own_window_class Conky
own_window_title Vert_Right

# 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 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 40 0     ## width, height
maximum_width 40       ## width, usually a good idea to equal minimum width

gap_x 7 # left-right
gap_y 10 # up-down

alignment top_right
###################################################  End Window Settings  ###
###  Font Settings  ##########################################################
# Use Xft (anti-aliased font and stuff)
use_xft yes
xftfont Anonymous Pro: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
default_shade_color black

draw_outline no # amplifies text if yes
default_outline_color black

uppercase no
######################################################  End Font Settings  ###
###  Color Settings  #########################################################
default_shade_color grey
default_outline_color black

default_color DCDCDC #Gainsboro
color0 9ACD32 #YellowGreen
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_outer_margin 0
# border width
border_width 0
# graph borders
draw_graph_borders no #yes
default_graph_size 15 40
#####################################################  End Borders Secton  ###
###  Miscellaneous Section  ##################################################

# Boolean value, if true, Conky will be forked to background when started.
background no

# 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 1028

# 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

##############################################  End Miscellaneous Section  ###
###  LUA Settings  ###########################################################
## Above and After TEXT - requires a composite manager or blinks.
##
## lua_load ~/Conky/LUA/draw_bg.lua
## TEXT
## ${lua conky_draw_bg 10 0 0 0 0 0x000000 0.4}
## ${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 ~/Conky/LUA/draw_bg.lua
lua_draw_hook_pre draw_bg 10 0 0 0 0 0x000000 0.5
##
#######################################################  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

TEXT
${color0}Desk ${color7}${desktop}${color}
${color3}${hr}${color}
${color0}Email${color}
C ${color7}${if_match ${execi 180 conkyEmail --servername=MYSERVER.com --servertype=POP --port=XXX --username=MYNAME --password=MYPASSWORD}>99}${execi 180 conkyEmail --servername=MYSERVER.com --servertype=POP --port=XXX --username=MYNAME --password=MYPASSWORD}${else}\
${if_match ${execi 180 conkyEmail --servername=MYSERVER.com --servertype=POP --port=XXX --username=MYNAME --password=MYPASSWORD}>9}0${execi 180 conkyEmail --servername=MYSERVER.com --servertype=POP --port=XXX --username=MYNAME --password=MYPASSWORD}${else}\
${if_match ${execi 180 conkyEmail --servername=MYSERVER.com --servertype=POP --port=XXX --username=MYNAME --password=MYPASSWORD}>0}00${execi 180 conkyEmail --servername=MYSERVER.com --servertype=POP --port=XXX --username=MYNAME --password=MYPASSWORD}${else}\
${if_match ${execi 180 conkyEmail --servername=MYSERVER.com --servertype=POP --port=XXX --username=MYNAME --password=MYPASSWORD}==0}000\
${endif}${endif}${endif}${endif}${color}
S ${color7}${if_match ${execi 180 conkyEmail --servername=MYSERVER.com --servertype=POP --port=XXX --username=MYNAME --password=MYPASSWORD}>99}${execi 180 conkyEmail --servername=MYSERVER.com --servertype=POP --port=XXX --username=MYNAME --password=MYPASSWORD}${else}\
${if_match ${execi 180 conkyEmail --servername=MYSERVER.com --servertype=POP --port=XXX --username=MYNAME --password=MYPASSWORD}>9}0${execi 180 conkyEmail --servername=MYSERVER.com --servertype=POP --port=XXX --username=MYNAME --password=MYPASSWORD}${else}\
${if_match ${execi 180 conkyEmail --servername=MYSERVER.com --servertype=POP --port=XXX --username=MYNAME --password=MYPASSWORD}>0}00${execi 180 conkyEmail --servername=MYSERVER.com --servertype=POP --port=XXX --username=MYNAME --password=MYPASSWORD}${else}\
${if_match ${execi 180 conkyEmail --servername=MYSERVER.com --servertype=POP --port=XXX --username=MYNAME --password=MYPASSWORD}==0}000\
${endif}${endif}${endif}${endif}${color}
${color3}${hr}${color}
${color0}Bs As${color}
T ${color7}${weather http://weather.noaa.gov/pub/data/observations/metar/stations/ SABE temperature}${color}°
B ${color7}${weather http://weather.noaa.gov/pub/data/observations/metar/stations/ SABE pressure}${color}
H ${color7}${weather http://weather.noaa.gov/pub/data/observations/metar/stations/ SABE humidity}${color}%
W ${color7}${weather http://weather.noaa.gov/pub/data/observations/metar/stations/ SABE wind_dir_DEG}${color}°
  ${color7}${weather http://weather.noaa.gov/pub/data/observations/metar/stations/ SABE wind_dir}${color}
  ${color7}${weather http://weather.noaa.gov/pub/data/observations/metar/stations/ SABE wind_speed}${color}k
${color3}${hr}${color}
${color0}Ezeiza${color}
T ${color7}${weather http://weather.noaa.gov/pub/data/observations/metar/stations/ SAEZ temperature}${color}°
B ${color7}${weather http://weather.noaa.gov/pub/data/observations/metar/stations/ SAEZ pressure}${color}
H ${color7}${weather http://weather.noaa.gov/pub/data/observations/metar/stations/ SAEZ humidity}${color}%
W ${color7}${weather http://weather.noaa.gov/pub/data/observations/metar/stations/ SAEZ wind_dir_DEG}${color}°
  ${color7}${weather http://weather.noaa.gov/pub/data/observations/metar/stations/ SAEZ wind_dir}${color}
  ${color7}${weather http://weather.noaa.gov/pub/data/observations/metar/stations/ SAEZ wind_speed}${color}k
${color3}${hr}${color}
${color0}HDD %
Usage${color}
/Root
 ${color7}${if_match ${fs_used_perc /} < 10}00${fs_used_perc /}\
${else}${if_match ${fs_used_perc /} < 100}0${fs_used_perc /}${color}\
${else}${color9}${fs_used_perc /}\
${endif}${endif}${color}
/S11
 ${color7}${if_match ${fs_used_perc /home} < 10}00${fs_used_perc /home}\
${else}${if_match ${fs_used_perc /home} < 100}0${fs_used_perc /home}\
${else}${color9}${fs_used_perc /home}\
${endif}${endif}${color}
M/5
 ${color7}${if_match ${fs_used_perc /media/5} < 10}00${fs_used_perc /media/5}\
${else}${if_match ${fs_used_perc /media/5} < 100}0${fs_used_perc /media/5}\
${else}${color9}${fs_used_perc /media/5}${color}\
${endif}${endif}${color}
M/6
 ${color7}${if_match ${fs_used_perc /media/6} < 10}00${fs_used_perc /media/6}\
${else}${if_match ${fs_used_perc /media/6} < 100}0${fs_used_perc /media/6}\
${else}${color9}${fs_used_perc /media/6}\
${endif}${endif}${color}
${color3}${hr}${color}
${color0}I-Net${color}
UpSpd
${color7}${upspeedf eth0}${color}
${upspeedgraph eth0 FF0000 FFFF00}
Total
${color7}${totalup eth0}${color}
DnSpd
${color7}${downspeedf eth0}${color}
${downspeedgraph eth0 FFFF00 FF0000}
Total
${color7}${totaldown eth0}${color}
${color3}${hr}${color}
${color0}Temps${color}
CPU
 ${color7}${hwmon 1 temp 1}${color}°C
Mobo
 ${color7}${hwmon 2 temp 1}${color}°C
SDA
 ${color7}${execpi 15 hddtemp -n /dev/sda}${color}°C
GPU
 ${if_match ${nvidia temp} < 50}${color7}${nvidia temp}\
${else}${if_match ${nvidia temp} < 55}${color8}${nvidia temp}\
${else}${color9}${nvidia temp}\
${endif}${endif}${color}°C
${color3}${hr}${color}
${color0}Usage${color}
CPU %
 ${color7}${if_match ${cpu cpu0} < 10}00${cpu cpu0}\
${else}${if_match ${cpu cpu0} < 100}0${cpu cpu0}\
${else}${color9}${cpu cpu0}\
${endif}${endif}${color}
MEM %
 ${color7}${if_match ${memperc} < 10}00${memperc}\
${else}${if_match ${memperc} < 100}0${memperc}\
${else}${color9}${memperc}\
${endif}${endif}${color}
${color3}${hr}${color}

At this time I would really like to thank mobildiesel for getting me onto the wmctrl a while back, I've been using this for a little while now bit it had a few "oopsies" and MD would say so I was hesitant to post it.  Starting conkys on different desktops with wmctrl and:

own_window_type normal
own_window_hints below,undecorated,skip_taskbar,skip_pager

NO sticky in the hints line!

EDIT:
1. updated the ~/Conky/OB_thinV_top conky, there was an error.
2. when I text conkys I need to use "killall conky" quite a bit so I need a way to get my normal conkys running - without logging out or rebooting - another bash script does it:

#!/bin/sh
if [ "$(pidof conky)" ]; then
    killall conky
    sleep 3
    conky -c ~/Conky/OB_Cal-br &
    conky -c ~/Conky/OB_thinV_top &
    conky -c ~/Conky/OB_VR2 &
    (sleep 3s && wmctrl -s 2 && conky -c ~/Conky/OB_Win_remind-cal) &
    exit
else
    sleep 3
    conky -c ~/Conky/OB_Cal-br &
    conky -c ~/Conky/OB_thinV_top &
    conky -c ~/Conky/OB_VR2 &
    (sleep 3s && wmctrl -s 2 && conky -c ~/Conky/OB_Win_remind-cal) &
    exit
fi

slicker than Caster Oil {it will return}

Last edited by Sector11 (2012-01-19 03:29:13)


·  ↓   ↓   ↓   ↓   ↓   ↓  ·
BunsenLabs Forums now Open for Registration
·  ↑   ↑   ↑   ↑   ↑   ↑  · BL ModSquad

Offline

#282 2012-01-18 23:11:09

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

Re: Conky v1.9 Thread

^Sector11

I see you have the dreaded "leak" in your new setup. big_smile


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

Offline

#283 2012-01-19 00:03:30

Sector11
#!'er to BL'er
From: SR11 Cockpit
Registered: 2010-05-05
Posts: 15,667
Website

Re: Conky v1.9 Thread

bdbr wrote:

Do any of you know if there is a way to remove the percentage when using execbar or is it not optional? With fs_bar there is fc_used_perc, for example. Can't find anything in the docs.

Could you please show a sample - I have never see it in use.


·  ↓   ↓   ↓   ↓   ↓   ↓  ·
BunsenLabs Forums now Open for Registration
·  ↑   ↑   ↑   ↑   ↑   ↑  · BL ModSquad

Offline

#284 2012-01-19 00:05:22

Sector11
#!'er to BL'er
From: SR11 Cockpit
Registered: 2010-05-05
Posts: 15,667
Website

Re: Conky v1.9 Thread

BoredOOMM wrote:

^Sector11

I see you have the dreaded "leak" in your new setup. big_smile

Not even close.  What makes you think so?

What I do see is 2 mem % calls ... have to drop one.

Done!!!

Last edited by Sector11 (2012-01-19 00:11:15)


·  ↓   ↓   ↓   ↓   ↓   ↓  ·
BunsenLabs Forums now Open for Registration
·  ↑   ↑   ↑   ↑   ↑   ↑  · BL ModSquad

Offline

#285 2012-01-19 00:08:14

VastOne
#! Ranger
From: V-Ger
Registered: 2011-04-26
Posts: 10,165
Website

Re: Conky v1.9 Thread

bdbr wrote:

Do any of you know if there is a way to remove the percentage when using execbar or is it not optional? With fs_bar there is fc_used_perc, for example. Can't find anything in the docs.


I use execbar in all of my Conky Music files like this

{color light blue}${execibar 1 ~/conkyDeadbeef.py --datatype=PP}

and never see a percentage...


VSIDO | Words That Build Or Destroy

I dev VSIDO

Offline

#286 2012-01-19 00:12:22

Sector11
#!'er to BL'er
From: SR11 Cockpit
Registered: 2010-05-05
Posts: 15,667
Website

Re: Conky v1.9 Thread

VastOne wrote:
bdbr wrote:

Do any of you know if there is a way to remove the percentage when using execbar or is it not optional? With fs_bar there is fc_used_perc, for example. Can't find anything in the docs.


I use execbar n all of my Conky Music files like this

{color light blue}${execibar 1 ~/conkyDeadbeef.py --datatype=PP}

and never see a percentage...

Ooooooooooo  I knew that ... but just too new for me to recognize it.


·  ↓   ↓   ↓   ↓   ↓   ↓  ·
BunsenLabs Forums now Open for Registration
·  ↑   ↑   ↑   ↑   ↑   ↑  · BL ModSquad

Offline

#287 2012-01-19 00:13:40

VastOne
#! Ranger
From: V-Ger
Registered: 2011-04-26
Posts: 10,165
Website

Re: Conky v1.9 Thread

^ Soon grasshopper, soon...


VSIDO | Words That Build Or Destroy

I dev VSIDO

Offline

#288 2012-01-19 01:01:20

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

Re: Conky v1.9 Thread

Sector11 wrote:
BoredOOMM wrote:

^Sector11

I see you have the dreaded "leak" in your new setup. big_smile

Not even close.  What makes you think so?

What I do see is 2 mem % calls ... have to drop one.

Done!!!

Play on words regarding the background  wink


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

Offline

#289 2012-01-19 01:31:06

Sector11
#!'er to BL'er
From: SR11 Cockpit
Registered: 2010-05-05
Posts: 15,667
Website

Re: Conky v1.9 Thread

BoredOOMM wrote:

Play on words regarding the background  wink

hahahahahah WHOOSH!!!  Right over my head!!!


·  ↓   ↓   ↓   ↓   ↓   ↓  ·
BunsenLabs Forums now Open for Registration
·  ↑   ↑   ↑   ↑   ↑   ↑  · BL ModSquad

Offline

#290 2012-01-19 01:35:03

VastOne
#! Ranger
From: V-Ger
Registered: 2011-04-26
Posts: 10,165
Website

Re: Conky v1.9 Thread

^ that was clever Mr BooMM


VSIDO | Words That Build Or Destroy

I dev VSIDO

Offline

#291 2012-01-19 03:10:08

ackernan
#! Junkie
Registered: 2011-01-10
Posts: 403

Re: Conky v1.9 Thread

Sector11 wrote:
BoredOOMM wrote:

Play on words regarding the background  wink

hahahahahah WHOOSH!!!  Right over my head!!!

Stand up next time, then it won't be over your head! lol

Offline

#292 2012-01-19 03:30:11

Sector11
#!'er to BL'er
From: SR11 Cockpit
Registered: 2010-05-05
Posts: 15,667
Website

Re: Conky v1.9 Thread

ackernan wrote:

Stand up next time, then it won't be over your head! lol

ahhhh  sudddup!  lol

Last edited by Sector11 (2012-01-19 03:30:43)


·  ↓   ↓   ↓   ↓   ↓   ↓  ·
BunsenLabs Forums now Open for Registration
·  ↑   ↑   ↑   ↑   ↑   ↑  · BL ModSquad

Offline

#293 2012-01-19 14:20:55

stevepoppers
Member
From: America. Studying in Japan.
Registered: 2010-06-14
Posts: 31

Re: Conky v1.9 Thread

Man, you guys are going nuts with these...

Anyway, I just had an idea and I wonder if anyone would know how to implement it. I'm studying Japanese, and I thought it would be cool to have a conky display a "kanji of the day" type of thing. It would look at a list of kanji, maybe pick one at random, query a dictionary site, and display the kanji (large) and definition (normal size). That's the part that I just don't know how to do. I think I would like something simple like a bash script, because I'd probably understand at least a little of it, but if anyone's got anything, I'd like to try it. But I'm just thinking of a simple text output so, I don't expect it to need anything too complicated like lua or perl. Any ideas?

Offline

#294 2012-01-19 15:39:09

gmonti
#! CrunchBanger
From: Caracas, Venezuela
Registered: 2011-12-07
Posts: 108

Re: Conky v1.9 Thread

stevepoppers wrote:

Man, you guys are going nuts with these...

Anyway, I just had an idea and I wonder if anyone would know how to implement it. I'm studying Japanese, and I thought it would be cool to have a conky display a "kanji of the day" type of thing. It would look at a list of kanji, maybe pick one at random, query a dictionary site, and display the kanji (large) and definition (normal size). That's the part that I just don't know how to do. I think I would like something simple like a bash script, because I'd probably understand at least a little of it, but if anyone's got anything, I'd like to try it. But I'm just thinking of a simple text output so, I don't expect it to need anything too complicated like lua or perl. Any ideas?

stevepoppers I found this post: http://forums.avistaz.com/index.php?sho … t&p=103305 and asked the person to share his setup


Giuliano Monti Avellino
Debian/Squeeze
Gnome

Offline

#295 2012-01-19 16:34:53

stevepoppers
Member
From: America. Studying in Japan.
Registered: 2010-06-14
Posts: 31

Re: Conky v1.9 Thread

Cool, thanks. Hopefully that'll get me somewhere. I think the Japanese Wiktionary has the kind of definitions I'm looking for. I think the hardest part of this is finding and pulling the right text off a web page. As I understand, that's very difficult. I could copy and paste them to create a reference file myself, but that was sort of the point of having conky do it for me. Though I wouldn't mind doing it on the off chance it would help someone else.

Maybe something like this? With curl instead of an input file.
http://en.kioskea.net/faq/5799-shell-sc … to-another
OR
http://www.cyberciti.biz/faq/sed-display-text/

If that would work, I could start playing with ranges to pull out of the Wikipedia page and get conky to print them.

Offline

#296 2012-01-19 19:01:34

gmonti
#! CrunchBanger
From: Caracas, Venezuela
Registered: 2011-12-07
Posts: 108

Re: Conky v1.9 Thread

stevepoppers wrote:

Cool, thanks. Hopefully that'll get me somewhere. I think the Japanese Wiktionary has the kind of definitions I'm looking for. I think the hardest part of this is finding and pulling the right text off a web page. As I understand, that's very difficult. I could copy and paste them to create a reference file myself, but that was sort of the point of having conky do it for me. Though I wouldn't mind doing it on the off chance it would help someone else.

Maybe something like this? With curl instead of an input file.
http://en.kioskea.net/faq/5799-shell-sc … to-another
OR
http://www.cyberciti.biz/faq/sed-display-text/

If that would work, I could start playing with ranges to pull out of the Wikipedia page and get conky to print them.

I suggest to wait some small time to see if we get any answer, and then I will help you with some perl script.

There is an application "fortune" (aptitude search fortune) in which you can create your own says.
I use it for automatic foot messages in my mails.
It interact with conky too.

Last edited by gmonti (2012-01-19 19:04:27)


Giuliano Monti Avellino
Debian/Squeeze
Gnome

Offline

#297 2012-01-19 21:02:14

mrpeachy
20% cooler
From: The Everfree Forest
Registered: 2009-11-08
Posts: 3,460

Re: Conky v1.9 Thread

^ ive been trying to do this using curl
i have a test curl line

curl 'http://www.kanji-a-day.com/' | grep -A3 '<div class=\"glyph\">'

terminal outputs this

<div class="glyph">
    ��  </div>
  
  <div class="readings">

those two funky diamond shapes are where the kanji is in the code from the kanji-a-day-website

you could use in conky via the execi command

but i cant get conky to actually show the kanji part... not entirely sure why
i have Japanese language support enabled and can type kanji symbols directly into the conkyrc and have them show up

Last edited by mrpeachy (2012-01-19 21:03:02)

Offline

#298 2012-01-20 16:59:44

stevepoppers
Member
From: America. Studying in Japan.
Registered: 2010-06-14
Posts: 31

Re: Conky v1.9 Thread

I ran that in a terminal and got the same result. Copied the diamonds into google and got literally nothing. They weren't even displayed in the search bar, just two spaces as far as I could tell. Google their description and got this.

http://en.wikipedia.org/wiki/Specials_% … e_block%29

So it's an encoding error? Explains why they don't show in conky. Says the black diamonds are because they're not unicode characters, but kanji definitely are.

Though I don't understand exactly how that works, it shows me a possibility I can learn more about and play with. Thanks.

Offline

#299 2012-01-20 18:12:33

mrpeachy
20% cooler
From: The Everfree Forest
Registered: 2009-11-08
Posts: 3,460

Re: Conky v1.9 Thread

stevepoppers wrote:

I ran that in a terminal and got the same result. Copied the diamonds into google and got literally nothing. They weren't even displayed in the search bar, just two spaces as far as I could tell. Google their description and got this.

http://en.wikipedia.org/wiki/Specials_% … e_block%29

So it's an encoding error? Explains why they don't show in conky. Says the black diamonds are because they're not unicode characters, but kanji definitely are.

Though I don't understand exactly how that works, it shows me a possibility I can learn more about and play with. Thanks.

it must be the mechanics of the curl operation at issue, as i can go to the site, look at the source code, copy the kanji character and paste it straight into the conkyrc and it will show up

this post sheds more light on the situation
http://www.linuxquestions.org/questions … rs-527492/

Last edited by mrpeachy (2012-01-20 18:19:25)

Offline

Help fund CrunchBang, donate to the project!

#300 2012-01-20 20:27:09

stevepoppers
Member
From: America. Studying in Japan.
Registered: 2010-06-14
Posts: 31

Re: Conky v1.9 Thread

Using elinks in gnome-terminal, I viewed kanji-a-day.com, and saw the same diamonds. However, ja.wikipedia.org (where I think I want my definitions from) displays just fine. So I don't think it's a problem of curl or what you posted, but how that site is encoded.

So, now I need to figure out how to grep what I want from a wiktionary article.

"man grep" time.

Later...

Oh, goodness, something here might be useful.
http://www.mediawiki.org/wiki/Alternative_parsers

...maybe?

Last edited by stevepoppers (2012-01-20 21:39:42)

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.
Server: acrobat

Debian Logo