hammerspoon tilin', rvm fixin'

This commit is contained in:
Haak Saxberg 2016-02-03 18:04:51 -08:00
parent 1285e535bc
commit 57577be6d5
5 changed files with 24 additions and 1 deletions

View file

@ -1,3 +1,5 @@
if [ -L ~/.bashrc ] || [ -f ~/.bashrc ]; then
source ~/.bashrc;
fi
[[ -s "$HOME/.rvm/scripts/rvm" ]] && source "$HOME/.rvm/scripts/rvm" # Load RVM into a shell session *as a function*

View file

@ -102,3 +102,5 @@ prompt_func() {
PS1=$PS1"> "
}
PROMPT_COMMAND=prompt_func
export PATH="$PATH:$HOME/.rvm/bin" # Add RVM to PATH for scripting

@ -0,0 +1 @@
Subproject commit 7609ad7802e24e453088aecf984126f6d5d6a593

View file

@ -1,11 +1,27 @@
--------------------------------------------
-----------------------------------------------
-- Set up
-----------------------------------------------
local tiling = require "hs.tiling"
local hotkey = require "hs.hotkey"
local hyper = {"shift", "cmd", "alt", "ctrl"}
local mash = {"ctrl", "cmd"}
hs.window.animationDuration = 0
-----------------------------------------------
-- auto-tile commands
-----------------------------------------------
hotkey.bind(mash, "j", function() tiling.cycle(1) end)
hotkey.bind(mash, "k", function() tiling.cycle(-1) end)
hotkey.bind(mash, "space", function() tiling.promote() end)
hotkey.bind(mash, "f", function() tiling.goToLayout("fullscreen") end)
hotkey.bind(mash, "f", function() tiling.goToLayout("fullscreen") end)
hotkey.bind(mash, "r", function() tiling.goToLayout("main-vertical") end)
hotkey.bind(mash, "c", function() tiling.goToLayout("columns") end)
-----------------------------------------------
-- hyper d for left one half window
-----------------------------------------------

View file

@ -36,3 +36,5 @@ eval "$(direnv hook zsh)"
# load RVM if it exists
[[ -s "$HOME/.rvm/scripts/rvm" ]] && . "$HOME/.rvm/scripts/rvm"
export PATH="$PATH:$HOME/.rvm/bin" # Add RVM to PATH for scripting