<commit_before># Hydra

*Hack your OS X desktop environment*

Hydra is a lightweight window manager with a powerful API and an extremely small footprint.

* Current version: **1.0**
* Requires: OS X 10.9 and up

#### Install

Download [Hydra-LATEST.app.tar.gz](https://raw.github.com/sdegutis/hydra/master/Builds/Hydra-LATEST.app.tar.gz), unzip, right-click app, choose "Open"

#### Usage

Create `~/.hydra/init.lua`. Then add stuff like this in it:

~~~lua
local hotkey = require("hotkey")
local window = require("window")
local alert = require("alert")

alert.show("Hydra started!")

hotkey.bind({"cmd"}, "E", function()
    local win = window.focusedwindow()
    local frame = win:frame()
    frame.x = frame.x + 10
    frame.h = frame.h - 10
    win:setframe(frame)
end)
~~~

Or just run the app and it'll give you more ideas.

* For more ideas, read other people's configs [in the wiki](https://github.com/sdegutis/Hydra/wiki).

#### Documentation

- [Hydra 1.0 API](https://github.com/sdegutis/Hydra/wiki/Hydra-1.0-API)

#### License

> Released under MIT license.
>
> Copyright (c) 2013 <NAME>
>
> Permission is hereby granted, free of charge, to any person obtaining a copy
> of this software and associated documentation files (the "Software"), to deal
> in the Software without restriction, including without limitation the rights
> to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
> copies of the Software, and to permit persons to whom the Software is
> furnished to do so, subject to the following conditions:
><commit_msg>Updating README somewhat.<commit_after># Hydra

*Hack your OS X desktop environment*

Hydra is a lightweight window manager with a powerful API and an extremely small footprint.

* Requires: OS X 10.9 and up

#### Install

Downloads are in the Releases link above.

#### Usage

Create `~/.hydra/init.lua`. Then add stuff like this in it:

~~~lua
api.alert("Hydra started!")

api.hotkey.bind({"cmd"}, "E", function()
    local win = api.window.focusedwindow()
    local frame = win:frame()
    frame.x = frame.x + 10
    frame.h = frame.h - 10
    win:setframe(frame)
end)
~~~

Or just run the app and it'll give you more ideas.

* For more ideas, read other people's configs [in the wiki](https://github.com/sdegutis/Hydra/wiki).

#### Documentation

- [Hydra 1.0 API](https://github.com/sdegutis/Hydra/wiki/Hydra-1.0-API)

#### License

> Released under MIT license.
>
> Copyright (c) 2013 <NAME>
>
> Permission is hereby granted, free of charge, to any person obtaining a copy
> of this software and associated documentation files (the "Software"), to deal
> in the Software without restriction, including without limitation the rights
> to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
> copies of the Software, and to permit persons to whom the Software is
> furnished to do so, subject to the following conditions:
>
{'fraction_non_alphanumeric': 0.12039903680770554, 'fraction_numerical': 0.011007911936704506, 'mean_word_length': 4.110720562390158, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 27, 'https://': 5, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4175784', 'n_tokens_mistral': 956, 'n_tokens_neox': 899, 'n_words': 348}