-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #7 from luxluth/gtk-layer-shell
feat: gtk-layer-shell support
- Loading branch information
Showing
7 changed files
with
246 additions
and
22 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,22 +1,38 @@ | ||
# Building | ||
|
||
## Prerequisites | ||
|
||
- [Rust](https://www.rust-lang.org/tools/install) | ||
- [gtk4](https://www.gtk.org/docs/installations/) | ||
- [gtk4-layer-shell](https://github.com/wmww/gtk4-layer-shell) (for gtk-layer-shell support) | ||
|
||
## compiling | ||
|
||
Normal build : | ||
|
||
```sh | ||
cargo build --release | ||
``` | ||
|
||
Use the following if you want gtk-layer-shell support : | ||
|
||
```sh | ||
cargo build | ||
cargo build --release --features=gtk-layer-shell | ||
``` | ||
|
||
## Warning | ||
|
||
If you encounter issues with gtk4 being "missing" despite installing it, you may need to install the `libgtk-4-dev` package. | ||
If that still doesn't work, you need to find the gtk4.pc file with: | ||
|
||
```sh | ||
sudo find / -name gtk4.pc 2>/dev/null | ||
``` | ||
|
||
Then set the PKG_CONFIG_PATH environment variable to the directory containing the gtk4.pc file: | ||
|
||
```sh | ||
export PKG_CONFIG_PATH=/path/to/gtk4.pc | ||
``` | ||
|
||
Then try to compile again. |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.