odrling-overlay/x11-wm/dwm/files/0003-more-config.patch

109 lines
4.5 KiB
Diff

From 0d7763c00e74b3a07d323af1f7962c8434ba5082 Mon Sep 17 00:00:00 2001
From: odrling <florianbadie@odrling.xyz>
Date: Sun, 28 Mar 2021 20:22:05 +0200
Subject: [PATCH 03/26] more config
---
config.def.h | 15 +++++++++------
patches.def.h | 10 +++++-----
2 files changed, 14 insertions(+), 11 deletions(-)
diff --git a/config.def.h b/config.def.h
index 6fb1ff4..147f110 100644
--- a/config.def.h
+++ b/config.def.h
@@ -435,8 +435,9 @@ static const Rule rules[] = {
RULE(.wintype = WTYPE "UTILITY", .isfloating = 1)
RULE(.wintype = WTYPE "TOOLBAR", .isfloating = 1)
RULE(.wintype = WTYPE "SPLASH", .isfloating = 1)
- RULE(.class = "Firefox", .tags = 1 << 7, .switchtag = 2)
- RULE(.class = "Ardour", .tags = 1 << 8)
+ RULE(.class = "Firefox", .tags = 1 << 7, .switchtag = 1)
+ RULE(.class = "Ardour", .tags = 1 << 8, .monitor = 0)
+ RULE(.class = "qBittorrent", .tags = 1 << 6, .switchtag = 1, .monitor = 0)
RULE(.class = "mpv", .instance = "syncplay-mpv", .monitor = 1)
#if SCRATCHPADS_PATCH
RULE(.instance = "spterm", .tags = SPTAG(0), .isfloating = 1)
@@ -1042,7 +1043,7 @@ static Key keys[] = {
{ MODKEY|ShiftMask, XK_f, fullscreen, {0} },
#endif // FULLSCREEN_PATCH
#if STICKY_PATCH
- { MODKEY|ShiftMask, XK_s, togglesticky, {0} },
+ { MODKEY|ShiftMask, XK_t, togglesticky, {0} },
#endif // STICKY_PATCH
#if SCRATCHPAD_ALT_1_PATCH
{ MODKEY, XK_minus, scratchpad_show, {0} },
@@ -1052,8 +1053,8 @@ static Key keys[] = {
{ MODKEY, XK_0, view, {.ui = ~SPTAGMASK } },
{ MODKEY|ShiftMask, XK_0, tag, {.ui = ~SPTAGMASK } },
#else
- { MODKEY, XK_0, view, {.ui = ~0 } },
- { MODKEY|ShiftMask, XK_0, tag, {.ui = ~0 } },
+ { MODKEY, XK_agrave, view, {.ui = ~0 } },
+ { MODKEY|ShiftMask, XK_agrave, tag, {.ui = ~0 } },
#endif // SCRATCHPAD_ALT_1_PATCH
{ MODKEY|ControlMask, XK_j, focusmon, {.i = -1 } },
{ MODKEY|ControlMask, XK_k, focusmon, {.i = +1 } },
@@ -1496,7 +1497,9 @@ static Signal signals[] = {
/* trigger signals using `xsetroot -name "fsignal:<signum>"` */
static Signal signals[] = {
/* signum function argument */
- { 1, setlayout, {.v = 0} },
+ { 1, spawn, SHCMD("setaudio") },
+ { 2, spawn, SHCMD("setoutput") },
+ { 3, spawn, SHCMD("sethid") },
};
#endif // DWMC_PATCH
diff --git a/patches.def.h b/patches.def.h
index fb93871..fcf8e1e 100644
--- a/patches.def.h
+++ b/patches.def.h
@@ -440,7 +440,7 @@
* This patch takes precedence over ATTACHASIDE_PATCH.
* https://dwm.suckless.org/patches/attachabove/
*/
-#define ATTACHABOVE_PATCH 0
+#define ATTACHABOVE_PATCH 1
/* This patch adds new clients on top of the stack.
* This patch takes precedence over ATTACHBELOW_PATCH.
@@ -635,14 +635,14 @@
* the urgency bit on the named window. This patch activates the window instead.
* https://dwm.suckless.org/patches/focusonnetactive/
*/
-#define FOCUSONNETACTIVE_PATCH 0
+#define FOCUSONNETACTIVE_PATCH 1
/* Send "fake signals" to dwm for handling, using xsetroot. This will not conflict with the
* status bar, which also is managed using xsetroot.
* Also see the dwmc patch, which takes precedence over this patch.
* https://dwm.suckless.org/patches/fsignal/
*/
-#define FSIGNAL_PATCH 0
+#define FSIGNAL_PATCH 1
/* Applies the monocle layout with the focused client on top and hides the bar. When pressed
* again it shows the bar and restores the layout that was active before going fullscreen.
@@ -762,7 +762,7 @@
/* Removes the border when there is only one window visible.
* https://dwm.suckless.org/patches/noborder/
*/
-#define NOBORDER_PATCH 1
+#define NOBORDER_PATCH 0
/* Enable modifying or removing dmenu in config.def.h which resulted previously in a
* compilation error because two lines of code hardcode dmenu into dwm.
@@ -814,7 +814,7 @@
* monitor (default).
* https://dwm.suckless.org/patches/pertag/
*/
-#define PERTAG_PATCH 0
+#define PERTAG_PATCH 1
/* Option to store gaps on a per tag basis rather than on a per monitor basis.
* Depends on both pertag and vanitygaps patches being enabled.
--
2.35.1