Sha256: 178ef91e48041c90efc3c58e18194621697137531192417b0fe047fa56625cf5
Contents?: true
Size: 536 Bytes
Versions: 2
Compression:
Stored size: 536 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.info("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
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
fusuma-0.3.5 | lib/fusuma/gesture_info.rb |
fusuma-0.3.4 | lib/fusuma/gesture_info.rb |