forked from colonelpanic/dotfiles
karabiner fixes.
This commit is contained in:
parent
b7b92a6e80
commit
6e9d746e93
@ -10,7 +10,7 @@ def setup(ctx):
|
||||
brew(ctx)
|
||||
cider(ctx)
|
||||
access_for_assistive_devices(ctx)
|
||||
hyper(ctx)
|
||||
karabiner(ctx)
|
||||
locate(ctx)
|
||||
set_path_for_launchd(ctx)
|
||||
rvm(ctx)
|
||||
@ -81,6 +81,10 @@ def access_for_assistive_devices(ctx):
|
||||
user_application = os.path.expanduser('~' + app_string)
|
||||
access_if_exists(ctx, user_application)
|
||||
access_if_exists(ctx, app_string)
|
||||
access_if_exists(
|
||||
ctx,
|
||||
"/Applications/Karabiner.app/"
|
||||
)
|
||||
access_if_exists(
|
||||
ctx,
|
||||
"/Applications/Karabiner.app/Contents/Applications/"
|
||||
@ -90,6 +94,7 @@ def access_for_assistive_devices(ctx):
|
||||
|
||||
def access_if_exists(ctx, app_string):
|
||||
if os.path.exists(app_string):
|
||||
print("enabling access for {0}", app_string)
|
||||
ctx.run(
|
||||
'zsh -c "source ~/.zshrc && '
|
||||
'enable_access_for_assistive_devices \"{0}\""'.format(
|
||||
|
Loading…
Reference in New Issue
Block a user