Re: Post your .conkyrc files w/ screenshots
Quote:
Originally Posted by
EarnestLearner
Hello all!
I am trying to get my Google Calendar to display on my desktop using Conky, however it is only displaying my calendar partially. I am running Ubuntu 12.10 with Xfce 4.10 desktop environment.
Here is my current conkyrc file:
Code:
alignment top_right
background no
border_width 0
cpu_avg_samples 2
default_color white
default_outline_color white
default_shade_color white
draw_borders no
draw_graph_borders yes
draw_outline no
draw_shades no
use_xft yes
xftfont DejaVu Sans Mono:size=10
gap_x 5
gap_y 60
minimum_size 5 5
net_avg_samples 2
double_buffer yes
out_to_console no
out_to_stderr no
extra_newline no
own_window yes
own_window_class Conky
own_window_type override
own_window_transparent yes
own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager
stippled_borders 0
update_interval 1.0
uppercase no
use_spacer none
show_graph_scale no
show_graph_range no
text_buffer_size 8096
TEXT
${execi 300 gcalcli --nc --cals=owner calw 4}
Note: When I run Conky, I get the following output in my terminal:
Code:
Conky: desktop window (e00003) is subwindow of root window (dc)
Conky: window type - override
Conky: drawing to created window (0x4200001)
Conky: drawing to double buffer
Traceback (most recent call last):
File "/usr/bin/gcalcli", line 1524, in <module>
BowChickaWowWow()
File "/usr/bin/gcalcli", line 1469, in BowChickaWowWow
gcal.CalQuery(args[0], count=int(args[1]))
File "/usr/bin/gcalcli", line 1011, in CalQuery
self._GraphEvents(cmd, start, count, eventList)
File "/usr/bin/gcalcli", line 712, in _GraphEvents
PrintMsg(CLR_NRM(), line + "\n")
File "/usr/bin/gcalcli", line 239, in PrintMsg
sys.stdout.write(unicode(msg, 'UTF-8'))
TypeError: decoding Unicode is not supported
Here is a screenshot of my desktop:
http://imgur.com/Ntiu0
Much thanks!
I tried to run gcalcli today and was met with the same error you had "unicode is not supported"
I ran this in terminal
Code:
gcalcli --nc --user "my user name" --pw "my password" calw 2
and got this...
Code:
+----------+----------+----------+----------+----------+----------+----------+
|Sunday |Monday |Tuesday |Wednesday |Thursday |Friday |Saturday |
+----------+----------+----------+----------+----------+----------+----------+
|13 Jan |14 Jan |15 Jan |16 Jan |17 Jan |18 Jan ** |19 Jan |
| | | | | | | |
Traceback (most recent call last):
File "/usr/bin/gcalcli", line 1524, in <module>
BowChickaWowWow()
File "/usr/bin/gcalcli", line 1469, in BowChickaWowWow
gcal.CalQuery(args[0], count=int(args[1]))
File "/usr/bin/gcalcli", line 1011, in CalQuery
self._GraphEvents(cmd, start, count, eventList)
File "/usr/bin/gcalcli", line 712, in _GraphEvents
PrintMsg(CLR_NRM(), line + "\n")
File "/usr/bin/gcalcli", line 239, in PrintMsg
sys.stdout.write(unicode(msg, 'UTF-8'))
TypeError: decoding Unicode is not supported
So perhaps gcalcli isn't supported anymore. It seems to be a pretty old program, most of the documentation I found for it was from 2008. I suspect google calendar has changed format too much for gcalcli to read now. Can anyone confirm if gcalcli is alive or dead?
Re: Post your .conkyrc files w/ screenshots
Quote:
Originally Posted by
GrouchyGaijin
Cool idea. Thanks for sharing. I have a question though, does the toggle script allow you to kill the conkies one at a time or is it all or nothing?
Scripts been around a while. Not my idea.
All or nuttin'. Go hard or go home. ;)
Re: Post your .conkyrc files w/ screenshots
Quote:
Originally Posted by
stinkeye
Thought I might post this for those using unity to show how to use
Unity launcher quicklists to control and edit your conkys.
Hey! Now that's what I call a great tip!
Good stuff stinkeye!
1 Attachment(s)
Re: Post your .conkyrc files w/ screenshots
Got around to officially making my first functional calendar today.
Code:
#conky performance settings
update_interval 3
total_run_times 0
cpu_avg_samples 4
no_buffers yes
double_buffer yes
override_utf8_locale yes
#overall position of conky window
alignment bottom_right
gap_x 1160
gap_y 15
minimum_size 150 0
maximum_width 142
#overall appearance of conky window
own_window yes
own_window_type override
own_window_transparent yes
own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager
draw_borders no
#default text apperance
use_xft yes
xftalpha 0.9
xftfont Monofonto:size=14
default_color white
draw_shades yes
draw_outline yes
default_shade_color black
default_outline_color black
uppercase no
#colors
color1 orange
color2 black
TEXT
${color1}${font Alfios:bold:size=12}${execpi 600 date +"%B"}${alignr}${execpi 600 date +"%Y"}${color}${font}
${voffset -8}${color1}${hr 1}${color}
${execpi 600 DJS=`date +%_d`; cal -h | sed '1d' | sed s/"$DJS"'\b'/'${font Monofonto:bold:size=14}${outlinecolor orange}${color2}'"$DJS"'${outlinecolor}${font}${color}'/}$font
${voffset -24}${color1}${hr 1}${color}
1 Attachment(s)
Re: Post your .conkyrc files w/ screenshots
Okay, I've finally got it perfect! Until I decide to faff about with it again. Probably in a few hours...
Now to do something about that mess down the bottom.
http://img.photobucket.com/albums/v2...2013-01-19.png
Here's my conkyrc for anyone interested:
Re: Post your .conkyrc files w/ screenshots
Quote:
Originally Posted by
Petro Dawg
I tried to run gcalcli today and was met with the same error you had "unicode is not supported"
So perhaps gcalcli isn't supported anymore. It seems to be a pretty old program, most of the documentation I found for it was from 2008. I suspect google calendar has changed format too much for gcalcli to read now. Can anyone confirm if gcalcli is alive or dead?
I ran into SSL issues with version 2.1 which is in the repository. I looked about and found that people were having multiple issues with 2.1 so I downloaded 2.2 from the gcalcli site (https://github.com/insanum/gcalcli) and the SSL works now. That may solve the Unicode issue as well.
Personally though, I prefer Kaivalagi's Conky Google Calendar script.
Re: Post your .conkyrc files w/ screenshots
Re: Post your .conkyrc files w/ screenshots
Quote:
Originally Posted by
stinkeye
Scripts been around a while. Not my idea.
All or nuttin'. Go hard or go home. ;)
For what it is worth, I wrote a script that will find the PID of a particular conky, then kill it.
I'm sure this could be done more efficiently. But this works on my system.
Code:
#!/bin/bash
##This is something like the 5th script I've ever written ##
var1=$(ps xu | grep calendar-conky | grep -v grep | awk '{ print $2 }')
echo "$var1"
kill $var1
Change calendar-conky to the name of your conkyrc file.
Then, make a launcher, put it in a quick list or whatever.
Re: Post your .conkyrc files w/ screenshots
Quote:
Originally Posted by
GrouchyGaijin
For what it is worth, I wrote a script that will find the PID of a particular conky, then kill it.
I'm
sure this could be done more efficiently. But this works on my system.
Code:
#!/bin/bash
##This is something like the 5th script I've ever written ##
var1=$(ps xu | grep calendar-conky | grep -v grep | awk '{ print $2 }')
echo "$var1"
kill $var1
Change
calendar-conky to the name of your conkyrc file.
Then, make a launcher, put it in a quick list or whatever.
DUDE!!!! Put your name on that one:
Code:
#!/bin/bash
##This is something like the 5th script I've ever written ##
## Written by the GrouchyGaijin - Jan 2013 ##
var1=$(ps xu | grep calendar-conky | grep -v grep | awk '{ print $2 }')
echo "$var1"
kill $var1
There has to be a way to use a variable, ie:
maybe:
Code:
#!/bin/bash
##This is something like the 5th script I've ever written ##
## Written by the GrouchyGaijin - Jan 2013
var1=$(ps xu | grep $1 | grep -v grep | awk '{ print $2 }')
echo "$var1"
kill $var1
I gotta try this.
Nice stuff GrouchyGaijin
Awesome!!
Using the variable $1 it works for any conky:
Code:
ggkfc S11_email.conky
I call it GrouchyGaijinKentuckyFriedConky
Awesome and I mean AWESOME!!
Re: Post your .conkyrc files w/ screenshots
Quote:
Originally Posted by
GrouchyGaijin
For what it is worth, I wrote a script that will find the PID of a particular conky, then kill it.
I'm
sure this could be done more efficiently. But this works on my system.
Code:
#!/bin/bash
##This is something like the 5th script I've ever written ##
var1=$(ps xu | grep calendar-conky | grep -v grep | awk '{ print $2 }')
echo "$var1"
kill $var1
Change
calendar-conky to the name of your conkyrc file.
Then, make a launcher, put it in a quick list or whatever.
Why not use?
Code:
pkill -f "conky.*-c.*calendar-conky"
That will kill conky process running with the "calendar-conky" .conkyrc.
It should also not kill certain text editors if you have your .conkyrc open in them.