Layouts is an applescript and an alfred extension to easily move and resize application windows.
Go here for more info.
an applescript and alfred extension to manage window layouts
Home Page: http://projects.jga.me/layouts/
Wondering about build instructions, want to make some edits to this but not at all familiar with Alfred workflow dev
Hi, thank you for the plugin.
I've found that it won't work properly when using some app like Sublime Text 2 and Alfred v2 preference. Don't know is this a bug or not. Thanks
When typing in "layouts" I'd love to see common items here that I use often so I don't have to type them all up.
There should be some calculations done to the position depending on the orientation of the dock. We can get it with
tell application "System Events"
tell dock preferences
set dock_position to screen edge
end tell
end tell
Hi there Greg,
It seems that Layouts isn't counting the height/width occupied by the dock. I've been watching the code and it seems that it's absolute positioned (in bottom-left and bottom right) in the middle of the screen but it shouldnt as it falls behind the dock.
I wasn't able to fix it but here you may find some interesting notes about it:
https://discussions.apple.com/thread/3553498?start=0&tstart=0
@jgallen23
Thanks for creating this nice tool.
It works nicely with some applications: Finder, Final Cut Pro, Safari, Chrome, iTerm, Texmate
It does not work with some applications: Affinity Photo, Krita, PyCharm, VSCode, Blender, Clip Studio Paint
I notice that it typically works with Apple native applications or some older mature applications.
Other users may meet the similar issues before:
#6
Say I want to make the window a specific size, like 800x600 or 1024x768?
If not it may be a good feature request.
There's a small bug in the code for the case where the Dock is situated on the left of the screen. In getDisplayBounds, you have the following:
if screenEdge is bottom then
set item 4 of scrRes to (item 4 of scrRes) - dockHeight
else if screenEdge is left then
set item 1 of scrRes to dockWidth
set item 4 of scrRes to (item 4 of scrRes) - dockWidth
else if screenEdge is right then
set item 3 of scrRes to (item 3 of scrRes) - dockWidth
end if
That second line (set item 4...) in the left case causes windows to be resized to allow for the dock space underneath them. Removing it solves that problem.
Really appreciate the work you did on this, though - much obliged. Works fantastically.
It would be nice if you could create custom names for certain layouts.
Hi,
I am using layout with multiple screen (13" and 24"). the size calc is still ok, but there is problem with the positioning of the window, I guess it does consider the screen position configuration as it is set in the screen prefs.
I couldn't get the workflow to work at all, until I discovered that I hadn't enabled "access for assistive devices". Maybe you should add this to your installation instructions :)
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.