merge: main
This commit is contained in:
commit
1a74e74094
3 changed files with 23 additions and 11 deletions
|
|
@ -1,5 +1,13 @@
|
||||||
# dwl - dwm for Wayland
|
# dwl - dwm for Wayland
|
||||||
|
|
||||||
|
2025-08-16:
|
||||||
|
dwl IS CURRENTLY UN-MAINTAINED.
|
||||||
|
AT THE PRESENT TIME, I (@fauxmight) DO NOT HAVE
|
||||||
|
THE TIME OR CAPACITY TO KEEP UP WITH [wlroots] CHANGES.
|
||||||
|
IF YOU ARE INTERESTED IN TAKING ON LEAD DEVELOPER RESPONSIBILITIES,
|
||||||
|
SEE ISSUE [#1166](https://codeberg.org/dwl/dwl/issues/1166).
|
||||||
|
---
|
||||||
|
|
||||||
Join us on our IRC channel: [#dwl on Libera Chat]
|
Join us on our IRC channel: [#dwl on Libera Chat]
|
||||||
Or on the community-maintained [Discord server].
|
Or on the community-maintained [Discord server].
|
||||||
|
|
||||||
|
|
|
||||||
23
config.def.h
23
config.def.h
|
|
@ -21,13 +21,19 @@ static const float fullscreen_bg[] = {0.0f, 0.0f, 0.0f, 1.0f}; /* You ca
|
||||||
/* logging */
|
/* logging */
|
||||||
static int log_level = WLR_ERROR;
|
static int log_level = WLR_ERROR;
|
||||||
|
|
||||||
/* NOTE: ALWAYS keep a rule declared even if you don't use rules (e.g leave at least one example) */
|
|
||||||
static const Rule rules[] = {
|
static const Rule rules[] = {
|
||||||
|
<<<<<<< HEAD
|
||||||
/* app_id title tags mask isfloating neverdim monitor */
|
/* app_id title tags mask isfloating neverdim monitor */
|
||||||
/* examples:
|
/* examples:
|
||||||
{ "Gimp_example", NULL, 0, 1, 0, -1 },
|
{ "Gimp_example", NULL, 0, 1, 0, -1 },
|
||||||
*/
|
*/
|
||||||
{ "firefox_example", NULL, 1 << 8, 0, 1, -1 },
|
{ "firefox_example", NULL, 1 << 8, 0, 1, -1 },
|
||||||
|
=======
|
||||||
|
/* app_id title tags mask isfloating monitor */
|
||||||
|
{ "Gimp_EXAMPLE", NULL, 0, 1, -1 }, /* Start on currently visible tags floating, not tiled */
|
||||||
|
{ "firefox_EXAMPLE", NULL, 1 << 8, 0, -1 }, /* Start on ONLY tag "9" */
|
||||||
|
/* default/example rule: can be changed but cannot be eliminated; at least one rule must exist */
|
||||||
|
>>>>>>> main
|
||||||
};
|
};
|
||||||
|
|
||||||
/* layout(s) */
|
/* layout(s) */
|
||||||
|
|
@ -40,17 +46,14 @@ static const Layout layouts[] = {
|
||||||
|
|
||||||
/* monitors */
|
/* monitors */
|
||||||
/* (x=-1, y=-1) is reserved as an "autoconfigure" monitor position indicator
|
/* (x=-1, y=-1) is reserved as an "autoconfigure" monitor position indicator
|
||||||
* WARNING: negative values other than (-1, -1) cause problems with Xwayland clients
|
* WARNING: negative values other than (-1, -1) cause problems with Xwayland clients due to
|
||||||
* https://gitlab.freedesktop.org/xorg/xserver/-/issues/899
|
* https://gitlab.freedesktop.org/xorg/xserver/-/issues/899 */
|
||||||
*/
|
|
||||||
/* NOTE: ALWAYS add a fallback rule, even if you are completely sure it won't be used */
|
|
||||||
static const MonitorRule monrules[] = {
|
static const MonitorRule monrules[] = {
|
||||||
/* name mfact nmaster scale layout rotate/reflect x y */
|
/* name mfact nmaster scale layout rotate/reflect x y
|
||||||
/* example of a HiDPI laptop monitor:
|
* example of a HiDPI laptop monitor:
|
||||||
{ "eDP-1", 0.5f, 1, 2, &layouts[0], WL_OUTPUT_TRANSFORM_NORMAL, -1, -1 },
|
{ "eDP-1", 0.5f, 1, 2, &layouts[0], WL_OUTPUT_TRANSFORM_NORMAL, -1, -1 }, */
|
||||||
*/
|
|
||||||
/* defaults */
|
|
||||||
{ NULL, 0.55f, 1, 1, &layouts[0], WL_OUTPUT_TRANSFORM_NORMAL, -1, -1 },
|
{ NULL, 0.55f, 1, 1, &layouts[0], WL_OUTPUT_TRANSFORM_NORMAL, -1, -1 },
|
||||||
|
/* default monitor rule: can be changed but cannot be eliminated; at least one monitor rule must exist */
|
||||||
};
|
};
|
||||||
|
|
||||||
/* keyboard */
|
/* keyboard */
|
||||||
|
|
|
||||||
3
dwl.c
3
dwl.c
|
|
@ -1876,7 +1876,8 @@ keybinding(uint32_t mods, xkb_keysym_t sym)
|
||||||
const Key *k;
|
const Key *k;
|
||||||
for (k = keys; k < END(keys); k++) {
|
for (k = keys; k < END(keys); k++) {
|
||||||
if (CLEANMASK(mods) == CLEANMASK(k->mod)
|
if (CLEANMASK(mods) == CLEANMASK(k->mod)
|
||||||
&& sym == k->keysym && k->func) {
|
&& xkb_keysym_to_lower(sym) == xkb_keysym_to_lower(k->keysym)
|
||||||
|
&& k->func) {
|
||||||
k->func(&k->arg);
|
k->func(&k->arg);
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue