readme: update for new cmake build
This commit is contained in:
parent
f1dc78d154
commit
9030634bc1
1 changed files with 65 additions and 51 deletions
116
README.md
116
README.md
|
|
@ -55,21 +55,33 @@ Dependencies:
|
||||||
- [`grim`](https://gitlab.freedesktop.org/emersion/grim)
|
- [`grim`](https://gitlab.freedesktop.org/emersion/grim)
|
||||||
- [`swappy`](https://github.com/jtheoof/swappy)
|
- [`swappy`](https://github.com/jtheoof/swappy)
|
||||||
- [`libqalculate`](https://github.com/Qalculate/libqalculate)
|
- [`libqalculate`](https://github.com/Qalculate/libqalculate)
|
||||||
|
- [`bash`](https://www.gnu.org/software/bash)
|
||||||
|
- `qt6-base`
|
||||||
|
- `qt6-declarative`
|
||||||
|
|
||||||
|
Build dependencies:
|
||||||
|
|
||||||
|
- [`cmake`](https://cmake.org)
|
||||||
|
- [`ninja`](https://github.com/ninja-build/ninja)
|
||||||
|
|
||||||
To install the shell manually, install all dependencies and clone this repo to `$XDG_CONFIG_HOME/quickshell/caelestia`.
|
To install the shell manually, install all dependencies and clone this repo to `$XDG_CONFIG_HOME/quickshell/caelestia`.
|
||||||
Then compile the beat detector and install it to `/usr/lib/caelestia/beat_detector`.
|
Then simply build and install using `cmake`.
|
||||||
|
|
||||||
```sh
|
```sh
|
||||||
cd $XDG_CONFIG_HOME/quickshell
|
cd $XDG_CONFIG_HOME/quickshell
|
||||||
git clone https://github.com/caelestia-dots/shell.git caelestia
|
git clone https://github.com/caelestia-dots/shell.git caelestia
|
||||||
g++ -std=c++17 -Wall -Wextra -I/usr/include/pipewire-0.3 -I/usr/include/spa-0.2 -I/usr/include/aubio -o beat_detector caelestia/assets/beat_detector.cpp -lpipewire-0.3 -laubio
|
|
||||||
sudo mv beat_detector /usr/lib/caelestia/beat_detector
|
cd caelestia
|
||||||
|
cmake -B build -G Ninja -DCMAKE_BUILD_TYPE=Release
|
||||||
|
cmake --build build
|
||||||
|
sudo cmake --install build
|
||||||
```
|
```
|
||||||
|
|
||||||
> [!TIP]
|
> [!TIP]
|
||||||
> The beat detector can actually be installed anywhere. However, if it is not installed to the default
|
> You can customise the installation location via the `cmake` flags `INSTALL_LIBDIR`, `INSTALL_QMLDIR` and
|
||||||
> location of `/usr/lib/caelestia/beat_detector`, you must set the environment variable `CAELESTIA_BD_PATH`
|
> `INSTALL_QSCONFDIR` for the libraries (the beat detector), QML plugin and Quickshell config directories
|
||||||
> to wherever you have installed the beat detector.
|
> respectively. If changing the library directory, remember to set the `CAELESTIA_LIB_DIR` environment
|
||||||
|
> variable to the custom directory when launching the shell.
|
||||||
|
|
||||||
## Usage
|
## Usage
|
||||||
|
|
||||||
|
|
@ -145,7 +157,7 @@ git pull
|
||||||
|
|
||||||
## Configuring
|
## Configuring
|
||||||
|
|
||||||
All configuration options should be put in `~/.config/caelestia/shell.json`. This file is *not* created by
|
All configuration options should be put in `~/.config/caelestia/shell.json`. This file is _not_ created by
|
||||||
default, you must create it manually.
|
default, you must create it manually.
|
||||||
|
|
||||||
> [!NOTE]
|
> [!NOTE]
|
||||||
|
|
@ -177,7 +189,7 @@ default, you must create it manually.
|
||||||
"scale": 1
|
"scale": 1
|
||||||
},
|
},
|
||||||
"rounding": {
|
"rounding": {
|
||||||
"scale": 1
|
"scale": 1
|
||||||
},
|
},
|
||||||
"spacing": {
|
"spacing": {
|
||||||
"scale": 1
|
"scale": 1
|
||||||
|
|
@ -209,46 +221,46 @@ default, you must create it manually.
|
||||||
"bar": {
|
"bar": {
|
||||||
"dragThreshold": 20,
|
"dragThreshold": 20,
|
||||||
"entries": [
|
"entries": [
|
||||||
{
|
{
|
||||||
"id": "logo",
|
"id": "logo",
|
||||||
"enabled": true
|
"enabled": true
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"id": "workspaces",
|
"id": "workspaces",
|
||||||
"enabled": true
|
"enabled": true
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"id": "spacer",
|
"id": "spacer",
|
||||||
"enabled": true
|
"enabled": true
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"id": "activeWindow",
|
"id": "activeWindow",
|
||||||
"enabled": true
|
"enabled": true
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"id": "spacer",
|
"id": "spacer",
|
||||||
"enabled": true
|
"enabled": true
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"id": "tray",
|
"id": "tray",
|
||||||
"enabled": true
|
"enabled": true
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"id": "clock",
|
"id": "clock",
|
||||||
"enabled": true
|
"enabled": true
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"id": "statusIcons",
|
"id": "statusIcons",
|
||||||
"enabled": true
|
"enabled": true
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"id": "power",
|
"id": "power",
|
||||||
"enabled": true
|
"enabled": true
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"id": "idleInhibitor",
|
"id": "idleInhibitor",
|
||||||
"enabled": false
|
"enabled": false
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"persistent": true,
|
"persistent": true,
|
||||||
"showOnHover": true,
|
"showOnHover": true,
|
||||||
|
|
@ -323,9 +335,11 @@ default, you must create it manually.
|
||||||
"audioIncrement": 0.1,
|
"audioIncrement": 0.1,
|
||||||
"defaultPlayer": "Spotify",
|
"defaultPlayer": "Spotify",
|
||||||
"gpuType": "",
|
"gpuType": "",
|
||||||
"playerAliases": [{
|
"playerAliases": [
|
||||||
"com.github.th_ch.youtube_music": "YT Music"
|
{
|
||||||
}],
|
"com.github.th_ch.youtube_music": "YT Music"
|
||||||
|
}
|
||||||
|
],
|
||||||
"weatherLocation": "",
|
"weatherLocation": "",
|
||||||
"useFahrenheit": false,
|
"useFahrenheit": false,
|
||||||
"useTwelveHourClock": false,
|
"useTwelveHourClock": false,
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue