module Dotremap::Karabiner
Constants
- CLI_PATH
Public Class Methods
current_config()
click to toggle source
# File lib/dotremap/karabiner.rb, line 10 def self.current_config changed = `#{CLI_PATH} changed` config_by_changed(changed) end
reload_xml()
click to toggle source
# File lib/dotremap/karabiner.rb, line 6 def self.reload_xml system("#{CLI_PATH} reloadxml") end
Private Class Methods
config_by_changed(changed)
click to toggle source
# File lib/dotremap/karabiner.rb, line 17 def self.config_by_changed(changed) config = {} changed.each_line do |line| property, value = line.strip.split("=") config[property] = value end config end