mirror of
https://codeberg.org/dwl/dwl-patches.git
synced 2025-09-10 13:14:57 +00:00
90 lines
2.8 KiB
Diff
90 lines
2.8 KiB
Diff
diff --git a/.github/ISSUE_TEMPLATE/bug_report.md b/.github/ISSUE_TEMPLATE/bug_report.md
|
|
index e6278d8..cd9bd8d 100644
|
|
--- a/.github/ISSUE_TEMPLATE/bug_report.md
|
|
+++ b/.github/ISSUE_TEMPLATE/bug_report.md
|
|
@@ -7,7 +7,11 @@ assignees: ''
|
|
|
|
---
|
|
|
|
-### ⚠️ Migrated to Codeberg
|
|
-
|
|
-This project has [migrated to Codeberg](https://codeberg.org/dwl/dwl).
|
|
-
|
|
+## Info
|
|
+dwl version:
|
|
+wlroots version:
|
|
+## Description
|
|
+<!--
|
|
+Only report bugs that can be reproduced on the main line
|
|
+Report patch issues to their respective authors
|
|
+-->
|
|
diff --git a/.github/ISSUE_TEMPLATE/enhancement-idea.md b/.github/ISSUE_TEMPLATE/enhancement-idea.md
|
|
index cbfd90f..0ac096d 100644
|
|
--- a/.github/ISSUE_TEMPLATE/enhancement-idea.md
|
|
+++ b/.github/ISSUE_TEMPLATE/enhancement-idea.md
|
|
@@ -7,7 +7,4 @@ assignees: ''
|
|
|
|
---
|
|
|
|
-### ⚠️ Migrated to Codeberg
|
|
-
|
|
-This project has [migrated to Codeberg](https://codeberg.org/dwl/dwl).
|
|
|
|
diff --git a/README.md b/README.md
|
|
index e02c9c4..62ae872 100644
|
|
--- a/README.md
|
|
+++ b/README.md
|
|
@@ -1,10 +1,5 @@
|
|
# dwl - dwm for Wayland
|
|
|
|
-> ### ⚠️ Migrated to Codeberg
|
|
->
|
|
-> This project has [migrated to Codeberg](https://codeberg.org/dwl/dwl).
|
|
-
|
|
-
|
|
Join us on our IRC channel: [#dwl on Libera Chat]
|
|
Or on our [Discord server].
|
|
|
|
diff --git a/config.def.h b/config.def.h
|
|
index db0babc..149313c 100644
|
|
--- a/config.def.h
|
|
+++ b/config.def.h
|
|
@@ -136,6 +136,7 @@ static const Key keys[] = {
|
|
{ MODKEY|WLR_MODIFIER_SHIFT, XKB_KEY_space, togglefloating, {0} },
|
|
{ MODKEY, XKB_KEY_e, togglefullscreen, {0} },
|
|
{ MODKEY, XKB_KEY_0, view, {.ui = ~0} },
|
|
+ { MODKEY, XKB_KEY_o, winview, {0}},
|
|
{ MODKEY|WLR_MODIFIER_SHIFT, XKB_KEY_parenright, tag, {.ui = ~0} },
|
|
{ MODKEY, XKB_KEY_comma, focusmon, {.i = WLR_DIRECTION_LEFT} },
|
|
{ MODKEY, XKB_KEY_period, focusmon, {.i = WLR_DIRECTION_RIGHT} },
|
|
diff --git a/dwl.c b/dwl.c
|
|
index ef27a1d..5f287b5 100644
|
|
--- a/dwl.c
|
|
+++ b/dwl.c
|
|
@@ -323,6 +323,7 @@ static void updatetitle(struct wl_listener *listener, void *data);
|
|
static void urgent(struct wl_listener *listener, void *data);
|
|
static void view(const Arg *arg);
|
|
static void virtualkeyboard(struct wl_listener *listener, void *data);
|
|
+static void winview(const Arg *a);
|
|
static Monitor *xytomon(double x, double y);
|
|
static void xytonode(double x, double y, struct wlr_surface **psurface,
|
|
Client **pc, LayerSurface **pl, double *nx, double *ny);
|
|
@@ -2676,6 +2677,17 @@ virtualkeyboard(struct wl_listener *listener, void *data)
|
|
createkeyboard(&keyboard->keyboard);
|
|
}
|
|
|
|
+void
|
|
+winview(const Arg *a) {
|
|
+ Arg b = {0};
|
|
+ Client *sel = focustop(selmon);
|
|
+ if(!sel)
|
|
+ return;
|
|
+ b.ui = sel -> tags;
|
|
+ view(&b);
|
|
+ return;
|
|
+}
|
|
+
|
|
Monitor *
|
|
xytomon(double x, double y)
|
|
{
|