Skip to content

BigGreenDelta/Borderless-Window-Utility

 
 

Repository files navigation

Borderless-Window-Utility

Modifies window style to force most applications into a borderless windowed mode.

Usage

Just download

Release Build

Download Borderless-Window-Utility.exe from the latest releases page and run it like any other executable file!

Command-line (headless) usage

You can run the tool without opening the UI to apply borderless mode automatically:

  • Apply to the only window that matches a saved profile and exit: Borderless-Window-Utility.exe --apply-and-exit
    • Returns exit code 0 on success, 1 if no single match is found.

Using the provided batch files

The repository includes Windows batch files to simplify setup, running, and building.

  • One-time setup (installs uv):

    • Double-click setup_once.bat.
  • Run headless (apply and exit):

    • Double-click run-apply-and-exit.bat.
    • Returns exit code 0 on success, 1 if no single match is found.
  • Build the executable from source:

    • Double-click tools\\build.bat.
    • Output will be in the .dist directory.
  • Run the full GUI:

    • Double-click run.bat.
    • Alternatively, from a terminal:
      • uv sync
      • uv run main.py

Select an application in dropdown and click Borderless Window to remove the title bar, any borders, and the ability to resize the application with a border. Use the coordinates to determine where you want the window to be, and and adjust the resolution as desired. Some applications are fine adapting to non-traditional resolutions, but some will start to stretch.

Refresh

Refreshes the list of visible windows in the window selection dropdown

Revert Changes

Reverts the window to the original style. Falls back to the style the application had when the list of applications was last updated; Upon starting main.py or hitting the refresh button. If you hit the refresh button after making an application borderless windowed the revert button will not function

Profiles

Create an entry in profiles.ini for the game:

[Stationeers]
width=2560
height=1440
x=420
y=0

In this case we are recording video on a 21:9 3440x1440 monitor, so we want to force it to 16:9 and center it (offset by x=420).

If the window title contains 'Stationeers' the profile values will be used entered into the form.

Notes

Used and updated for Windows 11. Created on Windows 10 however it has not been tested long after the creation. Will not function on any other operating system.

image

The real reason I made this:

When games dont support the super ultrawide resolution and you have them fullscreen they fill in the unused space with black bars. image

Putting the game a windowed state adds a titlebar which causes bottom of the window to be below the screen space. Some games don't allow you to resize these windows and you're forced to either have a piece of the window cut from the bottom or play at a lower resolution that fits within your vertical screen space. image

I use the tool force a borderless windowed state that floats in the center of the screen (or wherever I want it to be) for a cleaner look and the upside of not losing any of the game window below the monitor space. image

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Python 95.5%
  • Batchfile 4.5%