#!/usr/bin/env bash # # Shared utilities for i3blocks scripts. # Source this file to get color variables and the icon() helper. # Colors are available immediately on source — no function call needed. # Generic ok_fg="#f0f0f0" warn1_bg="#facc15" warn1_fg="#36454f" warn2_bg="#cc8d22" warn2_fg="#36454f" crit_bg="#710f3d" crit_fg="#c0c8c6" # Audio mute_bg="#303030" mute_fg="#e0e0e0" # Weather frost_bg="#5b8dd9" frost_fg="#f0f0f0" cold_bg="#7ec8e3" cold_fg="#1a1a2e" warm_bg="#facc15" warm_fg="#36454f" hot_bg="#cc3300" hot_fg="#f0f0f0" # Wrap a glyph in Pango markup for consistent icon sizing and vertical alignment icon() { echo "$1" }