dotfiles/.config/qtile/modules/hooks.py
2022-03-18 02:11:36 +03:00

21 lines
394 B
Python

import subprocess
from libqtile import hook
from libqtile.command.client import InteractiveCommandClient
@hook.subscribe.startup
def autostart():
subprocess.call(['autostart.sh'])
@hook.subscribe.startup_complete
def focus_group():
c = InteractiveCommandClient()
c.group['4'].toscreen()
@hook.subscribe.client_managed
def show_window(window):
window.group.cmd_toscreen()