Skip to content

Instantly share code, notes, and snippets.

View jp-a's full-sized avatar

Jean-Philippe Avelange jp-a

View GitHub Profile
@jp-a
jp-a / init.lua
Created October 14, 2016 16:45
TouchCursor like key-binding (spacebar as hyperkey) implemented with HammerSpoon, until Karabiner-Elements supports hyper-keys!
-- Amsterdam, October 2016
-- Needed a replacement solution after Karabiner stopped working with MacOS Sierra, and until
-- this is solved with Karabiner-Elements: https://github.com/tekezo/Karabiner-Elements/issues/16
-- Highly copied from https://gist.github.com/prenagha/1c28f71cb4d52b3133a4bff1b3849c3e and the likes...
modal = hs.hotkey.modal.new( {}, 'f20' );
-- Mostly for debug reason: shows when the modal is active
--function modal:entered() hs.alert.closeAll(); hs.alert.show( "Vim mode active", 999999 ) end
--function modal:exited() hs.alert.closeAll() end
@jp-a
jp-a / README.md
Created April 5, 2016 17:17
fresh block
@jp-a
jp-a / .block
Created April 5, 2016 06:34
Connecting the dots...
license: gpl-3.0
@jp-a
jp-a / .block
Last active April 4, 2016 20:45
Connecting the dots...
license: gpl-3.0
#!/bin/sh
# Some things taken from here
# https://github.com/mathiasbynens/dotfiles/blob/master/.osx
# Set the colours you can use
black='\033[0;30m'
white='\033[0;37m'
red='\033[0;31m'
green='\033[0;32m'