vercel / hyper

A terminal built on web technologies
https://hyper.is
MIT License
43.12k stars 3.5k forks source link

Windows Powertoys Fancy Zones Snapping #6646

Open marcoseiza opened 2 years ago

marcoseiza commented 2 years ago

Issue

Terminal doesn't snap resize with windows powertoys fancy zones.

DWTW321 commented 1 year ago

Hey, I was having the same problem. I managed to fix it by creating a local plugin with the following code:

exports.decorateBrowserOptions = config => Object.assign({}, config, {
  frame: true,
  titleBarStyle: 'hidden',
  transparent: false,
  shadow: true
});

Create a folder with any name (I chose "hyper-show-frame") in the location C:\Users\{USERNAME}\AppData\Roaming\Hyper\.hyper_plugins\local and then create a file called index.js inside the folder. Add the code mentioned above to the file. Finally, add "hyper-show-frame" in the local plugins section of your .hyper.js config file.