Terminals

parent 72f9b5d3
......@@ -8,6 +8,16 @@ https://www.hammerspoon.org/
References to "hyper" mean a key-combination of `ctrl + alt + cmd`
References to "placid" mean a key-combination of `ctrl ´+ cmd`
## Installation
- Download Hammerspoon from their original page and familiarize yourself a bit
with the software
- Copy and paste either bits and pieces from my Hammerspoon dotfiles here or
clone this entire repo using:
```
git clone git@git.picodevelopment.nl:hendrikpeter/dotfiles-hammerspoon.git ~/.hammerspoon
```
## Features
### Window Manager
This Hammerspoon config makes use of the MiroWindowManager. A fast and rich
......@@ -38,6 +48,15 @@ Hit `cmd + escape` to leave the normal OSX insert mode and use Vim key-bindings
to navigate around. You can get back into insert mode by pressing `A`, `a`,
`I`, `i` or `c`.
## Terminal launcher
Linux has had this amazing feature where you can hit `alt + ctrl + t` to quickly
open a terminal window. I miss that on OSX. This small terminal-launcher applet
fixes that. It will open the terminal if not open, or activate it when an
instance is running somewhere.
I use the "Alacritty" terminal, a rust based terminal. But you can replace
Alacritty with your own favorite terminal app.
### WifiWatcher
WiFi watcher does cool things as you enter or leave WiFi hotspots
......@@ -5,40 +5,45 @@
-- More info and download links to the software can be found on their site
-- https://www.hammerspoon.org/
hyper = {"ctrl", "alt", "cmd"}
placid = {"ctrl", "cmd"}
hyper = {'ctrl', 'alt', 'cmd'}
placid = {'ctrl', 'cmd'}
-- Window manager
hs.loadSpoon("MiroWindowsManager")
hs.loadSpoon('MiroWindowsManager')
hs.window.animationDuration = 0.3
spoon.MiroWindowsManager:bindHotkeys({
up = {hyper, "K"},
right = {hyper, "L"},
down = {hyper, "J"},
left = {hyper, "H"},
fullscreen = {hyper, "g"}
up = {hyper, 'K'},
right = {hyper, 'L'},
down = {hyper, 'J'},
left = {hyper, 'H'},
fullscreen = {hyper, 'g'}
})
-- Some Ad-ons for the window manager
require('SelfSpoons/WindowManagement')
-- Clipboard Manager
hs.loadSpoon("ClipboardTool")
hs.loadSpoon('ClipboardTool')
spoon.ClipboardTool.hist_size = 100
spoon.ClipboardTool.show_in_menubar = false
spoon.ClipboardTool:start()
spoon.ClipboardTool:bindHotkeys({
toggle_clipboard = {placid, "V"}
toggle_clipboard = {placid, 'V'}
})
-- Vim all the things
vim = hs.loadSpoon('VimMode')
vim:disableForApp('iTerm2')
vim:disableForApp('Alacritty')
hs.hotkey.bind({'cmd'}, "escape", function()
hs.hotkey.bind({'cmd'}, 'escape', function()
vim:enter()
end)
-- Open the terminal (like ctrl + alt + t on linux)
hs.hotkey.bind(placid, 'T', function()
hs.application.open('Alacritty')
end)
-- Awesome WIFI tools
require('SelfSpoons/WifiWatcher')
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment