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 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.

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.

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

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.