mirror of
https://github.com/zoriya/flake.git
synced 2025-12-06 06:36:19 +00:00
Add starting tagset
This commit is contained in:
28
dwl_patches/montagset.patch
Normal file
28
dwl_patches/montagset.patch
Normal file
@@ -0,0 +1,28 @@
|
||||
diff --git a/dwl.c b/dwl.c
|
||||
index e32e58f..a7c2e28 100644
|
||||
--- a/dwl.c
|
||||
+++ b/dwl.c
|
||||
@@ -211,6 +211,7 @@ typedef struct {
|
||||
const Layout *lt;
|
||||
enum wl_output_transform rr;
|
||||
int x, y;
|
||||
+ unsigned tagset;
|
||||
} MonitorRule;
|
||||
|
||||
struct pointer_constraint {
|
||||
@@ -997,7 +998,6 @@ createmon(struct wl_listener *listener, void *data)
|
||||
m->gappiv = gappiv;
|
||||
m->gappoh = gappoh;
|
||||
m->gappov = gappov;
|
||||
- m->tagset[0] = m->tagset[1] = (1<<getunusedtag()) & TAGMASK;
|
||||
for (r = monrules; r < END(monrules); r++) {
|
||||
if (!r->name || strstr(wlr_output->name, r->name)) {
|
||||
m->mfact = r->mfact;
|
||||
@@ -1008,6 +1008,7 @@ createmon(struct wl_listener *listener, void *data)
|
||||
wlr_output_set_transform(wlr_output, r->rr);
|
||||
m->m.x = r->x;
|
||||
m->m.y = r->y;
|
||||
+ m->tagset[0] = m->tagset[1] = (r->tagset ? r->tagset : (1<<getunusedtag())) & TAGMASK;
|
||||
break;
|
||||
}
|
||||
}
|
||||
@@ -33,12 +33,12 @@ static const char *const autostart[] = {
|
||||
static const int allow_constrain = 1;
|
||||
|
||||
static const Rule rules[] = {
|
||||
/* app_id title tags mask isfloating monitor */
|
||||
/* app_id title tags mask isfloating monitor */
|
||||
/* examples:
|
||||
{ "Gimp", NULL, 0, 1, -1 },
|
||||
{ "Gimp", NULL, 0, 1, -1 },
|
||||
*/
|
||||
{ "discord", NULL, 1 << 2, 0, -1 },
|
||||
{ "youtube-music", NULL, 1 << 1, 0, -1 },
|
||||
{ "discord", NULL, 1 << 2, 0, -1 },
|
||||
{ "YouTube Music", NULL, 1 << 0, 0, -1 },
|
||||
};
|
||||
|
||||
/* layout(s) */
|
||||
@@ -52,11 +52,11 @@ static const Layout layouts[] = {
|
||||
|
||||
/* monitors */
|
||||
static const MonitorRule monrules[] = {
|
||||
/* name mfact nmaster scale layout rotate/reflect x y */
|
||||
/* name mfact nmaster scale layout rotate/reflect x y tagset*/
|
||||
/* example of a HiDPI laptop monitor: */
|
||||
{ "eDP-1", 0.55, 1, 1.75, &layouts[0], WL_OUTPUT_TRANSFORM_NORMAL, -1, -1 },
|
||||
{ "eDP-1", 0.55, 1, 1.75, &layouts[0], WL_OUTPUT_TRANSFORM_NORMAL, -1, -1, 1 << 3 },
|
||||
/* defaults */
|
||||
{ NULL, 0.55, 1, 1, &layouts[0], WL_OUTPUT_TRANSFORM_NORMAL, -1, -1 },
|
||||
{ NULL, 0.55, 1, 1, &layouts[0], WL_OUTPUT_TRANSFORM_NORMAL, -1, -1, 0},
|
||||
};
|
||||
|
||||
/* keyboard */
|
||||
|
||||
@@ -33,6 +33,7 @@ in {
|
||||
../dwl_patches/togglelayout.patch
|
||||
../dwl_patches/toggletag.patch
|
||||
../dwl_patches/singletagset.patch
|
||||
../dwl_patches/montagset.patch
|
||||
];
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user