Hooks specific functions to specific Qtile events. Imports import os import subprocess from libqtile import hook Run autostart.sh once on startup @hook.subscribe.startup_once def autostart(): home = os.path.expanduser('~/.config/qtile/autostart.sh') subprocess.call([home])