speedwm-personal/rules.h

44 lines
4.4 KiB
C

/* Rules
* Any applications defined here must follow the rules specified.
* The user can get the class by running a program like xprop (must be installed by the user) and then selecting the software.
*
* - tags mask: Disable tags where the CLASS, INSTANCE or TITLE will spawn. (X << Y)
* - isfloating: Choose whether a CLASS, INSTANCE or TITLE will spawn as floating. (1/0)
* - ispermanent: Whether or not you can kill a client
* - isterminal: Whether or not the CLASS, INSTANCE or TITLE is a terminal or not (1/0)
* - noswallow: Whether or not the CLASS, INSTANCE or TITLE gets swallowed by a terminal or not (1/0)
* - ignoretransient: Whether or not to ignore transient windows for CLASS, INSTANCE or TITLE (1/0)
* - unmanaged: Whether or not to allow speedwm to manage the window (tile it, focus it, move it, etc.)
*
* For the rest, leave as they currently are and copy them for new rules.
* Once you're done with your edits, run 'make clean install'.
*
***************************************************************/
/* For terminal applications */
#define TERMINAL_CLASS "st"
static const Rule rules[] = {
/* class instance title tags mask isfloating ispermanent isterminal noswallow monitor unmanaged ignoretransient scratch key */
{ TERMINAL_CLASS, NULL, NULL, 0, 0, 0, 1, 0, -1, 0, 0, 0 },
{ TERMINAL_CLASS, NULL, "sxiv", 0, 0, 0, 0, 0, -1, 0, 0, 0 },
{ TERMINAL_CLASS, NULL, "Vifm", 0, 0, 0, 1, 0, -1, 0, 0, 0 },
{ "Zathura", NULL, NULL, 0, 0, 0, 0, 0, -1, 0, 0, 0 },
{ TERMINAL_CLASS, NULL, "nvim", 0, 0, 0, 1, 1, -1, 0, 0, 0 },
{ TERMINAL_CLASS, NULL, "cmus", 0, 0, 0, 0, 1, -1, 0, 0, 0 },
{ TERMINAL_CLASS, NULL, notitle, 0, 0, 0, 0, 1, -1, 0, 0, 0 },
{ "Navigator", NULL, NULL, 0, 0, 0, 0, 0, -1, 0, 0, 0 },
{ "qutebrowser", NULL, NULL, 0, 0, 0, 0, 0, -1, 0, 0, 0 },
{ "mpv", NULL, NULL, 0, 0, 0, 0, 0, -1, 0, 0, 0 },
{ "tabbed", NULL, NULL, 0, 0, 0, 0, 1, -1, 0, 0, 0 },
{ "trayer", NULL, NULL, 0, 1, 1, 0, 1, -1, 1, 0, 0 },
{ NULL, NULL, "CustomizeMii 3.11 by Leathl", 0, 1, 0, 0, 1, -1, 0, 0, 0 },
{ NULL, NULL, "Picture-in-Picture", 0, 1, 0, 0, 1, -1, 0, 0, 0 },
{ NULL, NULL, "About GNU IceCat", 0, 1, 0, 0, 1, -1, 0, 0, 0 },
{ NULL, NULL, "About LibreWolf", 0, 1, 0, 0, 1, -1, 0, 0, 0 },
{ NULL, NULL, "About Mozilla Firefox", 0, 1, 0, 0, 1, -1, 0, 0, 0 },
{ NULL, NULL, "Save Image", 0, 1, 0, 0, 1, -1, 0, 0, 0 },
{ NULL, NULL, "scratchpad", 0, 0, 0, -1, 's' },
};