odrling-overlay/x11-wm/dwm/files/0017-remove-browser-rules-and-add-permanent.patch

50 lines
2.1 KiB
Diff

From 00b14b776e9e6ade3d100055330d3fad9004686e Mon Sep 17 00:00:00 2001
From: odrling <florianbadie@odrling.xyz>
Date: Wed, 20 Apr 2022 18:18:33 +0200
Subject: [PATCH 17/27] remove browser rules and add permanent
---
config.def.h | 12 ++++--------
patches.def.h | 2 +-
2 files changed, 5 insertions(+), 9 deletions(-)
diff --git a/config.def.h b/config.def.h
index 5c41bda..d725bae 100644
--- a/config.def.h
+++ b/config.def.h
@@ -482,14 +482,10 @@ static const Rule rules[] = {
RULE(.wintype = WTYPE "UTILITY", .isfloating = 1)
RULE(.wintype = WTYPE "TOOLBAR", .isfloating = 1)
RULE(.wintype = WTYPE "SPLASH", .isfloating = 1)
- RULE(.class = "discord", .tags = 1 << 0, .switchtag = 1, .monitor = 0)
- RULE(.class = "lightcord", .tags = 1 << 0, .switchtag = 1, .monitor = 0)
- RULE(.class = "Firefox", .tags = 1 << 7, .switchtag = 1)
- RULE(.role = "browser", .tags = 1 << 7, .switchtag = 1)
- RULE(.class = "Carla2", .tags = 1 << 8, .monitor = 0, .switchtag = 0)
- RULE(.class = "Ardour", .tags = 1 << 8, .monitor = 0)
- RULE(.class = "easyeffects", .tags = 1 << 8, .monitor = 0)
- RULE(.class = "Agordejo", .tags = 1 << 8, .monitor = 0)
+ RULE(.class = "Carla2", .tags = 1 << 8, .monitor = 0, .switchtag = 0, .ispermanent = 1)
+ RULE(.class = "Ardour", .tags = 1 << 8, .monitor = 0, .ispermanent = 1)
+ RULE(.class = "easyeffects", .tags = 1 << 8, .monitor = 0, .ispermanent = 1)
+ RULE(.class = "Agordejo", .tags = 1 << 8, .monitor = 0, .ispermanent = 1)
RULE(.class = "qBittorrent", .tags = 1 << 6, .switchtag = 1, .monitor = 0)
RULE(.class = "mpv", .instance = "syncplay-mpv", .monitor = 1)
RULE(.class = "Alacritty", .isterminal = 1)
diff --git a/patches.def.h b/patches.def.h
index 0509e26..092bc46 100644
--- a/patches.def.h
+++ b/patches.def.h
@@ -708,7 +708,7 @@
/* Adds rule option for clients to avoid accidental termination by killclient for sticky windows.
* https://dwm.suckless.org/patches/ispermanent/
*/
-#define ISPERMANENT_PATCH 0
+#define ISPERMANENT_PATCH 1
/* This patch adds key modes (like in vim or emacs) where chains of keyboard shortcuts
* can be performed.
--
2.37.2