From cdddacbecbf2c51ecec1bf084d8afed835a29dd0 Mon Sep 17 00:00:00 2001 From: Lucien Cartier-Tilet Date: Fri, 11 Nov 2022 14:42:58 +0100 Subject: [PATCH] =?UTF-8?q?[Newm]=20Don=E2=80=99t=20float=20Discord?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .config/newm/config.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.config/newm/config.py b/.config/newm/config.py index a8580f0..56030b4 100644 --- a/.config/newm/config.py +++ b/.config/newm/config.py @@ -94,6 +94,7 @@ def synchronous_update() -> None: def rules(m_view): blur_apps = ("kitty", "wofi", "emacsclient", "emacs") float_apps = ("Rofi",) + nonfloat_apps = ("discord",) if debug_windows: with open("/tmp/newm_windows.txt", "a", encoding="utf-8") as file: file.write(str(m_view.app_id)) @@ -103,6 +104,8 @@ def rules(m_view): m_rules.update({"blur": {"radius": 6, "passes": 2}}) if m_view.app_id in float_apps: m_rules.update({"float": True}) + if m_view.app_id in nonfloat_apps: + m_rules.update({"float": False}) return m_rules