From dfb0318727eac43e0ced05ea98f3e8552b22dd07 Mon Sep 17 00:00:00 2001 From: Sravan Balaji Date: Sun, 30 Apr 2023 12:24:35 -0400 Subject: [PATCH] Swallow Patch & Window Rules - Enable swallow patch - Set kitty as `isterminal` for swallow - Remove MATLAB rule with GNU Octave - Add rules for Ubisoft Connect and Prism Launcher - Remove rule for motrix (no longer using it) --- README.org | 10 +++++----- config.def.h | 8 ++++---- patches.def.h | 2 +- 3 files changed, 10 insertions(+), 10 deletions(-) diff --git a/README.org b/README.org index 72cdeaa..7ae65c0 100644 --- a/README.org +++ b/README.org @@ -2870,7 +2870,7 @@ You need to uncomment the corresponding line in config.mk to use the above libra https://dwm.suckless.org/patches/swallow/ #+BEGIN_SRC c :tangle patches.def.h -#define SWALLOW_PATCH 0 +#define SWALLOW_PATCH 1 #+END_SRC *** Swap Focus @@ -4181,25 +4181,25 @@ static const Rule rules[] = { RULE(.class = "Ferdium", .tags = 1 << 0) RULE(.class = "Signal", .tags = 1 << 0) RULE(.class = "discord", .tags = 1 << 0) - RULE(.class = "Microsoft Teams - Preview", .tags = 1 << 0) RULE(.class = "notion-app-enhanced", .tags = 1 << 1) RULE(.class = "pocket-casts-linux", .tags = 1 << 2) RULE(.class = "Spotify", .tags = 1 << 3) RULE(.class = "Vivaldi-stable", .tags = 1 << 4) - RULE(.class = "kitty", .tags = 1 << 5) + RULE(.class = "kitty", .tags = 1 << 5, .isterminal = 1) RULE(.class = "Emacs", .tags = 1 << 6) RULE(.class = "Code", .tags = 1 << 6) - RULE(.class = "MATLAB R2021a - academic use", .tags = 1 << 6) + RULE(.class = "GNU Octave", .tags = 1 << 6) RULE(.class = "Steam", .tags = 1 << 7) RULE(.class = "Lutris", .tags = 1 << 7) RULE(.title = "Origin", .tags = 1 << 7, .isfloating = 1) + RULE(.title = "Ubisoft Connect", .tags = 1 << 7, .isfloating = 1) + RULE(.class = "PrismLauncher", .tags = 1 << 7) RULE(.class = "Thunar", .tags = 1 << 8) RULE(.class = "trackma", .tags = 1 << 8) RULE(.class = "Trackma-gtk", .tags = 1 << 8) RULE(.class = "obs", .tags = 1 << 8) RULE(.class = "NoiseTorch", .tags = 1 << 8) RULE(.class = "kdenlive", .tags = 1 << 8) - RULE(.class = "Motrix", .tags = 1 << 8) #if RENAMED_SCRATCHPADS_PATCH RULE(.instance = "spterm", .scratchkey = 's', .isfloating = 1) #elif SCRATCHPADS_PATCH diff --git a/config.def.h b/config.def.h index 90de571..151749b 100644 --- a/config.def.h +++ b/config.def.h @@ -470,25 +470,25 @@ static const Rule rules[] = { RULE(.class = "Ferdium", .tags = 1 << 0) RULE(.class = "Signal", .tags = 1 << 0) RULE(.class = "discord", .tags = 1 << 0) - RULE(.class = "Microsoft Teams - Preview", .tags = 1 << 0) RULE(.class = "notion-app-enhanced", .tags = 1 << 1) RULE(.class = "pocket-casts-linux", .tags = 1 << 2) RULE(.class = "Spotify", .tags = 1 << 3) RULE(.class = "Vivaldi-stable", .tags = 1 << 4) - RULE(.class = "kitty", .tags = 1 << 5) + RULE(.class = "kitty", .tags = 1 << 5, .isterminal = 1) RULE(.class = "Emacs", .tags = 1 << 6) RULE(.class = "Code", .tags = 1 << 6) - RULE(.class = "MATLAB R2021a - academic use", .tags = 1 << 6) + RULE(.class = "GNU Octave", .tags = 1 << 6) RULE(.class = "Steam", .tags = 1 << 7) RULE(.class = "Lutris", .tags = 1 << 7) RULE(.title = "Origin", .tags = 1 << 7, .isfloating = 1) + RULE(.title = "Ubisoft Connect", .tags = 1 << 7, .isfloating = 1) + RULE(.class = "PrismLauncher", .tags = 1 << 7) RULE(.class = "Thunar", .tags = 1 << 8) RULE(.class = "trackma", .tags = 1 << 8) RULE(.class = "Trackma-gtk", .tags = 1 << 8) RULE(.class = "obs", .tags = 1 << 8) RULE(.class = "NoiseTorch", .tags = 1 << 8) RULE(.class = "kdenlive", .tags = 1 << 8) - RULE(.class = "Motrix", .tags = 1 << 8) #if RENAMED_SCRATCHPADS_PATCH RULE(.instance = "spterm", .scratchkey = 's', .isfloating = 1) #elif SCRATCHPADS_PATCH diff --git a/patches.def.h b/patches.def.h index 175b88e..730a9f3 100644 --- a/patches.def.h +++ b/patches.def.h @@ -303,7 +303,7 @@ #define STICKY_PATCH 0 -#define SWALLOW_PATCH 0 +#define SWALLOW_PATCH 1 #define SWAPFOCUS_PATCH 1