Skip to content

Instantly share code, notes, and snippets.

@JoepKockelkorn
Created March 18, 2024 12:06
Show Gist options
  • Save JoepKockelkorn/0ab35341f0f47e82dffe544e0205cb4e to your computer and use it in GitHub Desktop.
Save JoepKockelkorn/0ab35341f0f47e82dffe544e0205cb4e to your computer and use it in GitHub Desktop.
// 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