Skip to content

Latest commit

 

History

History
32 lines (25 loc) · 652 Bytes

README.md

File metadata and controls

32 lines (25 loc) · 652 Bytes

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()