about summary refs log tree commit diff
path: root/configs/os_x/slate/.slate.js
diff options
context:
space:
mode:
authorWilliam Carroll <wpcarro@gmail.com>2019-03-18T14·14+0000
committerWilliam Carroll <wpcarro@gmail.com>2019-03-18T14·14+0000
commitf7b3e0a7a92903307ef1f4c66992721be6e01e08 (patch)
tree11f1959ee6dc34d2f8b20e6425cbb85700b55c63 /configs/os_x/slate/.slate.js
parentbf33edaa6efbf3572d9335bb07b530af249de0d2 (diff)
Drop OSX support; support desktop, laptop, cloudtop
Dropping support for OSX. Moving forward these dotfiles will depend on Linux
systems. Furthermore, since I'm support a ~/bin, the machines that consume these
dotfiles depend on i386 architectures. Linux and i386 are two dependencies that
I'm okay with since the leverage this assumption provides, makes their existence
tolerable.

There is some Google leakage herein, which includes aliases, functions, and
mentions of cloudtop. For now, this is okay. I may break the Google specific
code into its own repository, but for now, this is less maintenance.

This also introduces a ~/.profile instead of erroneously defining environment
variables in my zshrc file, which was unadvised.

This is a large commit and also introduces new aliases, variables, functions
that I accumulated over the past week or so while migrating away from OSX and
onto my new setup. Hopefully in the future I'll be more precise with my commits.
Diffstat (limited to 'configs/os_x/slate/.slate.js')
-rw-r--r--configs/os_x/slate/.slate.js123
1 files changed, 0 insertions, 123 deletions
diff --git a/configs/os_x/slate/.slate.js b/configs/os_x/slate/.slate.js
deleted file mode 100644
index e097d935faff..000000000000
--- a/configs/os_x/slate/.slate.js
+++ /dev/null
@@ -1,123 +0,0 @@
-// Support flag to branch KBDs depending on presence of Ergodox keyboard.
-
-// Since the Ergodox has complicated modifier keys like "hyper" and "meh" key,
-// we should prefer to use these when that keyboard is attached because it
-// reduces the potential for collisions for Emacs KBDs. This becomes
-// problematic, however, when the Ergodox is not attached because these keys are
-// unavailable. Slate KBDs. Under these circumstances, potential collisions
-// with Emacs KBDs is acceptable.
-
-var ergodox_attached = true;
-
-var HYPER = ":alt;shift;cmd;ctrl";
-var MEH = ":alt;shift;ctrl";
-
-var modal_key = ergodox_attached ? HYPER : ":ctrl;shift";
-var resize_key = ergodox_attached ? MEH : ":alt;shift";
-
-// Configs
-S.cfga({
-  defaultToCurrentScreen: true,
-  secondsBetweenRepeat: 0.1,
-  checkDefaultsOnLoad: true,
-  focusCheckWidthMax: 3000
-});
-
-// window resizing bindings
-var window_resizing_bindings = {
-  ";": {
-    x: "screenSizeX/3*2 + screenOriginX+20",
-    y: "screenOriginY+20",
-    width: "screenSizeX/3 - 40",
-    height: "screenSizeY-100"
-  },
-  g: {
-    x: "screenOriginX+20",
-    y: "screenOriginY+20",
-    width: "screenSizeX/3*2 - 40",
-    height: "screenSizeY-100"
-  },
-  o: {
-    x: "screenSizeX / 2 + screenOriginX + 20",
-    y: "screenOriginY + 20",
-    width: "screenSizeX / 2 - 40",
-    height: "(screenSizeY - 120) / 2"
-  },
-  ",": {
-    x: "screenSizeX / 2 + screenOriginX + 20",
-    y: "(screenSizeY - 120) / 2 + 20 + 20",
-    width: "screenSizeX / 2 - 40",
-    height: "(screenSizeY - 120) / 2"
-  },
-  h: {
-    x: "screenOriginX+20",
-    y: "screenOriginY+20",
-    width: "screenSizeX*0.5 - 40",
-    height: "screenSizeY-100"
-  },
-  j: {
-    x: "screenOriginX+screenSizeX/6",
-    y: "screenOriginY+20",
-    width: "2*screenSizeX/3",
-    height: "screenSizeY - 100"
-  },
-  k: {
-    x: "screenOriginX+20",
-    y: "screenOriginY+20",
-    width: "screenSizeX - 40",
-    height: "screenSizeY - 100"
-  },
-  l: {
-    x: "screenSizeX/2 + screenOriginX+20",
-    y: "screenOriginY+20",
-    width: "screenSizeX*0.5 - 40",
-    height: "screenSizeY-100"
-  }
-};
-
-var window_resizing_bindings = Object.keys(window_resizing_bindings).reduce(
-  function(acc, kbd) {
-    acc[kbd + resize_key] = S.op("move", window_resizing_bindings[kbd]);
-    return acc;
-  },
-  {}
-);
-
-S.bnda(window_resizing_bindings);
-
-// Moves applications across multiple screens
-var throwLeft = slate.operation("throw", {
-  screen: "0",
-  width: "screenSizeX",
-  height: "screenSizeY"
-});
-var throwRight = slate.operation("throw", {
-  screen: "1",
-  width: "screenSizeX",
-  height: "screenSizeY"
-});
-
-slate.bind("1:ctrl", throwLeft);
-slate.bind("2:ctrl", throwRight);
-
-var focus_apps = {
-  1: "1Password",
-  i: "iTunes",
-  a: "Atom",
-  h: "Dash",
-  e: "Emacs",
-  t: "iTerm2",
-  m: "Messages",
-  s: "Spotify",
-  c: "Google Chrome",
-  l: "LimeChat",
-  k: "Slack",
-  w: "Wireshark",
-  p: "Tomato One",
-  d: "Discord"
-};
-
-Object.keys(focus_apps).forEach(function(key) {
-  app = focus_apps[key];
-  S.bind(key + modal_key, S.op("focus", { app: app }));
-});