dotfiles/.config/qtile/modules/hooks.py

21 lines
394 B
Python
Raw Normal View History

2022-01-25 21:28:02 +01:00
import subprocess
from libqtile import hook
2022-03-18 00:11:36 +01:00
from libqtile.command.client import InteractiveCommandClient
2022-01-25 21:28:02 +01:00
@hook.subscribe.startup
def autostart():
2022-03-18 00:11:36 +01:00
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()