This file contains hidden or 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
| #!/usr/bin/python3 | |
| """ | |
| Like open-float, but dynamically. Floats a window when it matches the rules. | |
| Some windows don't have the right title and app-id when they open, and only set | |
| them afterward. This script is like open-float for those windows. | |
| Usage: fill in the RULES array below, then run the script. | |
| """ | |
| from dataclasses import dataclass, field | |
| import json |