|
| 1 | +<h1>Plugins</h1> |
| 2 | + |
| 3 | +<p> |
| 4 | + xfetch supports third-party plugins that extend its functionality. Plugins run as |
| 5 | + separate executables and communicate with xfetch over stdin/stdout using a JSON |
| 6 | + protocol. This keeps the plugin system decoupled, allowing plugins to be installed, |
| 7 | + removed, and updated independently of the core binary. |
| 8 | +</p> |
| 9 | + |
| 10 | +<h2>Installing a Plugin</h2> |
| 11 | + |
| 12 | +<p>From a local path:</p> |
| 13 | + |
| 14 | +<pre><code>xfetch plugin install ./plugins/my-plugin</code></pre> |
| 15 | + |
| 16 | +<p>From the default remote repository (GitHub):</p> |
| 17 | + |
| 18 | +<pre><code>xfetch plugin install my-plugin</code></pre> |
| 19 | + |
| 20 | +<h2>Listing Installed Plugins</h2> |
| 21 | + |
| 22 | +<pre><code>xfetch plugin list</code></pre> |
| 23 | + |
| 24 | +<h2>Removing a Plugin</h2> |
| 25 | + |
| 26 | +<pre><code>xfetch plugin remove my-plugin</code></pre> |
| 27 | + |
| 28 | +<h2>Available Plugins</h2> |
| 29 | + |
| 30 | +<table> |
| 31 | + <thead> |
| 32 | + <tr> |
| 33 | + <th>Plugin</th> |
| 34 | + <th>Description</th> |
| 35 | + </tr> |
| 36 | + </thead> |
| 37 | + <tbody> |
| 38 | + <tr> |
| 39 | + <td><code>animate-logo</code></td> |
| 40 | + <td> |
| 41 | + Animates the ASCII logo with multiple styles (sweep, wave, rainbow, |
| 42 | + sparkle, breathing, frame). See |
| 43 | + <a href="./animate-logo/README.md">animate-logo/README.md</a>. |
| 44 | + </td> |
| 45 | + </tr> |
| 46 | + </tbody> |
| 47 | +</table> |
| 48 | + |
| 49 | +<h2>Plugin Directory</h2> |
| 50 | + |
| 51 | +<p> |
| 52 | + Installed plugin binaries are stored in the xfetch plugin directory: |
| 53 | +</p> |
| 54 | + |
| 55 | +<ul> |
| 56 | + <li><strong>Linux/macOS:</strong> <code>~/.config/xfetch/plugins/</code></li> |
| 57 | + <li><strong>Windows:</strong> <code>%APPDATA%/xfetch/plugins/</code></li> |
| 58 | +</ul> |
| 59 | + |
| 60 | +<h2>Creating a Plugin</h2> |
| 61 | + |
| 62 | +<p> |
| 63 | + See <a href="./docs/README.md">plugins/docs/README.md</a> for the full |
| 64 | + plugin development guide, including the protocol specification, conventions, |
| 65 | + and contribution guidelines. |
| 66 | +</p> |
0 commit comments