Remmember The Milk Mobile No seu Desktop :D
Eu preciso de uma maneira para me organizar, ai me lembrei do Remmember The Milk, um site que guarda as famosas TODO lists. Bem só que de vez em quando abrir o firefox ou uma aba só para entrar no RTM pode ser chato, então resolvi criar uma aplicação bem pequena que abre o RTM versão mobile em uma janelinha no desktop. Agora junto com o ALT+F2 do Gnome ou do Katapul eu tenho o rapidinho minha lista de tarefas!
Salve no diretório /usr/bin ou qualquer um que esteja no PATH. Sugiro o nome rtmtiny, depois um chmod +x rtmtiny
#!/usr/bin/ruby
#
# Remember The Milk Tiny by Tiago Bastos comechao@gmail.com
# Copyright (c) 2006 Tiago Bastos comechao@gmail.com
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License version 2 as
# published by the Free Software Foundation
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
#
require 'gtkmozembed'
HOME_URL = 'http://m.rememberthemilk.com/'
Gtk::MozEmbed.set_profile_path(ENV["HOME"] +'/'+ ".rtmtiny", "mozilla")
class RtmTiny
def initialize
@w = Gtk::Window.new 'Rememmber The milk'
@w.title = "Remmember the Milk"
@w.set_default_size(180, 230)
@w.signal_connect("destroy") { Gtk::main_quit }
@w.set_gravity(Gdk::Window::GRAVITY_SOUTH_EAST)
width, height = @w.get_size_request
@w.move(Gdk.screen_width - width,Gdk.screen_height() - height)
load_widget
@w.show_all
end
def load_widget url='http://m.rememberthemilk.com/'
@moz = Gtk::MozEmbed.new
@box = Gtk::VBox.new false
@box.pack_start @moz
@w.add @box
@moz.location = url
end
end
# Main program
if __FILE__ == $0
RtmTiny.new
Gtk.init
Gtk.main
end