Giter VIP home page Giter VIP logo

nonissue / hammerspoon Goto Github PK

View Code? Open in Web Editor NEW
16.0 5.0 1.0 4.69 MB

A hammerspoon config with a bunch of custom spoons (sleep timer, resolution changer, paywall buster, safari hotkey utilities, window management with undo, etc).

Home Page: http://www.nonissue.org

License: MIT License

Lua 100.00%
lua hammerspoon macos automation plugins window-management sleep-timer resolution-switcher menubar-app osx

hammerspoon's Introduction

a hammerspoon config Codacy Badge

stars license

Custom Spoons

My custom spoons can be found in the _Spoons directory. They aren't really designed to be plug and play, there is often some manually configuration required, but the code is generally documented / relatively simple. Let me know if you have issues / questions / wish for me to officially publish any of them.

Clippy.spoon

This is only useful if you want to have screenshots both saved to disk and copied to your clipboard automatically. My default, macOS only does one or the other. To use Clippy.spoon configure macOS to save screenshots to disk and set the path to the screenshots (by default, ~/Desktop) in Clippy.spoon. It then watches this directory for screenshots, and when new ones are added, automatically copies them to the clipboard.

Context.spoon

Kind of skunkworks at the moment, you can safely ignore it.

CTRLESC.spoon

Rebinds caps lock to ESC when pressed alone, and when pressed in combination with other keys, acts as CTRL modifier. Eg. CapsLock + C sends CTRL + C.

EasyTOTP.spoon

Adds menubar icon that with a click types a TOTP token and copies it to clipboard.

Fenestra.spoon

My window management solution. Features undo!

Resolute.spoon

Utility for changing resolution scaling on MBP retina displays. Only tested on my 15" MBP.

ZZZ.spoon

macOS menubar sleep timer. Puts mac to sleep after XXm. Shows countdown in menubar, and you can snooze using menubar icon.

hammerspoon's People

Contributors

nonissue avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

Forkers

bradparks

hammerspoon's Issues

Feature: Cribs (Spoon)

Write a Spoon that implements hotkey CheatSheet-esque overlays. Make it so it can be applicable-aware, and can load different lists for different apps. Also, provide a hs.chooser interface.

Prepare Zzz Spoon for Publication

Tasks

  • Cleanup code
  • Ensure all Spoons conform to suggested practices (eg. use bindHotkeys)
  • Add conformant documentation
  • Add necessary code comments
  • Verify spoons work on clean install without issue

Zzz.spoon Tasks

DONT DO:

- [ ] Remove chooser (EDIT: Shouldn't remove chooser as we use it for entering custom timers)

TO DO DO:

  • remove unused/functions vars
  • proper spoon docs
  • proper spoon-style key binding
  • fix lag with timer inc/dec actions
    • timer has to be deleted then recreated which looks bad
  • refactor so only one timer object needed
    • currently using two:
      doAt for sysleep
      doEvery for menubar display
  • simplify timerChooserCallback() logic
  • clean up / optimize table creation
  • Remove obj:setStyledTitle
  • Remove obj:styleText
  • Disable debug options
  • Remove brightness adjustment logic for now

Next

  • bind menubaritem to hotkey to invoke
    • Dunno if this is possible?

Future

  • Reduce volume and brightness by XX% over sleep time period?
  • Allow user to modify options (updateFreq, updateInterval, etc)

Zzz.spoon (bug): Timer value can go negative.

The countdown timer value can sometimes end up being a negative number in very specific circumstances. I think it occurs when:

  • A sleep timer is running
  • The system is put to sleep by a method other than Zzz.spoon before the sleep timer elapses.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.