GithubHelp home page GithubHelp logo

.hammerspoon's Introduction

Hi there ๐Ÿ‘‹

.hammerspoon's People

Contributors

maksay avatar ztomer avatar

Stargazers

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

Watchers

 avatar  avatar  avatar

.hammerspoon's Issues

State caching does not consider closed/ terminated apps

Hence, the cache grow to infinity.

Solutions:
a. Ignore. at most, it will grow to a few million entries after several years. Negligible considering there's Gigabytes of memory for each machine.
b. Spawn an event on each window creating, remove the cache entries on each destruction.
--> Costly?
c. GC every X calls and remove windows that are no longer in the cache. Easy and can be done later. Spiky.

Focus oriented windowing

Blockers

  • No Mac

Motivation

I want to assign windows to a location, without starting to move and resize them manually.
Note: this is more or less specific to my own workflow, so maybe keep the original API intact

Ideas (which is also a rough roadmap / outline, I'm scratching my own itch here)

  • Allow changing the number of horizontal sections on the fly by using specific shortcuts.
    eg.
    X is modifier, 6, 7, 8 are used since they are on the right side of my split ergo keyboard (Kinesis Advantage)
    X + 9 -> 1 horizontal window (For vertical screen)
    X + 6 -> 2 horizontal windows
    X + 7 -> 3 horizontal windows
    X + 8 -> 4 horizontal windows

    • Pressing a shortcut N times will cycle through different layouts for this number of windows
  • Map location to the right keywell.

    • pressing the same shortcut multiple times will cycle through modes
    • Monitor specific defaults (Laptop - 2, main monitor - 3, secondary monitor (vertical) - 1)
y|u|i|o
h|j|k|l
n|m|,|.

-- Active for all number of horizontal windows:
X + y -> assign window to top right
X + h -> assign window to middle right
X + n -> assign window to bottom right
-- Active for all number of horizontal windows:
X + u -> assign window to top-middle
X + j -> assign window to middle-middle
X + m -> assign window to bottom-middle
-- Active for 3 and 4 horizontal windows:
X + i -> assign window to top-left
X + k -> assign window to middle-left
X + , -> assign window to bottom-left
-- Active for 4 horizontal windows:
X + o -> assign window to top-left, left
X + l -> assign window to middle-left, left
X + . -> assign window to bottom-left, left

  • Focus window to center ('''X + p'''), on second keypress, return to former position.
  • Don't remove windows from the element cache until they are destroyed - this will allow changing monitors and returning to fixed positions
  • Keep Manual window switching
  • Keep Expose mode (X + ;)
  • Keep move monitor
  • Keep Pomodoro mode
  • Save and load window presents (Save: X+\ + <1..0>, Load: X + ' + <1..0>)

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.