From d2f75a1d47b2d6e2c5b1479ee3be3d50c3a9d547 Mon Sep 17 00:00:00 2001 From: Ivan Malison Date: Sat, 25 Oct 2014 17:51:05 -0700 Subject: [PATCH] Add slate command for spotify, half screen commands. Emacs.d bump. --- dotfiles/emacs.d | 2 +- dotfiles/slate.js | 19 +++++++++++++++---- tasks/osx.py | 5 ++++- 3 files changed, 20 insertions(+), 6 deletions(-) diff --git a/dotfiles/emacs.d b/dotfiles/emacs.d index 5466bf09..e6e801fb 160000 --- a/dotfiles/emacs.d +++ b/dotfiles/emacs.d @@ -1 +1 @@ -Subproject commit 5466bf097ec4cf9f4029a70fb7365b5495e8160b +Subproject commit e6e801fba96f0c355418542e1fbdc0de41135d96 diff --git a/dotfiles/slate.js b/dotfiles/slate.js index d8cc2e83..32f54a34 100644 --- a/dotfiles/slate.js +++ b/dotfiles/slate.js @@ -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") diff --git a/tasks/osx.py b/tasks/osx.py index b760729b..6e534849 100644 --- a/tasks/osx.py +++ b/tasks/osx.py @@ -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):