Skip to content
Discussion options

You must be logged in to vote

Using the following inside the Qtile configuration (e.g. config.py or whatever you pass with the -c flag) works properly as far as I can tell (I haven't done anything complicated yet in this configuration though, so I can't say that it won't run into problems).

# Import hy so you can load hy modules
import hy
# Import everything from the hy module contaning the configuration into the
# current "namespace" (idk the term that python uses).
from init import *
# Imports from init.hy

I feared that config reloading might not work correctly like this (due to the way modules generally work as eval once code), but Qtile's restart at least seems to handle this.

I will leave this question open for a…

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by yuki-tsubaki
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant