Coder Social home page Coder Social logo

jonmcoe / div Goto Github PK

View Code? Open in Web Editor NEW

This project forked from pawelgrzybek/div

0.0 0.0 0.0 397 KB

Div — a simple Alfred window manager

Home Page: https://pawelgrzybek.com/div-simple-alfred-windows-manager/

AppleScript 98.20% Rich Text Format 1.80%

div's Introduction

Div — simple Alfred windows manager

Div — simple Alfred windows manager

This is simple Alfred workflow to help you manage opened windows. It is simple (see the short applescript in div.scpt) but powerful tool. It allows you to create your own layouts, custom sizes and custom proportion.

Requirements

Some of the mac OS apps are non-scriptable which means they are not working very well with applescript. Fortunately "SystemEvents" can handle them really well. Few simple steps are required to enable Alfred's access to Acessibility tools.

  1. Open System Preferences
  2. Go to Security & Privacy
  3. Go to last Privacy tab
  4. On the left panel choose Accessibility
  5. Unlock access to preferences by clicking lock in bottom left corner and pass your password
  6. Click small + icon and add Alfred from the list.
  7. Done :)

Other windows managers requires similar procedure. It is not related with Div only. If you use older operating system than El Capitan, have a look at great instruction on Mizage website.

Download

How to use

I published a detailed instruction on my personal website. Have a look if you are keen to understand a full potential of Div.

Choose predefined layout

Simply type div in Alfred window and choose layout from predefined list.

Custom bounds

Choose custom bounds by passing 4 space separated values. For example div 20 20 80 80 will place top left corner of an app 20% from top and 20% from left edge of a screen, and bottom right corner 80% from top and 80% from left edge of a screen.

Custom size

Choose custom size by passing 2 space separated values. For example div 800 600 will resize your window to 800px width and 600px height and place the window on the middle of a screen.

Hotkeys

Use predefined settings and add custom hotkeys to them to place windows in common locations:

  • ⌃ ⌥ 1 Full
  • ⌃ ⌥ 2 Medium
  • ⌃ ⌥ 3 Small
  • ⌃ ⌥ ← Left
  • ⌃ ⌥ → Right
  • ⌃ ⌥ ↑ Top
  • ⌃ ⌥ ↓ Bottom

div's People

Contributors

jonmcoe avatar pawelgrzybek 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.