Sha256: 7be175404d793df5c311544a2c2b495825fb76e3e30003a8f8ce119b7d130ec3
Contents?: true
Size: 562 Bytes
Versions: 1
Compression:
Stored size: 562 Bytes
Contents
module Fusuma # manage actions class EventTrigger def initialize(finger, direction, action_type) @finger = finger.to_i @direction = direction @action_type = action_type end attr_reader :finger, :direction, :action_type def exec_command return if command.nil? `#{command}` MultiLogger.info("trigger event: #{command}") end private def command Config.command(self).tap { |c| return c if c } Config.shortcut(self).tap { |s| return "xdotool key #{s}" if s } end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
fusuma-0.9.2 | lib/fusuma/event_trigger.rb |