Reload Qtile safely
Goal
Apply a validated Qtile configuration through Qtile’s IPC socket and verify that the running session remains healthy.
Workflow
Discover
QTILE_CONFIG_ROOT, defaulting to$HOME/.config/qtile, and run the configuration check before touching the live session:qtile check -c "$QTILE_CONFIG_ROOT/config.py"Confirm that the user service is active when systemd owns the session:
systemctl --user is-active qtile.serviceReload through Qtile IPC:
qtile cmd-obj -o root -f reload_configsystemctl --user reload qtile.serviceis not the equivalent operation unless the service explicitly defines anExecReload; prefer Qtile IPC.Wait briefly for the configuration to settle, then verify IPC and the affected object:
qtile cmd-obj -o root -f info qtile cmd-obj -o screen 0 -f infoInvoke
qtile-confirmfor changes involving geometry, widgets, colors, popups, monitor placement, or visibility. A successful IPC response is not visual verification.
Failure handling
If
qtile checkfails, do not reload. Invokeqtile-debugand fix the canonical source throughqtile-edit.If IPC fails after a successful check, capture the service journal before restarting anything:
journalctl --user -u qtile.service -b -n 200 --no-pagerDo not use a systemd restart as an automatic fallback; it can disrupt the session and may hide an IPC or runtime failure.