Created
February 2, 2023 16:10
-
-
Save Etn40ff/1bb1740689f6eb026d28f411b3240be1 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Float Zoom's notifications but not all the rest | |
@hook.subscribe.client_managed | |
def managed_hook(window): | |
if ( | |
"zoom" in window.get_wm_class() | |
and window.cmd_hints()["base_width"] in [ 0, 355] | |
and window.cmd_hints()["base_height"] == 0 | |
): | |
window.cmd_enable_floating() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment