import os import subprocess from libqtile import hook @hook.subscribe.startup_once def autostart(): home = os.path.expanduser('~/.config/qtile/autostart.sh') subprocess.Popen([home]) @hook.subscribe.startup def runner(): import subprocess subprocess.Popen(['xsetroot', '-cursor_name', 'left_ptr'])