mirror of
https://github.com/starr-dusT/dotfiles.git
synced 2025-02-19 19:27:31 -08:00
28 lines
1.2 KiB
Python
28 lines
1.2 KiB
Python
from libqtile.config import Match, Rule
|
|
from libqtile import hook
|
|
|
|
dgroups_app_rules = [Rule(Match(wm_type=["confirm",
|
|
"download",
|
|
"notification",
|
|
"toolbar",
|
|
"splash",
|
|
"dialog",
|
|
"error",
|
|
"file_progress",
|
|
"confirmreset",
|
|
"makebranch",
|
|
"maketag",
|
|
"branchdialog",
|
|
"pinentry",
|
|
"sshaskpass"]),
|
|
float=True),
|
|
Rule(Match(wm_class=["lutris", "league of legends.exe", "leagueclientux.exe"]),
|
|
float=True,
|
|
break_on_match=True)]
|
|
@hook.subscribe.client_new
|
|
def floating_dialogs(window):
|
|
dialog = window.window.get_wm_type() == 'dialog'
|
|
transient = window.window.get_wm_transient_for()
|
|
if dialog or transient:
|
|
window.floating = True
|