odrling-overlay/x11-wm/dwm/files/0008-browser-config.patch
2022-06-21 13:46:07 +02:00

48 lines
2 KiB
Diff

From ede1c5b01ad7e77189ecf213fc199995cf481b06 Mon Sep 17 00:00:00 2001
From: odrling <florianbadie@odrling.xyz>
Date: Fri, 14 May 2021 19:58:33 +0200
Subject: [PATCH 08/26] browser config
---
config.def.h | 3 ++-
patches.def.h | 2 +-
2 files changed, 3 insertions(+), 2 deletions(-)
diff --git a/config.def.h b/config.def.h
index c8acd30..c73e40e 100644
--- a/config.def.h
+++ b/config.def.h
@@ -459,6 +459,7 @@ static const Rule rules[] = {
RULE(.wintype = WTYPE "TOOLBAR", .isfloating = 1)
RULE(.wintype = WTYPE "SPLASH", .isfloating = 1)
RULE(.class = "Firefox", .tags = 1 << 7, .switchtag = 1)
+ RULE(.role = "browser", .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)
@@ -1245,7 +1246,7 @@ static Key keys[] = {
{ MODKEY, XK_Left, spawn, SHCMD("backlight - 5") },
{ MODKEY, XK_Right, spawn, SHCMD("backlight + 5") },
{ MODKEY|ShiftMask, XK_d, spawn, SHCMD("discord") },
- { MODKEY|ShiftMask, XK_f, spawn, SHCMD("firefox") },
+ { MODKEY|ShiftMask, XK_f, spawn, SHCMD("browser") },
{ MODKEY, XK_a, spawn, SHCMD("anime") },
{ MODKEY, XK_v, spawn, SHCMD("st -e vid") },
{ MODKEY, XK_n, spawn, SHCMD("st -e newsboat") },
diff --git a/patches.def.h b/patches.def.h
index c195cdb..c0c782a 100644
--- a/patches.def.h
+++ b/patches.def.h
@@ -1247,7 +1247,7 @@
* or Google-chrome "browser" vs "pop-up".
* https://github.com/bakkeby/patches/blob/master/dwm/dwm-windowrolerule-6.2.diff
*/
-#define WINDOWROLERULE_PATCH 0
+#define WINDOWROLERULE_PATCH 1
/* The winview patch allows switching the view to that of a given client from the all-window
* view (Mod-0) using a keyboard shortcut.
--
2.35.1