mirror of
https://codeberg.org/dwl/dwl-patches.git
synced 2026-05-06 16:33:25 +00:00
Add: make tag 0 a regular tag
This commit is contained in:
parent
2bfdd50f98
commit
5d2f27a9f9
16
patches/zerotag/README.md
Normal file
16
patches/zerotag/README.md
Normal file
@ -0,0 +1,16 @@
|
|||||||
|
# Description
|
||||||
|
Make tag 0 a regular tag
|
||||||
|
|
||||||
|
### Dependencies
|
||||||
|
|
||||||
|
This patch comes in **two versions**:
|
||||||
|
|
||||||
|
- **`bar_zerotag.patch`** - Depends on the [bar](https://codeberg.org/dwl/dwl-patches/src/branch/main/patches/bar/) patch.
|
||||||
|
- **`zerotag.patch`** - No dependencies.
|
||||||
|
|
||||||
|
### Download
|
||||||
|
- [git branch](https://codeberg.org/6z7y/dwl-patches/raw/branch/main/patches/zerotag/zerotag.patch)
|
||||||
|
- [main 2026-02-25](https://codeberg.org/dwl/dwl-patches/raw/branch/main/patches/zerotag/zerotag.patch)
|
||||||
|
|
||||||
|
### Authors
|
||||||
|
- [6z7y](https://codeberg.org/6z7y)
|
||||||
33
patches/zerotag/bar_zerotag.patch
Normal file
33
patches/zerotag/bar_zerotag.patch
Normal file
@ -0,0 +1,33 @@
|
|||||||
|
diff --git a/config.def.h b/config.def.h
|
||||||
|
index 7da50d2..f058a17 100644
|
||||||
|
--- a/config.def.h
|
||||||
|
+++ b/config.def.h
|
||||||
|
@@ -21,7 +21,7 @@ static uint32_t colors[][3] = {
|
||||||
|
};
|
||||||
|
|
||||||
|
/* tagging */
|
||||||
|
-static char *tags[] = { "1", "2", "3", "4", "5", "6", "7", "8", "9" };
|
||||||
|
+static char *tags[] = { "1", "2", "3", "4", "5", "6", "7", "8", "9", "0" };
|
||||||
|
|
||||||
|
/* logging */
|
||||||
|
static int log_level = WLR_ERROR;
|
||||||
|
@@ -145,8 +145,6 @@ static const Key keys[] = {
|
||||||
|
{ MODKEY, XKB_KEY_space, setlayout, {0} },
|
||||||
|
{ MODKEY|WLR_MODIFIER_SHIFT, XKB_KEY_space, togglefloating, {0} },
|
||||||
|
{ MODKEY, XKB_KEY_e, togglefullscreen, {0} },
|
||||||
|
- { MODKEY, XKB_KEY_0, view, {.ui = ~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} },
|
||||||
|
{ MODKEY|WLR_MODIFIER_SHIFT, XKB_KEY_less, tagmon, {.i = WLR_DIRECTION_LEFT} },
|
||||||
|
@@ -160,8 +158,10 @@ static const Key keys[] = {
|
||||||
|
TAGKEYS( XKB_KEY_7, XKB_KEY_ampersand, 6),
|
||||||
|
TAGKEYS( XKB_KEY_8, XKB_KEY_asterisk, 7),
|
||||||
|
TAGKEYS( XKB_KEY_9, XKB_KEY_parenleft, 8),
|
||||||
|
+ TAGKEYS( XKB_KEY_0, XKB_KEY_parenright, 9),
|
||||||
|
{ MODKEY|WLR_MODIFIER_SHIFT, XKB_KEY_q, quit, {0} },
|
||||||
|
|
||||||
|
+
|
||||||
|
/* Ctrl-Alt-Backspace and Ctrl-Alt-Fx used to be handled by X server */
|
||||||
|
{ WLR_MODIFIER_CTRL|WLR_MODIFIER_ALT,XKB_KEY_Terminate_Server, quit, {0} },
|
||||||
|
/* Ctrl-Alt-Fx is used to switch to another VT, if you don't know what a VT is
|
||||||
30
patches/zerotag/zerotag.patch
Normal file
30
patches/zerotag/zerotag.patch
Normal file
@ -0,0 +1,30 @@
|
|||||||
|
diff --git a/config.def.h b/config.def.h
|
||||||
|
index 8a6eda0..b0fdfe8 100644
|
||||||
|
--- a/config.def.h
|
||||||
|
+++ b/config.def.h
|
||||||
|
@@ -15,7 +15,7 @@ static const float urgentcolor[] = COLOR(0xff0000ff);
|
||||||
|
static const float fullscreen_bg[] = {0.0f, 0.0f, 0.0f, 1.0f}; /* You can also use glsl colors */
|
||||||
|
|
||||||
|
/* tagging - TAGCOUNT must be no greater than 31 */
|
||||||
|
-#define TAGCOUNT (9)
|
||||||
|
+#define TAGCOUNT (10)
|
||||||
|
|
||||||
|
/* logging */
|
||||||
|
static int log_level = WLR_ERROR;
|
||||||
|
@@ -138,8 +138,6 @@ static const Key keys[] = {
|
||||||
|
{ MODKEY, XKB_KEY_space, setlayout, {0} },
|
||||||
|
{ MODKEY|WLR_MODIFIER_SHIFT, XKB_KEY_space, togglefloating, {0} },
|
||||||
|
{ MODKEY, XKB_KEY_e, togglefullscreen, {0} },
|
||||||
|
- { MODKEY, XKB_KEY_0, view, {.ui = ~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} },
|
||||||
|
{ MODKEY|WLR_MODIFIER_SHIFT, XKB_KEY_less, tagmon, {.i = WLR_DIRECTION_LEFT} },
|
||||||
|
@@ -153,6 +151,7 @@ static const Key keys[] = {
|
||||||
|
TAGKEYS( XKB_KEY_7, XKB_KEY_ampersand, 6),
|
||||||
|
TAGKEYS( XKB_KEY_8, XKB_KEY_asterisk, 7),
|
||||||
|
TAGKEYS( XKB_KEY_9, XKB_KEY_parenleft, 8),
|
||||||
|
+ TAGKEYS( XKB_KEY_0, XKB_KEY_parenright, 9),
|
||||||
|
{ MODKEY|WLR_MODIFIER_SHIFT, XKB_KEY_q, quit, {0} },
|
||||||
|
|
||||||
|
/* Ctrl-Alt-Backspace and Ctrl-Alt-Fx used to be handled by X server */
|
||||||
Loading…
x
Reference in New Issue
Block a user