Skip to content

kidonng/tron

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Tron

Launch Electron windows from the command line

npx @kidonng/tron example.com

Usage

npx @kidonng/tron [options] <url>

Options are treated as BaseWindowConstructorOptions.

Tools Menu Context Menu
Tools Menu Context Menu

Examples

Specify window size:

npx @kidonng/tron --width=1024 --height=768 example.com

Disable window frame:

# Use --no-option to disable an option
# https://github.com/yargs/yargs/blob/main/docs/tricks.md#negating-boolean-arguments
npx @kidonng/tron --no-frame example.com

Always on top:

# Use -- to avoid URL being parsed as option value
# https://github.com/yargs/yargs/blob/main/docs/tricks.md#stop-parsing
npx @kidonng/tron --always-on-top -- example.com

Tips & Tricks

  • The URL's protocol (https://) is optional.
  • Browsing data is partitioned based on the URL's host.
  • On macOS, frameless windows can be dragged via a global shortcut.

See Also

  • broz - inspired this project

About

Launch Electron windows from the command line

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors