Sha256: 31f7577efce8205aa6353f7f918fba66e094dfbb3fdf6f2c66a94866d3110b79
Contents?: true
Size: 565 Bytes
Versions: 11
Compression:
Stored size: 565 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 send_command MultiLogger.info("trigger event: #{command}") exec_command(command) end private def exec_command(command) `#{command}` unless command.nil? end def command Config.command(self) || "xdotool key #{Config.shortcut(self)}" end end end
Version data entries
11 entries across 11 versions & 1 rubygems