You can use a script with conky to display a countdown.
Install conky and you may need to install libdate-manip-perl
Code:
sudo apt-get install conky-all libdate-manip-perl
Save this as howlong.pl in your home folder.
After saving, right click on the file
Properties > Permissions
and mark as executable.
Code:
#!/usr/bin/perl
#Script Name: howLong.pl
#Author: Nathan Handler <nhandler @ubuntu.com>
use strict;
use warnings;
use Date::Manip;
my $target=$ARGV[0] || "April 1, 2031";
my $delta = DateCalc(ParseDate("now"),ParseDate($target),1);
$delta=~s/^[+-]//;
my($y,$m,$w,$d,$h,$min,$s) = split(/:/,$delta,7);
$y = sprintf("%02d", $y);
$m = sprintf("%02d", $m);
$w = sprintf("%02d", $w);
$d = sprintf("%02d", $d);
$h = sprintf("%02d", $h);
$min = sprintf("%02d", $min);
$s = sprintf("%02d", $s);
print $y . "y " if($y>0);
print $m . "m " if($m>0);
print $w . "w " if($w>0);
print $d . "d " if($d>0);
#print "$h:$min:$s" if($h>0||$min>0||$s>0);</nhandler>
Save this as .conkyrc in your home folder.(Include the preceding dot when saving.)
Code:
double_buffer yes
background no
no_buffers yes
draw_outline no
draw_shades no
update_interval 30
out_to_console no
out_to_stderr no
# Window Placement & Size
alignment br
own_window yes
own_window_type normal
own_window_transparent no
own_window_argb_visual yes
own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager
own_window_colour 000000
gap_x 0
gap_y 0
minimum_size
maximum_width
#Text Formatting
use_xft yes
xftfont Ubuntu Mono:size=13
TEXT
${pre_exec ~/howLong.pl}
To test, open a terminal and run
Add to startup applications using
Bookmarks