Skip to content

Instantly share code, notes, and snippets.

@VitaliyBelyaev
VitaliyBelyaev / example_theme.json
Created July 7, 2023 15:01
Python script for generating colors.xml and ligth/dark themes.xml from Material 3 json theme file generated by Figma Material Theme Builder Plugin
{
"seed": "#6750A4",
"description": "TYPE: CUSTOM",
"coreColors": {
"primary": "#6750A4",
"neutralVariant": "#938F99"
},
"schemes": {
"light": {
"primary": "#6750A4",
@ddevault
ddevault / Makefile
Last active February 20, 2024 14:17
Tiny Wayland compositor
WAYLAND_PROTOCOLS=/usr/share/wayland-protocols
# wayland-scanner is a tool which generates C headers and rigging for Wayland
# protocols, which are specified in XML. wlroots requires you to rig these up
# to your build system yourself and provide them in the include path.
xdg-shell-protocol.h:
wayland-scanner server-header \
$(WAYLAND_PROTOCOLS)/stable/xdg-shell/xdg-shell.xml $@
xdg-shell-protocol.c: xdg-shell-protocol.h