You are reading the article How To Manage Google Calendar From Command Line And Display It On Your Desktop updated in September 2023 on the website Dacvumuahe.com. We hope that the information we have shared is helpful to you. If you find the content interesting and meaningful, please share it with your friends and continue to follow and support us for the latest updates. Suggested October 2023 How To Manage Google Calendar From Command Line And Display It On Your Desktop
I don’t think I need to do any introduction on Google Calendar. It is one of the most popular web based calendar and if you have a Google account (or a Gmail account), you already have a Google Calendar account.
To add events/appointment to your Google Calendar, the most primitive way is to open your web browser, login to the Google Calendar site and add an event. What about the geekiest (and fastest) way? By the command line, of course.
InstallationGcalcli is included in the Ubuntu repository, which means you can easily install via the Ubuntu Software Center, Synaptic Package Manager, or simply with the command line:
sudo
apt-get install
gcalcli ConfigurationBefore we start, we need to create the configuration file. Open a text editor. Paste the following lines:
[
gcalcli]
user: yourusernameReplace “yourpassword” with your Google login password.
Save the file in your home folder with the filename .gcalclirc (don’t forget the “.” in front of the galclirc and no file extension is required)
UsageTo test it, open a terminal and type
It should show your agenda for the next 5 days.
To get a quick glance of your next 2 weeks agenda
Whole month agenda
You can also set gcalcli to show a reminder popup if the event is within 10 minutes from the current time.
One thing though, there is no automation for the reminder service, so you need to run the command everytime to remind you of your event. A good way to automate it is via crontab or using gnome-schedule
To add an event to Google calendar, use the command
gcalcli quick'5pm 31/7/2010 Meeting with Advertisers'
# or
gcalcli quick'Dinner with Eric 7pm tomorrow'
Display Google Calendar on your desktopTo get Google Calendar onto your desktop, we are going to use a combination of gcalcli and conky.
Install conky:
sudo
apt-get install
conkyOpen a text editor and paste the following text:
alignment top_right background no border_width0
cpu_avg_samples2
default_color white default_outline_color white default_shade_color white draw_borders no draw_graph_bordersyes
draw_outline no draw_shades no use_xftyes
xftfont DejaVu Sans Mono:size
=12
gap_x5
gap_y60
minimum_size5
5
net_avg_samples2
double_bufferyes
out_to_console no out_to_stderr no extra_newline no own_windowyes
own_window_class Conky own_window_type override own_window_transparentyes
own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager stippled_borders0
update_interval1.0
uppercase no use_spacer none show_graph_scale no show_graph_range no text_buffer_size8096
TEXT${execi 300 gcalcli --nc --cals=owner calw 4}
Save the file in your Home directory with the filename .conkyrc
Press Alt + F2. Type in “conky” and press Enter.
Your agenda for the next 4 weeks will now appear on your desktop and it will refresh every 5 minutes.
Need more help on gcalcli? Check out their HowTo wiki.
Try it out and let us know if it works for you.
Damien
Damien Oh started writing tech articles since 2007 and has over 10 years of experience in the tech industry. He is proficient in Windows, Linux, Mac, Android and iOS, and worked as a part time WordPress Developer. He is currently the owner and Editor-in-Chief of Make Tech Easier.
Subscribe to our newsletter!
Our latest tutorials delivered straight to your inbox
Sign up for all newsletters.
By signing up, you agree to our Privacy Policy and European users agree to the data transfer policy. We will not share your data and you can unsubscribe at any time.
You're reading How To Manage Google Calendar From Command Line And Display It On Your Desktop
Update the detailed information about How To Manage Google Calendar From Command Line And Display It On Your Desktop on the Dacvumuahe.com website. We hope the article's content will meet your needs, and we will regularly update the information to provide you with the fastest and most accurate information. Have a great day!