Created
March 18, 2024 12:06
-
-
Save JoepKockelkorn/0ab35341f0f47e82dffe544e0205cb4e to your computer and use it in GitHub Desktop.
This file contains hidden or 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
// Menu: Resize window for focus | |
// Description: Set window to 75% width, 100% height and center horizontally | |
// Shortcut: ctrl + shift + f | |
/** @type {import("@johnlindquist/kit")} */ | |
const { | |
bounds: { width: screenWidth, height: screenHeight }, | |
} = await getActiveScreen(); | |
const inset = (screenWidth * 0.25) / 2; | |
setActiveAppBounds({ | |
top: 0, | |
bottom: screenHeight, | |
left: inset, | |
right: screenWidth - inset, | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment