diff --git a/index.html b/index.html index 33acafb..70edb19 100644 --- a/index.html +++ b/index.html @@ -169,6 +169,12 @@
  • callback Function to call with client when it spawns.
  • +
  • factory + The factory to use (see wm-launch's -f flag). +
  • +
  • firejail + If true, run cmd with firejail. +
  • @@ -212,6 +218,12 @@
  • callback Function to call with client when it spawns.
  • +
  • factory + The factory to use (see wm-launch's -f flag). +
  • +
  • firejail + If true, run cmd with firejail. +
  • filter Function to filter clients that are considered.
  • @@ -258,6 +270,12 @@
  • callback Function to call with client when it spawns.
  • +
  • factory + The factory to use (see wm-launch's -f flag). +
  • +
  • firejail + If true, run cmd with firejail. +
  • filter Function to filter clients that are considered.
  • @@ -281,7 +299,7 @@
    generated by LDoc 1.4.6 -Last updated 2019-04-10 20:43:40 +Last updated 2019-05-08 16:38:07
    diff --git a/modules/launch.html b/modules/launch.html new file mode 100644 index 0000000..876e9d0 --- /dev/null +++ b/modules/launch.html @@ -0,0 +1,310 @@ + + + + + awesome-launch API documentation + + + + +
    + +
    + +
    +
    +
    + + +
    + + + + + + +
    + +

    Module launch

    +

    Launch clients with single instance IDs using wm-launch.

    +

    +

    Info:

    +
      +
    • Copyright: 2019 James Reed
    • +
    • Author: James Reed <jcrd@tuta.io>
    • +
    + + +

    Functions

    + + + + + + + + + + + + + + + + + + + + + +
    client.by_id (id, filter)Get a launched client by its ID.
    client.by_cmdline (cmd, filter)Get a launched client by its command line.
    spawn (cmd, args)Spawn a client with wm-launch.
    spawn.single_instance (cmd, args)Spawn a command if an instance is not already running.
    spawn.raise_or_spawn (cmd, args)Raise a client if it exists or spawn a new one then raise it.
    + +
    +
    + + +

    Functions

    + +
    +
    + + client.by_id (id, filter) +
    +
    + Get a launched client by its ID. + + +

    Parameters:

    +
      +
    • id + The ID. +
    • +
    • filter + Function to filter clients that are considered. +
    • +
    + +

    Returns:

    +
      + + The client. +
    + + + + +
    +
    + + client.by_cmdline (cmd, filter) +
    +
    + Get a launched client by its command line. + + +

    Parameters:

    +
      +
    • cmd + The command line. +
    • +
    • filter + Function to filter clients that are considered. +
    • +
    + +

    Returns:

    +
      + + The client. +
    + + + + +
    +
    + + spawn (cmd, args) +
    +
    + Spawn a client with wm-launch. + + +

    Parameters:

    +
      +
    • cmd + The command. +
    • +
    • args Table containing the single instance ID and additional arguments +
        +
      • id + Single instance ID. +
      • +
      • props + Properties to apply to the client. +
      • +
      • pwd + Pathname to the working directory for new clients. +
      • +
      • timeout + Seconds after which to stop waiting for a client to spawn. +
      • +
      • callback + Function to call with client when it spawns. +
      • +
      • factory + The factory to use (see wm-launch's -f flag). +
      • +
      • firejail + If true, run cmd with firejail. +
      • +
      +
    + +

    Returns:

    +
      + + The client's ID. +
    + + + + +
    +
    + + spawn.single_instance (cmd, args) +
    +
    + Spawn a command if an instance is not already running. + + +

    Parameters:

    +
      +
    • cmd + The command. +
    • +
    • args Table containing the single instance ID and additional arguments for spawn +
        +
      • id + Single instance ID. +
      • +
      • props + Properties to apply to the client. +
      • +
      • pwd + Pathname to the working directory for new clients. +
      • +
      • timeout + Seconds after which to stop waiting for a client to spawn. +
      • +
      • callback + Function to call with client when it spawns. +
      • +
      • factory + The factory to use (see wm-launch's -f flag). +
      • +
      • firejail + If true, run cmd with firejail. +
      • +
      • filter + Function to filter clients that are considered. +
      • +
      +
    + +

    Returns:

    +
      + + The client's ID. +
    + + + + +
    +
    + + spawn.raise_or_spawn (cmd, args) +
    +
    + Raise a client if it exists or spawn a new one then raise it. + + +

    Parameters:

    +
      +
    • cmd + The command. +
    • +
    • args Table containing the single instance ID and additional arguments for spawn +
        +
      • id + Single instance ID. +
      • +
      • props + Properties to apply to the client. +
      • +
      • pwd + Pathname to the working directory for new clients. +
      • +
      • timeout + Seconds after which to stop waiting for a client to spawn. +
      • +
      • callback + Function to call with client when it spawns. +
      • +
      • factory + The factory to use (see wm-launch's -f flag). +
      • +
      • firejail + If true, run cmd with firejail. +
      • +
      • filter + Function to filter clients that are considered. +
      • +
      +
    + +

    Returns:

    +
      + + The client's ID. +
    + + + + +
    +
    + + +
    +
    +
    +generated by LDoc 1.4.6 +Last updated 2019-05-08 16:03:48 +
    +
    + +