remove references to example plugin

This commit is contained in:
Vaxry 2024-01-02 14:49:24 +01:00
parent ce0b8774ed
commit 228ed3f00d
2 changed files with 4 additions and 6 deletions

View file

@ -116,6 +116,6 @@ static auto* const MYVAR = &HyprlandAPI::getConfigValue(PHANDLE, "plugin:my
``` ```
## Further ## Further
Read the API at `src/plugins/PluginAPI.hpp` and check out the examplePlugin in `examples/`. Read the API at `src/plugins/PluginAPI.hpp`, check out the [official plugins](https://github.com/hyprwm/hyprland-plugins).
And, most importantly, have fun! And, most importantly, have fun!

View file

@ -31,11 +31,9 @@ is required.
Clone the Hyprland source code to a subdirectory, in our example `MyPlugin/Hyprland`. Clone the Hyprland source code to a subdirectory, in our example `MyPlugin/Hyprland`.
Run `cd Hyprland && make all && sudo make installheaders && cd ..`. Run `cd Hyprland && make all && sudo make installheaders && cd ..`.
Now that you have the Hyprland sources set up, copy the contents of `example/examplePlugin/` to your working directory. Now that you have the Hyprland sources set up, you can either start from scratch if you know how,
or take a look at some simple plugins in the [official plugins repo](https://github.com/hyprwm/hyprland-plugins)
Your `MyPlugin` directory now should contain `main.cpp`, `globals.hpp`, `exampleLayout.cpp`, etc. like for example `csgo-vulkan-fix` or `hyprwinwrap`.
This plugin has quite a few examples of the things you can do, but we will focus on the basics for now.
### The basic parts of the plugin ### The basic parts of the plugin