Skip to content

DarkVanityOfLight/ZSnoW

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

44 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ZSnoW

This is a basic XSnow clone written in zig for wayland. Since I swaped to sway I was missing the xsnow experience, so I created my own one. I don't care about most features xsnow has, such as snow piling up or the santa and trees, so they are not planned.

Disclaimer

Since I'm new to zig and co, the code might contain alot of errors. For now I can't see any huge memory leaks or issues, but when I find some I will fix them, feel free to open an issue.

Support

Your wayland compositor has to support the zwlr_layer_shell_v1 protocoll. To check if yours does refer to here

I am building against these protocoll versions:

Protocol Name Version
wl_compositor 6
wl_shm 2
wl_output 4
xdg_wm_base 1
zwlr_layer_shell_v1 4

but I think some lower versions might be also supported try it out yourself and let me know :3

Customization

You can easily add more/remove flake patterns or adjust scales in src/flakes/flake.zig.

Compiling

To build the project, you need the Zig compiler and a Wayland development environment installed. Here's how to get started:

  1. Install Zig: Download Zig from the official website or use your system's package manager if available.
  2. Install dependencies:
  • Ensure the needed wayland protocols are installed wlr-protocols and wayland-protocols
  • The zig-wayland dependency will be automatically fetched during the build process.
  1. Clone the repository
  2. Build the executable using zig build -Drelease-safe Replace -Drelease-safe with -Drelease-fast or -Ddebug depending on your preferred optimization level.
  3. Copy the generated executable from zig-out/bin to a desired location.
  4. Let it snow by executing zsnow

Contribution

Contributions are welcome! If you spot issues or have suggestions for improvement, feel free to open an issue or submit a pull request.

License

zsnow is licensed under CC BY-NC-SA 4.0

About

A basic XSnow clone for wayland written in zig

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages