Add slate command for spotify, half screen commands. Emacs.d bump.

This commit is contained in:
Ivan Malison 2014-10-25 17:51:05 -07:00
parent 875117a64b
commit d2f75a1d47
3 changed files with 20 additions and 6 deletions

@ -1 +1 @@
Subproject commit 5466bf097ec4cf9f4029a70fb7365b5495e8160b
Subproject commit e6e801fba96f0c355418542e1fbdc0de41135d96

View File

@ -44,14 +44,25 @@ hyperBindAll({
width: "screenSizeX",
height: "screenSizeY"
}),
q: quarterCorner("top-left"),
w: quarterCorner("top-right"),
a: quarterCorner("bottom-left"),
s: quarterCorner("bottom-right"),
q: slate.op("corner", {
direction: "top-left",
width: "screenSizeX/2",
height: "screenSizeY"
}),
w: slate.op("corner", {
direction: "top-right",
width: "screenSizeX/2",
height: "screenSizeY"
}),
a: quarterCorner("top-left"),
s: quarterCorner("top-right"),
z: quarterCorner("bottom-left"),
x: quarterCorner("bottom-right"),
// App focus
e: focusApp("Emacs"),
c: focusApp("Google Chrome"),
t: focusApp("iTerm"),
m: focusApp("Spotify"),
// Slate operations
r: slate.op("relaunch"),
u: slate.op("undo")

View File

@ -91,7 +91,10 @@ def enable_access_for_assistive_devices(ctx):
user_application = os.path.expanduser('~' + app_string)
enable_access_if_exists(ctx, user_application)
enable_access_if_exists(ctx, app_string)
enable_access_if_exists("/Applications/Karabiner.app/Contents/Applications/Karabiner_AXNotifier.app")
enable_access_if_exists(
ctx,
"/Applications/Karabiner.app/Contents/Applications/Karabiner_AXNotifier.app"
)
def enable_access_if_exists(ctx, app_string):