This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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 |