import os
import subprocess

from libqtile import layout
from libqtile.config import Match
from libqtile.hook import subscribe

from groups import groups
from keys import keys, mod
from layouts import layouts
from mouse import mouse
from screens import screens

widget_defaults = dict(
    font="JetBrains mono",
    fontsize=12,
    padding=3,
)
extension_defaults = widget_defaults.copy()
dgroups_key_binder = None
dgroups_app_rules = []  # type: list
follow_mouse_focus = True
bring_front_click = False
cursor_warp = False
floating_layout = layout.Floating(
    float_rules=[
        # Run the utility of `xprop` to see the wm class and name of an X client.
        *layout.Floating.default_float_rules,
        Match(wm_class="confirmreset"), # gitk
        Match(wm_class="makebranch"), # gitk
        Match(wm_class="maketag"), # gitk
        Match(wm_class="ssh-askpass"), # ssh-askpass
        Match(title="branchdialog"), # gitk
        Match(title="pinentry"), # GPG key password entry
        Match(wm_class="copyq"), # CopyQ
        Match(wm_class="steam"),
    ]
)
auto_fullscreen = True
focus_on_window_activation = "smart"
reconfigure_screens = True
auto_minimize = True
wl_input_rules = None
wmname = "LG3D"

@subscribe.startup_complete
def autostart():
    home = os.path.expanduser('~/.config/qtile/scripts/autostart.sh')
    subprocess.run([home])

import os
import subprocess

from libqtile import layout
from libqtile.config import Match
from libqtile.hook import subscribe

from groups import groups
from keys import keys, mod
from layouts import layouts
from mouse import mouse
from screens import screens

widget_defaults = dict(
    font="JetBrains mono",
    fontsize=12,
    padding=3,
)
extension_defaults = widget_defaults.copy()
dgroups_key_binder = None
dgroups_app_rules = []  # type: list
follow_mouse_focus = True
bring_front_click = False
cursor_warp = False
floating_layout = layout.Floating(
    float_rules=[
        # Run the utility of `xprop` to see the wm class and name of an X client.
        *layout.Floating.default_float_rules,
        Match(wm_class="confirmreset"), # gitk
        Match(wm_class="makebranch"), # gitk
        Match(wm_class="maketag"), # gitk
        Match(wm_class="ssh-askpass"), # ssh-askpass
        Match(title="branchdialog"), # gitk
        Match(title="pinentry"), # GPG key password entry
        Match(wm_class="copyq"), # CopyQ
        Match(wm_class="steam"),
    ]
)
auto_fullscreen = True
focus_on_window_activation = "smart"
reconfigure_screens = True
auto_minimize = True
wl_input_rules = None
wmname = "LG3D"

@subscribe.startup_complete
def autostart():
    home = os.path.expanduser('~/.config/qtile/scripts/autostart.sh')
    subprocess.run([home])

# type: list # Run the utility of `xprop` to see the wm class and name of an X client. # gitk # gitk # gitk # ssh-askpass # gitk # GPG key password entry # CopyQ