Polybar
Mechanism
Section titled “Mechanism”Polybar runs as a daemon. It usually has a config file (config.ini) which can include other files.
It supports an IPC mechanism (polybar-msg) to restart or reload the bar.
2. Themis’s Approach
Section titled “2. Themis’s Approach”We use Template + Include + Command.
- Generate
~/.config/polybar/colors.ini. - Include it in
config.ini:include-file = ~/.config/polybar/colors.ini. - Send a restart command.
3. User Setup
Section titled “3. User Setup”One-time: Add include to ~/.config/polybar/config.ini:
[global/wm]include-file = ~/.config/polybar/colors.ini4. Equivalent Configuration
Section titled “4. Equivalent Configuration”enroll: polybar: type: template input: "~/.config/themis/templates/polybar_colors.ini.j2" output: "~/.config/polybar/colors.ini" # Command to reload/restart reload_cmd: "polybar-msg cmd restart"