Closed matthewwithanm closed 9 years ago
Actually, this is already possible (even though not well documented). The current Version tries to load all names from $HOME//Library/Application Support/Alfred 2/Workflow Data/de.leanovate.alfred.layout/layouts.yaml If that one does not exists ist falls back to this one https://github.com/untoldwind/alfred2-layout/blob/master/src/default_layouts.yaml (which you can use as template)
Basically it is just a list of: name: The name of the layout (i.e. what you type after "lay") display: What should be displayed in the Alfred list forOtherScreen: Yes/No if the layout applies for "layOther" as well command: The actual layout command.
Layout commands are "command:parameters" fullscreen:toggle = Toggle fullscreen set:left,top,right,bottom = Move and resize to coordinates relative to screen (0.0 - 1.0) move:centerX,centerY = Just move window resize:leftDelta,topDelta,rightDelta,bottomDelta = Grow or shrink window resizeAll:scale = Grow or shrink window in all directions at once
So in short: Just copy https://github.com/untoldwind/alfred2-layout/blob/master/src/default_layouts.yaml to $HOME//Library/Application Support/Alfred 2/Workflow Data/de.leanovate.alfred.layout/layouts.yaml and configure the workflow to your liking
Cool, thanks!
It would be nice if you could create custom names for certain layouts.