From a4119ce43e3dd101771b4d23a7b6416534b08035 Mon Sep 17 00:00:00 2001 From: Eamon Burns Date: Fri, 22 Aug 2025 22:44:21 -0700 Subject: [PATCH] fix: add quotes around font names in `omarchy-font-set` (#1001) --- bin/omarchy-font-set | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bin/omarchy-font-set b/bin/omarchy-font-set index 1fc789f0..a45467d4 100755 --- a/bin/omarchy-font-set +++ b/bin/omarchy-font-set @@ -5,8 +5,8 @@ font_name="$1" if [[ -n "$font_name" && "$font_name" != "CNCLD" ]]; then if fc-list | grep -iq "$font_name"; then sed -i "s/family = \".*\"/family = \"$font_name\"/g" ~/.config/alacritty/alacritty.toml - sed -i "s/font-family: .*/font-family: $font_name;/g" ~/.config/waybar/style.css - sed -i "s/font-family: .*/font-family: $font_name;/g" ~/.config/swayosd/style.css + sed -i "s/font-family: .*/font-family: '$font_name';/g" ~/.config/waybar/style.css + sed -i "s/font-family: .*/font-family: '$font_name';/g" ~/.config/swayosd/style.css xmlstarlet ed -L \ -u '//match[@target="pattern"][test/string="monospace"]/edit[@name="family"]/string' \ -v "$font_name" \