Skip to content
josephholsten edited this page Oct 19, 2014 · 21 revisions

Getting started

We're going to work our way through building a subset of common tiling window managers like spectacle and sizeup.

First let's build the traditional "Hello World!".

We'll need the mjolnir.hotkey and mjolnir.alert rocks:

luarocks install mjolnir.hotkey
luarocks install mjolnir.alert

Then in your config file enter:

local hotkey = require "mjolnir.hotkey"
local alert = require "mjolnir.alert"

hotkey.bind({"cmd", "alt", "ctrl"}, "H", function()
  alert.show("Hello World!")
end)

Reload your config and press Cmd+Alt+Ctrl+H. You should see a bubble in the middle of the screen with the text "Hello World!"

Clone this wiki locally