Skip to content

Instantly share code, notes, and snippets.

@LCamel
Last active February 19, 2025 14:09
Show Gist options
  • Save LCamel/eff3e1f1b17abd03b7208c4d4c0966c2 to your computer and use it in GitHub Desktop.
Save LCamel/eff3e1f1b17abd03b7208c4d4c0966c2 to your computer and use it in GitHub Desktop.
Mac OS X fullscreen
#!/bin/sh
osascript -e 'tell application "System Events" to set frontApp to (name of first process whose frontmost is true)' -e 'tell application "System Events" to tell process frontApp to set position of window 1 to {0, 0}' -e 'tell application "System Events" to tell process frontApp to set size of window 1 to {1512, 3000}'
{
"description": "fullscreen1",
"manipulators": [
{
"from": {
"key_code": "1",
"modifiers": {
"mandatory": ["control", "option"],
"optional": ["any"]
}
},
"to": [{ "shell_command": "$HOME/fullscreen1.sh" }],
"type": "basic"
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment