Giter Site home page Giter Site logo

.hammerspoon-6's Introduction

.hammerspoon

hammerspoon config

Weather menubar icon

Edit hs-weather/config.json to set location

Weather data: Yahoo Weather API requires an api key.
Air Quality Indice: From http://aqicn.org/ requires API key

Caffeine menubar icon

Desktop image chooser menubar icon

Chose between:

  1. Bing (IOTD: image of the day)
  2. Nasa apod (IOTD)
    • Doesn't work when IOTD is a video
    • Can mirror flip image
    • Require api key
  3. National geographic (IOTD)
    • Require api key
  4. Go Pro (IOTD)
    • Not very active
  5. Unsplash (Random or query)
    • Require api key
  6. Flickr (Random or 1280*800)
    • Require api key
  7. User's picture
    • set your favorite desktop image as .hammerspoon/BingDaily/media/userpic.jpeg
    • can show picture in finder
  8. User's folder

Key Bindings

Mackeys

  • F4 (dashboard key) to display/hide spootlight\n
  • F4 (dashboard key") to super if hold

super key

  • super + M = switch between light and dark mode in mojave
  • super + D = display/hide month's calendar upfront
  • super + F = launch facebook
  • super + N = launch google news
  • super + Q = quit all visible apps
  • super + R = Reload hammerspoon config
  • super + T = launch Terminal
  • super + = go to end of line
  • super + = go to beginning of line
  • super + cmd ⌘ + = resize window to left/right/down/up half screen
  • super + cmd ⌘ + @ = resize to whole screen

other

  • cmd ⌘+ctrl+L= gtranslate window

Installation

Copy .hammerspoon in your home dir

Create a file called api_keys.lua in .hammerspoon and complete as follow

local keys = {}

keys.nasa='your_key'

keys.flickr='your_key'

keys.unsplash_applicationId="your_key"
keys.unsplash_secret="your_key"
keys.unsplash_callbackUrl="your_key"

keys.translate="your_key"

keys.air="your_key"

keys.weather_app='your_key'
keys.weather_user='your_key'
keys.weather_secret='your_key'

return keys

Requirements

  • May require npm packages for IOTDs

Karabiner-element mappings

  • F3 (spaces) F11 (show desktop)
  • F4 (dashboard) to F18 (soon to be super)

Credit: some of the script, spoons and modules were adapted from

.hammerspoon-6's People

Contributors

raph06 avatar

Watchers

 avatar

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.