[Newm] Don’t float Discord

This commit is contained in:
Lucien Cartier-Tilet 2022-11-11 14:42:58 +01:00
parent d8f6399394
commit cdddacbecb
Signed by: phundrak
GPG Key ID: BD7789E705CB8DCA

View File

@ -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