Skip to content

Ability to save windows positions from CLI #79

@avengerx

Description

@avengerx

Currently the CLI seems only to be able to resize (at least as far as commands are listed in the CLI --help:

c:\apps\winresizer>windowresizer.cli.exe --help
 __        __  _               _                      ____                 _
 \ \      / / (_)  _ __     __| |   ___   __      __ |  _ \    ___   ___  (_)  ____   ___   _ __
  \ \ /\ / /  | | | '_ \   / _` |  / _ \  \ \ /\ / / | |_) |  / _ \ / __| | | |_  /  / _ \ | '__|
   \ V  V /   | | | | | | | (_| | | (_) |  \ V  V /  |  _ <  |  __/ \__ \ | |  / /  |  __/ | |
    \_/\_/    |_| |_| |_|  \__,_|  \___/    \_/\_/   |_| \_\  \___| |___/ |_| /___|  \___| |_|


Usage:
  windowresizer.cli [command] [options]

Options:
  --version       Show version information
  -?, -h, --help  Show help and usage information

Commands:
  resize  Resize window by process and window title.

c:\apps\winresizer>windowresizer.cli.exe resize --help
 __        __  _               _                      ____                 _
 \ \      / / (_)  _ __     __| |   ___   __      __ |  _ \    ___   ___  (_)  ____   ___   _ __
  \ \ /\ / /  | | | '_ \   / _` |  / _ \  \ \ /\ / / | |_) |  / _ \ / __| | | |_  /  / _ \ | '__|
   \ V  V /   | | | | | | | (_| | | (_) |  \ V  V /  |  _ <  |  __/ \__ \ | |  / /  |  __/ | |
    \_/\_/    |_| |_| |_|  \__,_|  \___/    \_/\_/   |_| \_\  \___| |___/ |_| /___|  \___| |_|


Usage:
  windowresizer.cli resize [options]

Options:
  -c, --config <config>    Config file path, use current config file if omitted.
  -P, --profile <profile>  Profile name, use current profile if omitted.
  -p, --process <process>  Process name, use foreground process if omitted.
  -t, --title <title>      Process title, all windows of the process will be resized if not specified.
  -v, --verbose            Show more details.
  -?, -h, --help           Show help and usage information

I want to use it in a batch script so I can run the script, it saves current window positions and waits until I interact again to restore positions and quit.

The goal is able to run a script that will save the window positions when I'm going bed. Turn off the DP monitors and let havoc break in the desktop all night long. The next day when I turn the screens back on, hit, say, "q" and the script will restore window positions and quit.

I am considering to implement this myself and send a pull request. Let's see how it goes.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions