Skip to content

Instantly share code, notes, and snippets.

View piegamesde's full-sized avatar
Not a NixOS mod anymore

piegames piegamesde

Not a NixOS mod anymore
View GitHub Profile
@piegamesde
piegamesde / dnc.desktop
Created April 2, 2020 14:20
Create a secondary chromium instance to keep all your messengers separate.
#!/usr/bin/env xdg-open
[Desktop Entry]
Version=1.0
Name=DNC
StartupWMClass=dnc
GenericName=Definitely not chrome
Comment=All your messages
Exec=bash -c '/bin/chromium --class="dnc" --user-data-dir="$HOME/.config/chromium-not"'
StartupNotify=true
Terminal=false
#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