https://github.com/bshoshany/ultradocker

A simple AutoHotkey script for easy docking of windows, aimed primarily at ultrawide monitors.

https://github.com/bshoshany/ultradocker

Science Score: 13.0%

This score indicates how likely this project is to be science-related based on various indicators:

  • CITATION.cff file
  • codemeta.json file
    Found codemeta.json file
  • .zenodo.json file
  • DOI references
  • Academic publication links
  • Academic email domains
  • Institutional organization owner
  • JOSS paper metadata
  • Scientific vocabulary similarity
    Low similarity (12.2%) to scientific vocabulary

Keywords

autohotkey autohotkey-script docking ultrawide-monitors windows
Last synced: 5 months ago · JSON representation

Repository

A simple AutoHotkey script for easy docking of windows, aimed primarily at ultrawide monitors.

Basic Info
  • Host: GitHub
  • Owner: bshoshany
  • License: mit
  • Language: AutoHotkey
  • Default Branch: master
  • Homepage:
  • Size: 2.88 MB
Statistics
  • Stars: 2
  • Watchers: 2
  • Forks: 0
  • Open Issues: 0
  • Releases: 2
Topics
autohotkey autohotkey-script docking ultrawide-monitors windows
Created almost 5 years ago · Last pushed over 4 years ago
Metadata Files
Readme License

README.md

UltraDocker

This is a simple AutoHotkey script for easy docking of windows, aimed primarily at ultrawide monitors, with aspect ratio 21:9 or higher.

Basic usage

Install AutoHotkey on your Windows system and run the file UltraDocker.ahk. By default, the script is triggered using either of the following two ways:

  • On the keyboard: Caps Lock. I found that this is the key that makes the most sense, as it exists on both desktop and laptop keyboards, but is never actually used in practice. If you do want to use Caps Lock (e.g. to shout at people on the Internet), simply press Shift + Caps Lock.
  • On the mouse: The "Mouse 4" button, available in most gaming mice. If you do not have a mouse with 4 or more buttons, use the keyboard trigger instead.

When the trigger button or key is pressed, the currently active window will be docked based on the current location of the mouse. If the window is maximized, it will be un-maximized first.

  • Horizontally:
    • If the mouse is in the left or right third of the screen, the window will be docked to the left or right respectively, at 50% of the total width of the screen. This allows docking one window to the left and one to the right, so they can be used in parallel.
    • If the mouse is in the middle third of the screen, the window will be centered at 60% of the total width of the screen. This allows having only one window open on the screen, in a convenient location, but without maximizing the window, which often makes it too wide; for example, when using a web browser or a text editor, it is very inconvenient to have the text extend all the way across the screen.
  • Vertically:
    • If the mouse is in the middle 70% of the screen, the window will take the full height of the screen. This is probably the option you will be using most of the time, and it allows 2 windows to be docked side-by-side.
    • If the mouse is in the top or bottom 15% of the screen, the window will be docked to the top or bottom respectively, at 50% of the total height of the screen. Use this if you want to dock one window to the top and one to the bottom on each side of the screen, so that up to 4 windows can be used in parallel.

See the video below for a demonstration. Note that the video only shows full-height docking.

UltraDocker Demo

16:9 mode

Optionally, adding the Ctrl key to the trigger, that is, Ctrl + Caps Lock or Ctrl + Mouse 4, will enable 16:9 mode. The window will then be resized while maintaining a 16:9 aspect ratio, e.g. for screen sharing.

Enabling 16:9 mode while the mouse is within 10% of the center of the screen will resize the window to full height, to achieve the maximum window size possible, while maintaining a 16:9 aspect ratio.

Changing the trigger keys

The trigger keys are defined in the following 4 lines of the source code:

none CapsLock:: ^CapsLock:: XButton1:: ^XButton1::

To change the keys, replace either CapsLock or XButton1 with another key from the list of available AutoHotkey keys. Be sure to replace both instances of the key (the one that begins with ^ is the key modified by Ctrl).

Running as administrator and/or on startup

The script will only be able to dock administrative applications (e.g. Registry Editor) if you run the script itself as administrator. Simply right-click on the script and choose "Run as administrator" from the menu.

To run the script automatically on startup, either create a shortcut to it in %APPDATA%\Microsoft\Windows\Start Menu\Programs\Startup or create a task for it in the Task Scheduler. The latter option is preferred, as it allows you to run the script as administrator on startup without the hassle of the User Account Control (UAC) prompt.

Version history

  • v2.0.0 (2021-09-27)
    • Added the option to dock the windows to the top or bottom and/or at 16:9 aspect ratio.
  • v1.0 (2021-04-12)
    • Initial release.

Feedback

If you would like a request any additional features, or if you encounter any bugs, please feel free to open a new issue!

Author and copyright

Copyright (c) 2021 Barak Shoshany (baraksh@gmail.com). Licensed under the MIT license.

Owner

  • Name: Barak Shoshany
  • Login: bshoshany
  • Kind: user
  • Location: St. Catharines, Ontario, Canada
  • Company: Brock University

Assistant Professor of Physics at Brock University.

GitHub Events

Total
  • Watch event: 1
Last Year
  • Watch event: 1

Issues and Pull Requests

Last synced: 12 months ago

All Time
  • Total issues: 0
  • Total pull requests: 0
  • Average time to close issues: N/A
  • Average time to close pull requests: N/A
  • Total issue authors: 0
  • Total pull request authors: 0
  • Average comments per issue: 0
  • Average comments per pull request: 0
  • Merged pull requests: 0
  • Bot issues: 0
  • Bot pull requests: 0
Past Year
  • Issues: 0
  • Pull requests: 0
  • Average time to close issues: N/A
  • Average time to close pull requests: N/A
  • Issue authors: 0
  • Pull request authors: 0
  • Average comments per issue: 0
  • Average comments per pull request: 0
  • Merged pull requests: 0
  • Bot issues: 0
  • Bot pull requests: 0
Top Authors
Issue Authors
Pull Request Authors
Top Labels
Issue Labels
Pull Request Labels