Created
April 27, 2022 10:14
-
-
Save m-col/d68cfd9cd08cc7d5ffdcde560d1ab6cb to your computer and use it in GitHub Desktop.
Qtile: Make matching windows floating at a specific position
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
""" | |
Make matching windows floating at a specific position. | |
""" | |
from libqtile import config, hook | |
from libqtile.backend import base | |
# Also add this `Match` to `Floating(float_rules=...)`, | |
# making these windows to always start as floating. | |
to_position = config.Match(wm_class="GLava") | |
@hook.subscribe.client_managed | |
def _(win: base.WindowType) -> None: | |
if isinstance(win, base.Window): # Ignore Static windows | |
if win.match(to_position): # Find matching windows | |
win.cmd_set_position_floating(0, 0) # x, y | |
win.cmd_set_size_floating(600, 400) # width, height |
Awesome :)
…On Thu, Apr 28 2022 at 05:48:51 -0700, Eko450 ***@***.***> wrote:
@Eko450-eng commented on this gist.
Thanks a lot man really fixed it :D
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you authored the thread.Message ID:
***@***.***>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Thanks a lot man really fixed it :D