summaryrefslogtreecommitdiff
path: root/docs/guide/libraries/powerprofiles.md
diff options
context:
space:
mode:
authorAylur <[email protected]>2024-11-08 18:31:49 +0000
committerAylur <[email protected]>2024-11-08 18:32:02 +0000
commit321350f7d52a65afae095cd5b874c1866084fb64 (patch)
treeb898464db36d8d89bded6da095ffc1d74fd2e070 /docs/guide/libraries/powerprofiles.md
parent5ee98ff298a9bdf40535c3c15aa5952778b9df39 (diff)
docs: swap install and usage sections on lib pages
Diffstat (limited to 'docs/guide/libraries/powerprofiles.md')
-rw-r--r--docs/guide/libraries/powerprofiles.md78
1 files changed, 39 insertions, 39 deletions
diff --git a/docs/guide/libraries/powerprofiles.md b/docs/guide/libraries/powerprofiles.md
index bdafcde..b42d7c6 100644
--- a/docs/guide/libraries/powerprofiles.md
+++ b/docs/guide/libraries/powerprofiles.md
@@ -2,45 +2,6 @@
Library and CLI tool for monitoring [upowerd](https://upower.freedesktop.org/) powerprofiles.
-## Installation
-
-1. install dependencies
-
-:::code-group
-
-```sh [<i class="devicon-archlinux-plain"></i> Arch]
-sudo pacman -Syu meson vala json-glib gobject-introspection
-```
-
-```sh [<i class="devicon-fedora-plain"></i> Fedora]
-sudo dnf install meson vala valadoc json-glib-devel gobject-introspection-devel
-```
-
-```sh [<i class="devicon-ubuntu-plain"></i> Ubuntu]
-sudo apt install meson valac libjson-glib-dev gobject-introspection
-```
-
-:::
-
-::: info
-Although UPower is not a direct build dependency,
-it should be self-explanatory that the daemon is required to be available at runtime.
-:::
-
-2. clone repo
-
-```sh
-git clone https://github.com/aylur/astal.git
-cd astal/lib/powerprofiles
-```
-
-3. install
-
-```sh
-meson setup --prefix /usr build
-meson install -C build
-```
-
## Usage
You can browse the [PowerProfiles reference](https://aylur.github.io/libastal/powerprofiles).
@@ -84,3 +45,42 @@ print(powerprofiles.active_profile)
```
:::
+
+## Installation
+
+1. install dependencies
+
+:::code-group
+
+```sh [<i class="devicon-archlinux-plain"></i> Arch]
+sudo pacman -Syu meson vala json-glib gobject-introspection
+```
+
+```sh [<i class="devicon-fedora-plain"></i> Fedora]
+sudo dnf install meson vala valadoc json-glib-devel gobject-introspection-devel
+```
+
+```sh [<i class="devicon-ubuntu-plain"></i> Ubuntu]
+sudo apt install meson valac libjson-glib-dev gobject-introspection
+```
+
+:::
+
+::: info
+Although UPower is not a direct build dependency,
+it should be self-explanatory that the daemon is required to be available at runtime.
+:::
+
+2. clone repo
+
+```sh
+git clone https://github.com/aylur/astal.git
+cd astal/lib/powerprofiles
+```
+
+3. install
+
+```sh
+meson setup --prefix /usr build
+meson install -C build
+```