Powered By

Powered by Blogger

Kamis, 05 Agustus 2010

Display Google Calendar On Your Desktop Using Gcalcli And Conky

Google Calendar desktop ubuntu

This post explains how to display Google Calendar on your Desktop using Conky and Gcalcli (a tool you can use to manage Google Calendar via the command line).

If you already have a Conky instance running and want to also display Google Calendar on your desktop using Conky, see this how-to on running multiple Conky instances.


1. Install Gcalcli:
sudo apt-get install gcalcli


2. Configure Gcalcli

Unfortunately, Gcalcli needs your password in a configuration file in plain text. But then again, even Pidgin does this.

To be able to use Gcalcli, you have to create a configuration file in your home folder where you must add your Google username and password:

gedit ~/.gcalclirc

And paste this:
[gcalcli]
user: yourusername
pw: yourpassword

Replace yourusername and yourpassword with your Google username and password, then save the file.

3. Install conky
sudo apt-get install conky

4. Configure conky to display Google Calendar on your desktop
gedit ~/.conkyrc

And paste this:
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=12
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}

Then save the file and start conky: press ALT + F2 and type: "conky".


5. Set Conky with Google Calendar to autostart:
gedit ~/conkystart

And paste this in the file:
#!/bin/bash
sleep 50 && conky

Then save the file and go to System > Preferences > Startup Applications, click "Add" and add a new startup application. Enter "Conky" under the name of the app and for the command, click "Browse" and then browse for the "conkystart" file in your home folder.


Gcalcli can also add events to Google Calendar and a lot of other stuff. See a complete how-to @ MakeTechEasier (this is also where we've found the Conky with Google Calendar on the desktop part).

Tidak ada komentar:

Posting Komentar