Skip to content
This repository was archived by the owner on Feb 16, 2020. It is now read-only.
This repository was archived by the owner on Feb 16, 2020. It is now read-only.

Multiple sections and restoring them by an assignable hotkey #8

@nickjj

Description

@nickjj

I've never worked with AHK before but is something like this possible?

Things work normally as is, but a new property is introduced to the WinPos.txt file where you can assign a hotkey to a specific section which defaults to [Win] + 0.

Something like this (I know the key binding is not the correct syntax):

SECTION: Monitors=1,MonitorPrimary=1; Desktop size:0,0,2560,1440; Key:[Win]+[Shift]+1

Then, when you press that key combo it would launch that section's window layout.

Use case:

When you want to have 4 or 5 different layouts for different things and you want to jump between using them without having to manually copy / paste things around in the WinPos.txt file.

Workaround for now:

From what I gathered, the only way to do this now would be to:

  1. Duplicate the current AHK script.

  2. Assign a different key combo for the duplicate script (1 instead of 0 for example for save / restore).

  3. Change WinPos.txt to be uniquely named (append a _1 or something to it).

  4. Do business as usual and pick the layout you want on demand.

That's kind of a lot of duplication!

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions