Sha256: 8a427c646bafe4cfd862e67670bf6998ca9834836306088f330b50988695fabb
Contents?: true
Size: 537 Bytes
Versions: 1
Compression:
Stored size: 537 Bytes
Contents
module Fusuma # manage actions class GestureInfo def initialize(finger, direction, action_type) @finger = finger.to_i @direction = direction @action_type = action_type end attr_reader :finger, :direction, :action_type def trigger_keyevent MultiLogger.debug("trigger keyevent: #{shortcut}") exec_xdotool(shortcut) end private def exec_xdotool(keys) `xdotool key #{keys}` unless keys.nil? end def shortcut Config.shortcut(self) end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
fusuma-0.3.3 | lib/fusuma/gesture_info.rb |