initial commit
This commit is contained in:
25
modules/hooks.py
Normal file
25
modules/hooks.py
Normal file
@@ -0,0 +1,25 @@
|
||||
# _ _ _ _ _
|
||||
# __ _| |_(_) | ___ | |__ ___ ___ | | _____
|
||||
# / _` | __| | |/ _ \ | '_ \ / _ \ / _ \| |/ / __|
|
||||
# | (_| | |_| | | __/ | | | | (_) | (_) | <\__ \
|
||||
# \__, |\__|_|_|\___| |_| |_|\___/ \___/|_|\_\___/
|
||||
# |_|
|
||||
# by cerberus
|
||||
# --------------------------------------------------------------------
|
||||
|
||||
# --------------------------------------------------------------------
|
||||
# Imports
|
||||
# --------------------------------------------------------------------
|
||||
from libqtile import hook, qtile
|
||||
import subprocess
|
||||
import os.path
|
||||
|
||||
# --------------------------------------------------------------------
|
||||
# HOOK startup
|
||||
# --------------------------------------------------------------------
|
||||
|
||||
@hook.subscribe.startup_once
|
||||
def autostart():
|
||||
autostartscript = "~/.config/qtile/res/scripts/autostart.sh"
|
||||
home = os.path.expanduser(autostartscript)
|
||||
subprocess.Popen([home])
|
||||
Reference in New Issue
Block a user