Skip to content
/ runonce Public

Launch an app only once, or, switch to that app if it is already running

Notifications You must be signed in to change notification settings

damaru/runonce

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 

Repository files navigation

runonce

USAGE: runonce -c atom -e 'atom foo.txt' -s 'atom foo.txt'
    -s server command
    -c wm class
    -e client command

if class not provided, deduce class by provided command
if window matching class exists:
    switch to window
else:
    if server command is provided:
        execute server command
    if client command is provided:
        execute client command

if only class is provided, just switch to window
if only client command is provided, switch and execute
if  nly server command is provided, switch or execute
if both client and server provided, {switch and execute client} or execute server 

About

Launch an app only once, or, switch to that app if it is already running

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published