This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | diff --git a/extensions/keycodes/internal.m b/extensions/keycodes/internal.m | |
| index 8a1731e..dcdf405 100644 | |
| --- a/extensions/keycodes/internal.m | |
| +++ b/extensions/keycodes/internal.m | |
| @@ -24,7 +24,7 @@ int keycodes_cachemap(lua_State* L) { | |
| kVK_ANSI_4, kVK_ANSI_5, kVK_ANSI_6, kVK_ANSI_7, kVK_ANSI_8, kVK_ANSI_9, | |
| kVK_ANSI_Grave, kVK_ANSI_Equal, kVK_ANSI_Minus, kVK_ANSI_RightBracket, | |
| kVK_ANSI_LeftBracket, kVK_ANSI_Quote, kVK_ANSI_Semicolon, kVK_ANSI_Backslash, | |
| - kVK_ANSI_Comma, kVK_ANSI_Slash, kVK_ANSI_Period, | |
| + kVK_ANSI_Comma, kVK_ANSI_Slash, kVK_ANSI_Period, kVK_ISO_Section, | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | " Be iMproved | |
| set nocompatible | |
| filetype off | |
| set rtp+=~/.vim/bundle/vundle | |
| call vundle#rc() | |
| " Bundles | |
| Bundle 'gmarik/vundle' | |
| Bundle 'kien/ctrlp.vim' | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | # Uncomment this line to define a global platform for your project | |
| # platform :ios, '6.0' | |
| source 'https://github.com/CocoaPods/Specs.git' | |
| target 'Hammerspoon' do | |
| pod 'lua', '~> 5.2.3' | |
| post_install do |installer_representation| | |
| installer_representation.project.targets.each do |target| | |
| if (target.name == 'Pods-Hammerspoon-lua') then | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | #import <Cocoa/Cocoa.h> | |
| #import <Carbon/Carbon.h> | |
| #import <lauxlib.h> | |
| /// === hs.drawing === | |
| /// | |
| /// Primitives for drawing on the screen in various ways | |
| // Useful definitions | |
| #define USERDATA_TAG "hs.drawing" | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | --- | |
| - name: Ensure dotfiles repo is up to date | |
| action: git repo=ssh://[email protected]/cmsj/dotfiles.git dest=~/.dotfiles version=master recursive=no | |
| tags: | |
| - dotfiles | |
| - name: Ensure Hammerspoon repo is up to date | |
| action: git repo=ssh://[email protected]/cmsj/hammerspoon-config.git dest=~/.hammerspoon version=master recursive=no | |
| when: ansible_hostname == "pixukipa" | |
| tags: | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | #import <Foundation/Foundation.h> | |
| #import <Cocoa/Cocoa.h> | |
| #import <IOKit/IOKitLib.h> | |
| #import <IOKit/IOMessage.h> | |
| #import <IOKit/IOCFPlugIn.h> | |
| #import <IOKit/usb/IOUSBLib.h> | |
| #import <lauxlib.h> | |
| /// === hs.usb.watcher === | |
| /// | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | --[[ | |
| # Install dependencies. | |
| brew update | |
| brew install lua | |
| brew install luarocks | |
| brew install blueutil | |
| wget https://github.com/sdegutis/mjolnir/releases/download/0.4.3/Mjolnir-0.4.3.tgz | |
| mkdir -p ~/.luarocks | |
| mkdir -p ~/.mjolnir/ | |
| echo 'rocks_servers = { "http://rocks.moonscript.org" }' > ~/.luarocks/config.lua | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | local application = require "hs.application" | |
| local tiling = require "hs.tiling" -- git clone https://github.com/dsanson/hs.tiling $HOME/.hammerspoon/hs/tiling | |
| local hotkey = require "hs.hotkey" | |
| local mash = {"ctrl", "cmd"} | |
| local safari = nil | |
| -- settings | |
| hs.window.animationDuration = 0 -- disable window animations | |
| -- tiling | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | local events = hs.uielement.watcher | |
| watchers = {} | |
| function init() | |
| appsWatcher = hs.application.watcher.new(handleGlobalAppEvent) | |
| appsWatcher:start() | |
| -- Watch any apps that already exist | |
| local apps = hs.application.runningApplications() | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | <?xml version="1.0"?> | |
| <root> | |
| <replacementdef> | |
| <replacementname>HYPER</replacementname> | |
| <replacementvalue>COMMAND_R, ModifierFlag::OPTION_R | ModifierFlag::SHIFT_R | ModifierFlag::CONTROL_R | ModifierFlag::NONE</replacementvalue> | |
| </replacementdef> | |
| <vkopenurldef> | |
| <name>KeyCode::VK_OPEN_URL_HS_fnv</name> |