Skip to content

Eeems-Org/python-launcherctl

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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