Skip to content

vincendep/totem

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 

Repository files navigation

Totem

License: MIT Hammerspoon Version

Totem is a Hammerspoon window manager script that allows you to easily manage window positions using hotkeys.

Features

  • Move windows to predefined positions on the screen
  • Supports various window positions such as center, left, right, top, bottom, and more
  • Easily configurable hotkeys

Installation

  1. Install Hammerspoon.
  2. Clone this repository or download the init.lua file.
  3. Place the init.lua file in your Hammerspoon configuration directory (~/.hammerspoon/).

Usage

  1. Open Hammerspoon and ensure it is running.

  2. Edit your ~/.hammerspoon/init.lua file to include the following line to load Totem:

    local totem = require("init")
    totem:init()
  3. Configure your hotkeys by calling the bindHotKeys function with your desired key mappings. For example:

    totem:bindHotKeys({
        center = {{"cmd", "alt"}, "C"},
        left = {{"cmd", "alt"}, "Left"},
        right = {{"cmd", "alt"}, "Right"},
        top = {{"cmd", "alt"}, "Up"},
        bottom = {{"cmd", "alt"}, "Down"},
        top_left = {{"cmd", "alt"}, "1"},
        top_right = {{"cmd", "alt"}, "2"},
        bottom_left = {{"cmd", "alt"}, "3"},
        bottom_right = {{"cmd", "alt"}, "4"},
    })
  4. Reload your Hammerspoon configuration by clicking the Hammerspoon menu icon and selecting "Reload Config".

License

This project is licensed under the MIT License. See the LICENSE file for details.

Author

Vincenzo De Petris - vincenzodepetris@gmail.com

Homepage

https://github.com/vincendep/totem

About

Hammerspoon window manager

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages