mirror of
https://codeberg.org/dwl/dwl-patches.git
synced 2025-09-09 12:45:00 +00:00
remove modes patch from stale folder
re export modes patch with `git format-patch`
This commit is contained in:
parent
3b62b90b90
commit
f64436c121
@ -1,34 +0,0 @@
|
||||
### Description
|
||||
Implement modes, default mode is `NORMAL`
|
||||
|
||||
### Example
|
||||
|
||||
In the example below, you declare a mode: `BROWSER`, which is activated when you press <kbd>modkey</kbd> + <kbd>b</kbd>. Then, you can press <kbd>f</kbd> to launch `Firefox` and return to the default `NORMAL` mode.
|
||||
|
||||
```c
|
||||
enum {
|
||||
BROWSER,
|
||||
};
|
||||
const char *modes_labels[] = {
|
||||
"browser",
|
||||
};
|
||||
|
||||
static const Key keys[] = {
|
||||
// ...
|
||||
{ MODKEY, XKB_KEY_b, entermode, {.i = BROWSER} },
|
||||
// ...
|
||||
};
|
||||
|
||||
static const Modekey modekeys[] = {
|
||||
/* mode modifier key function argument */
|
||||
{ BROWSER, { 0, XKB_KEY_f, spawn, SHCMD("firefox") } },
|
||||
{ BROWSER, { 0, XKB_KEY_f, entermode, {.i = NORMAL} } },
|
||||
{ BROWSER, { 0, XKB_KEY_Escape, entermode, {.i = NORMAL} } },
|
||||
};
|
||||
```
|
||||
|
||||
### Download
|
||||
- [2023-09-11](https://github.com/djpohly/dwl/compare/main...wochap:modes.patch)
|
||||
|
||||
### Authors
|
||||
- [wochap](https://github.com/wochap)
|
@ -1,3 +1,14 @@
|
||||
From a32b85018ff2cea0fc9f9137789860a4aadc3b3a Mon Sep 17 00:00:00 2001
|
||||
From: wochap <gean.marroquin@gmail.com>
|
||||
Date: Wed, 6 Mar 2024 07:31:17 -0500
|
||||
Subject: [PATCH] implement modes
|
||||
|
||||
like sway/river modes
|
||||
---
|
||||
config.def.h | 20 ++++++++++++++++++++
|
||||
dwl.c | 46 ++++++++++++++++++++++++++++++++++++++++++++++
|
||||
2 files changed, 66 insertions(+)
|
||||
|
||||
diff --git a/config.def.h b/config.def.h
|
||||
index db0babc..1616136 100644
|
||||
--- a/config.def.h
|
||||
@ -149,3 +160,6 @@ index ef27a1d..1ada006 100644
|
||||
#ifdef XWAYLAND
|
||||
void
|
||||
activatex11(struct wl_listener *listener, void *data)
|
||||
--
|
||||
2.42.0
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user