(with dwm, this would already have been done by the X server)
7JQD43QS55Q2YI6OQ6BGVAHSHKQHI3TKD6PXIKYKJZXOVOWFHMWAC
J6OSBEBQXZR5JZ5TOCCUPELBPUVEQULGCXURXLPY7WFYTDEQOU2AC
7XCGFU3GX4TQXZBOU7GFAQ62EEOTVRNWFYQGI3XULFPSUKDZ2EYAC
7B74AT3BXYB7PVW4F6SGQNPMHOU5TEV5TZ54CG6VSQI46XSEKWXQC
D425ND7AT3F7QJ3CCSESMVDOC3J5C5P32M5SJDBHECZJXLHNQ2FAC
typedef struct { const char *name; float scale;} MonitorRule;
typedef struct {
const char *name;
float scale;
} MonitorRule;
/* Allocates and configures our state for this output */
/* Allocates and configures monitor state using configured rules */
int i; for (i = 0; i < LENGTH(monrules); i++) { if (!monrules[i].name || !strcmp(wlr_output->name, monrules[i].name)) { wlr_output_set_scale(wlr_output, monrules[i].scale); break; } }
int i;
for (i = 0; i < LENGTH(monrules); i++) {
if (!monrules[i].name ||
!strcmp(wlr_output->name, monrules[i].name)) {
wlr_output_set_scale(wlr_output, monrules[i].scale);
break;
}
/* monitors */static const MonitorRule monrules[] = { /* name scale */ { "X11-1", 1 }, { "eDP-1", 2 }, { "HDMI-A-1", 1 }, /* defaults */ { NULL, 1 },};/* keyboard */
/* monitors */
static const MonitorRule monrules[] = {
/* name scale */
{ "X11-1", 1 },
{ "eDP-1", 2 },
{ "HDMI-A-1", 1 },
/* defaults */
{ NULL, 1 },
};
/* keyboard */