109 lines
4.5 KiB
Diff
109 lines
4.5 KiB
Diff
From aaf33cf035755a15ce361dcf9df937703b9fcc7f Mon Sep 17 00:00:00 2001
|
|
From: odrling <florianbadie@odrling.xyz>
|
|
Date: Sun, 28 Mar 2021 20:22:05 +0200
|
|
Subject: [PATCH 03/27] 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 eb88fb3..9782f5d 100644
|
|
--- a/config.def.h
|
|
+++ b/config.def.h
|
|
@@ -481,8 +481,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)
|
|
@@ -1102,7 +1103,7 @@ static const 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} },
|
|
@@ -1112,8 +1113,8 @@ static const 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 } },
|
|
@@ -1580,7 +1581,9 @@ static const 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 b45e1c7..d583d86 100644
|
|
--- a/patches.def.h
|
|
+++ b/patches.def.h
|
|
@@ -457,7 +457,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.
|
|
@@ -664,14 +664,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.
|
|
@@ -817,7 +817,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
|
|
|
|
/* This patch allows for toggleable client button bindings that have no modifiers.
|
|
* This can, for example, allow you to move or resize using the mouse alone without holding
|
|
@@ -863,7 +863,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.37.2
|
|
|