Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- widget("gmail") {
- set :interval => 5.minutes
- set :username => "gigamo"
- set :password => GMAIL_PWD
- property("text") {
- # Make the widget blink upon new mail!
- BLINK[@identifier] ||= []
- if @count > 0
- if BLINK[@identifier].empty?
- BLINK[@identifier] << IO.popen("#{ENV["HOME"]}/bin/blink.rb 1.0 0 top #@identifier text '#{urgent(" #@count")}' '#{normal(" #@count")}'")
- end
- else
- BLINK[@identifier].each do |blinker|
- Process.kill("SIGINT", blinker.pid)
- end
- end
- # # The actual string that's displayed
- # if @count > 0 : urgent(" #@count")
- # else normal(" #@count")
- # end
- }
- }
Add Comment
Please, Sign In to add comment