Termtterã使ã£ã¦ã¿ã
æ¬å®¶ãµã¤ã
Ubuntuã«ã¤ã³ã¹ãã¼ã«ããã«ã¯
端æ«ãéãã¦ä»¥ä¸ãå ¥å(Rubyé¢ä¿[net/httpsã¨ã]ã¨ã¡ãã»ã¼ã¸éç¥ç¨ã®notify-sendé¢ä¿)
% sudo apt-get install ruby-1.8-dev rubygems % sudo apt-get install libopenssl-ruby % sudo apt-get install libnotify-bin % sudo gem install termtter
å®è¡
端æ«ã§ããã ãã§OK
% termtter
temtterå
ã§helpãå
¥åããã¨ã³ãã³ããåºã¦ããã®ã§ãããè¦ãã°ã³ãã³ããåãã
@ã®å¾ã«æåãå°ãå
¥åãã¦tabãæ¼ãã¨ååã®è£å®ãã§ããï¼
è¨å®ãã¡ã¤ã«
è¨å®ãã¡ã¤ã«ã®å ´æ
~/.termtter/config
Ubuntuã®NotifyOSDã«ã対å¿ãã¦ããã®ã§è¨å®ãã
Macã®å ´åã¯notify-sendã§ã¯ãªãgrowlã«ããã¨å¤ååãã¨æãã¾ã
ãã¨ãnotify-send2ã¨notify-send3ã¨ãããã©ã°ã¤ã³ãå
¥ã£ã¦ãã¾ã
èªåã®configãã¡ã¤ã«ã®ä¸èº«
config.user_name = 'ã¦ã¼ã¶åãæ¸ã' config.password = 'ãã¹ã¯ã¼ããæ¸ã' # åæåæã«ããã®å¦çãå¼ã°ãã¾ã Termtter::Client.init do |t| # 使ç¨ããããã©ã°ã¤ã³ãããã§ãã¼ããã¾ã t.plug 'notify-send' end
ãã®è¨å®ã§Ubuntu9.10ã ã¨ä¸ã®ç»åã®ããã«è¡¨ç¤ºãããã¨æãã¾ãï¼
追è¨
notify-send3ã使ãå ´åRMagickã¨ãããã¤ãå¿
è¦ãªã®ã§
% sudo apt-get install ruby1.8-dev imagemagick libmagick9-dev % sudo gem install rmagick
ã端æ«ã§å®è¡ãã¦ã¤ã³ã¹ãã¼ã«ãã¦ãã
Notify-OSDã¯è¤æ°ãããã¢ããã«å¯¾å¿ã§ãã¦ãªãã®ããã¡ã ã¨æã
æã®Notifyã®æ¹ã¯ã¡ããã¨ä¸åº¦ã«ãããã表示ã§ãã¦ããã®ã§ã©ãã«ãã§ããªããã®ãã»ã»ã»
âä½ã¨ããã!! http://d.hatena.ne.jp/voidy21/20091106