48 lines
2 KiB
Diff
48 lines
2 KiB
Diff
From ce294baec2440bbf762a053d307e6ab704990a37 Mon Sep 17 00:00:00 2001
|
|
From: odrling <florianbadie@odrling.xyz>
|
|
Date: Fri, 14 May 2021 19:58:33 +0200
|
|
Subject: [PATCH 08/27] 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 7aed2be..860dbdd 100644
|
|
--- a/config.def.h
|
|
+++ b/config.def.h
|
|
@@ -483,6 +483,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)
|
|
@@ -1282,7 +1283,7 @@ static const 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 d583d86..7c2e2c7 100644
|
|
--- a/patches.def.h
|
|
+++ b/patches.def.h
|
|
@@ -1320,7 +1320,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.37.2
|
|
|