HYPRWAYLAND-SCANNER(1)
π
HYPRWAYLAND-SCANNER(1) β the hyprwayland-scanner manual, but make it cute β¨
okay so bestie. this is a General Commands Manual page for hyprwayland-scanner, and if you've ever wanted to make C++ bindings for Wayland protocols without losing your entire mind, this is literally the girl for you. sit down, hydrate π, and let's go.
β¨ NAME β¨
hyprwayland-scanner β she generates C++ Wayland protocol bindings, no cap π
π SYNOPSIS π
hyprwayland-scanner [OPTIONS] PROTOCOL_XML OUTPUT_DIRECTORY
that's it. that's the whole vibe. options, then your XML, then where you want the goodies to land. π¦
πΈ DESCRIPTION πΈ
hyprwayland-scanner generates C++ bindings for Wayland protocols β and she'll do it for either servers or clients, whichever one you're serving today π
By default? Server-side code. That's the default default. The generated files get written straight into the output directory you hand her. πβ¨
heads up though: you need a compiler with C++23 support, and you also need pugixml. no pugixml, no bindings, no slay. π
π«Ά ARGUMENTS π«Ά
PROTOCOL_XMLβ the path to your Wayland protocol XML file. this is the source material, the blueprint, the moment. πOUTPUT_DIRECTORYβ the path to the directory where all the generated files are gonna be written. make sure she exists, bestie. ποΈ
π OPTIONS π
-c,--clientβ generate client-side code instead of server-side code. flip the switch, become the client. π--wayland-enumsβ use Wayland-style enum naming. if you like your enums looking like they came straight out of Wayland HQ, this one's for you. β--no-interfacesβ do not generatewl_interfaceand the related interface metadata. skipping that part entirely. π«-v,--versionβ prints the program version and then exits. quick lil "hi who am I" moment. π
π₯ OUTPUT π₯
The program writes generated C++ source files into OUTPUT_DIRECTORY. Typically this means a header file and a source file, both derived from the name of the input XML filename. so like, the filename is doing a lot of the aesthetic work here. β¨
π EXAMPLES π
Generate server-side bindings:
hyprwayland-scanner /path/to/protocol.xml ./generated
Generate client-side bindings:
hyprwayland-scanner --client /path/to/protocol.xml ./generated
Generate client-side bindings with Wayland enum naming:
hyprwayland-scanner --client --wayland-enums /path/to/protocol.xml ./generated
look at you. three whole commands. main character energy, honestly. ππ§
π AUTHOR π
This manual page is maintained for Debian by the Debian Hyprland maintainers, based on the upstream code and README. so give them their flowers fr fr πΈ
and that's the whole page, bestie! this one lives in the User Commands section, and its manual name is hyprwayland-scanner β that's the little name tag she wears at the bottom of every page. go generate something gorgeous, ily, bye πβ¨π
π¦ where this page comes from
- ubuntu stonking: hyprwayland-scanner 0.4.6-1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms