sections: init dynamic section
Новая секция формирует список настроек на основе JSON-вывода команды, указанной в generator_command. Шаблон для каждого элемента задаётся через setting_template.
Пример:
- name: "User modules"
weight: 0
page: Hyprland
type: dynamic
generator_command: "ximperconf hyprland module info -u -o json"
setting_template:
name: "{name}"
type: boolean
get_command: "ximperconf hyprland module status -u {name} | grep -Eq '^(enabled|missing)$' && echo True || echo False"
set_command: "ximperconf hyprland module toggle -u {name}"
{{ resolvedDiscussionCount }}/{{ discussionCount }} {{ resolvedCountText }} resolved