Skip to content

Instantly share code, notes, and snippets.

#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <X11/Xlib.h>
#include <X11/Xutil.h>
/**
* Set the WM_CLASS property of a window specified by it's ID
* Usage: set_wm_class <window id> <window class> <application name>
* Compile with: gcc set_wm_class.c -lX11 -o set_wm_class