Grabs in sublets

Sublets can now use grabs too!
Added by Christoph Kappel about 1 month ago

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:

Numbers: on /off1 configure :grabby do |s|
2   s.interval = 5
3 end
5 grab "A-b" do |s, c|
6   puts "sublet name: %s" % [ ]
7   puts "pressed on : %s" % [ ]
8 end