From c214b3c5d6cf48ed719e9c13a4f5bda4dc7ad107 Mon Sep 17 00:00:00 2001 From: 2 * r + 2 * t <61896496+soramanew@users.noreply.github.com> Date: Sun, 8 Jun 2025 20:25:54 +1000 Subject: feat: add ipc commands for stuff --- README.md | 29 ++++++++++++++++++++++++++--- 1 file changed, 26 insertions(+), 3 deletions(-) (limited to 'README.md') diff --git a/README.md b/README.md index c7901ef..f8a9f82 100644 --- a/README.md +++ b/README.md @@ -1,7 +1,7 @@

caelestia-shell

- + ![GitHub last commit](https://img.shields.io/github/last-commit/caelestia-dots/shell?style=for-the-badge&labelColor=101418&color=9ccbfb) ![GitHub Repo stars](https://img.shields.io/github/stars/caelestia-dots/shell?style=for-the-badge&labelColor=101418&color=b9c8da) ![GitHub repo size](https://img.shields.io/github/repo-size/caelestia-dots/shell?style=for-the-badge&labelColor=101418&color=d3bfe6) @@ -35,9 +35,32 @@ For a preconfigured setup, install [`caelestia-hypr`](https://github.com/caelest [this file](https://github.com/caelestia-dots/hypr/blob/main/hyprland/keybinds.conf#L1-L29) for an example on how to use global shortcuts. -There is only one IPC command as of now which can be used to get details about the currently active MPRIS player. +All IPC commands can be accessed via `caelestia shell ...`. For example ```sh -caelestia shell mpris getActive +caelestia shell mpris getActive trackTitle +``` + +The list of IPC commands can be shown via `caelestia shell help`: +``` +> caelestia shell help +target mpris + function stop(): void + function play(): void + function next(): void + function getActive(prop: string): string + function list(): string + function playPause(): void + function pause(): void + function previous(): void +target drawers + function list(): string + function toggle(drawer: string): void +target wallpaper + function list(): string + function get(): string + function set(path: string): void +target notifs + function clear(): void ``` ## Credits -- cgit v1.2.3-freya