Created
February 10, 2023 17:13
-
-
Save yzorg/48a49d8c34b217746388912b30ec3139 to your computer and use it in GitHub Desktop.
Make Win10/Win11 window borders a bit easier to resize. Key is from https://superuser.com/a/1767917/31557
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# reg key is from https://superuser.com/a/1767917/31557 | |
$BorderWidthValue = -100 | |
#$BorderWidthValue = -200 # uncomment this to make them really wide, @yzorg likes -100 so kept that default | |
# make a backup of current value | |
pushd ~\Documents | |
reg export 'HKEY_CURRENT_USER\Control Panel\Desktop\WindowMetrics' .\registry-WindowMetrics-old.reg | |
pushd ('HKEY_CURRENT_USER\Control Panel\Desktop' -replace 'HKEY_CURRENT_USER','HKCU:') | |
Set-ItemProperty .\WindowMetrics\ -Name BorderWidth -Value $BorderWidthValue | |
# change current directory back to main drive | |
popd | |
# save a copy of new value, little easier to change back-and-forth if switching or trying different values | |
reg export 'HKEY_CURRENT_USER\Control Panel\Desktop\WindowMetrics' .\registry-WindowMetrics-new.reg | |
# go back to whatever directory you were using before you started this script/snippet | |
popd |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment