AGENT SKILL

qtile-reload

qtile, reload, IPC, validation, runtime-verification

License 许可
BSD-3-Clause
所属仓库
lost-rob0t/skills
最近更新
2026-11-14
Stars
★ 0
Forks
0

01 前言 Front Matter

name
qtile-reload
description
qtile, reload, IPC, validation, runtime-verification
compatibility
Requires a running Qtile session with its command socket available.

03 SKILL.md 正文

Reload Qtile safely

Goal

Apply a validated Qtile configuration through Qtile’s IPC socket and verify that the running session remains healthy.

Workflow

  1. 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"
    
  2. Confirm that the user service is active when systemd owns the session:

    systemctl --user is-active qtile.service
    
  3. Reload through Qtile IPC:

    qtile cmd-obj -o root -f reload_config
    

    systemctl --user reload qtile.service is not the equivalent operation unless the service explicitly defines an ExecReload; prefer Qtile IPC.

  4. 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 info
    
  5. Invoke qtile-confirm for changes involving geometry, widgets, colors, popups, monitor placement, or visibility. A successful IPC response is not visual verification.

Failure handling

  • If qtile check fails, do not reload. Invoke qtile-debug and fix the canonical source through qtile-edit.

  • If IPC fails after a successful check, capture the service journal before restarting anything:

    journalctl --user -u qtile.service -b -n 200 --no-pager
    
  • Do not use a systemd restart as an automatic fallback; it can disrupt the session and may hide an IPC or runtime failure.

04 同仓库更多 Skills