Skip to content

Commit

Permalink
Mention execution time for RunCommand
Browse files Browse the repository at this point in the history
  • Loading branch information
daenney committed Mar 14, 2024
1 parent 737e5cb commit 8e3429f
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,8 @@ These are the functions you can call from your scripts:
| PlayPause[^1] | player name | `PlayPause("spotify")` | Toggle music play/pause |
| RunCommand | command | `RunCommand("notify-send", "title", "body")` | Execute arbitrary command |

`RunCommand` is constrained to run up to 1s, after which the context will be cancelled. This ensures we don't have hanging commands.

[^1]: `PlayPause` uses the D-Bus user session and as such only works on Linux

## Running
Expand Down

0 comments on commit 8e3429f

Please sign in to comment.