Grabs in sublets
Sublets can now use grabs too!
After a rewrite (r2204) of the ruby handling inside of subtle, sublets can now use grabs too. The syntax is almost the same as for grabs inside of the config. Please be aware that there is no checking for duplicates, the last one wins.
Here is a short example:
configure :grabby do |s| s.interval = 5 end grab "A-b" do |s, c| puts "sublet name: %s" % [ s.name ] puts "pressed on : %s" % [ c.name ] end