Skip to content

NickSeagull/hibiscus

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

39 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation


Hibiscus 🌺

An AutoHotkey framework that optimizes for happiness, inspired by Hammerspoon.

autohotkey version

What is Hibiscus?

Hibiscus is a framework that optimizes for your happiness, by providing functions that are predictable and consistent throughout their usage. It accomplishes this by providing a set of modules that are split by their main features.

These modules add better categorization and names to AutoHotkey, along with better functions that extend AutoHotkey in reusable blocks that you can use.

Contributing

Highly appreciate if you contribute to Hibiscus. Trying it and reporting issues and/or ideas that arise is something really great. Bug reports are helpful too! Make sure that you read the CONTRIBUTING.md file.

Getting Started

Make sure that you have the following things

  1. Clone this repo somewhere safe:
    cd C:\Users\yourname\some\safe\folder
    git clone https://github.com/NickSeagull/hibiscus
  2. Create a folder called Hibiscus in your My Documents folder.
  3. Inside of the Hibiscus folder you've just created, create an init.ahk file. This is where you will write your automation code.
  4. Go to the folder where you've cloned this repo to, using the file explorer.
  5. Open hibiscus.ahk
  6. Additionally, if you want Hibiscus to run when you log into Windows, create a shortcut to hibiscus.ahk in the shell:startup folder (you can access this folder by typing shell:startup into the address bar of the file explorer)

Updating Hibiscus

For now, Hibiscus doesn't have an auto-update feature, to update it, perform a git pull in the folder you've cloned it:

cd C:\Users\yourname\some\safe\folder\hibiscus
git pull

Usage

When using Hibiscus, you write code in the Hibiscus folder of your My Documents folder. This is called your Hibiscus configuration. We will refer to it in the guide as config.

Hibiscus pre-configures AutoHotkey to a set of sensible defaults, so don't bother adding stuff like #Warn All or #SingleInstance, Force in your config, as they are already enabled.

Hibiscus modules are accessible under the hs object. For example, you can make Hibiscus switch to an existing Edge window, and if it doesn't exist, open a new one by using:

hs.application.open("C:\Program Files (x86)\Microsoft\Edge\Application\msedge.exe")

Modules reference

You can find a reference of the modules and their functions in the docs folder.

Example configurations

Send a PR and add yours!

About

An AutoHotkey framework that optimizes for happiness, inspired by Hammerspoon 🌺

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published