Project

General

Profile

unexist.dev

Assorted tidbits and projects

Grabs in sublets

Sublets can now use grabs too!
Added by Christoph Kappel about 14 years 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:

{{hide}}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

Comments