launcherctl

Python wrapper around launcherctl.


License
MIT
Install
pip install launcherctl==1.0.0

Documentation

launcherctl on PyPI

Python wrapper around launcherctl

Installation

pip install launcherctl

Usage

import launcherctl

if (
    launcherctl.launchers.current.name != "oxide"
    and "oxide" in launcherctl.launchers
):
    launcherctl.launchers.switch("oxide", start=True)
    # or
    launcherctl.launchers["oxide"].enable(start=True)

if (
    "calculator" in launcherctl.apps
    and "calculator" not in launcherctl.apps.running.keys()
):
    launcherctl.apps["calculator"].start()