diff --git a/bin/omarchy-font-set b/bin/omarchy-font-set index db545d01..c34cb9ea 100755 --- a/bin/omarchy-font-set +++ b/bin/omarchy-font-set @@ -5,6 +5,15 @@ 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 + xmlstarlet ed -L \ + -u '//match[@target="pattern"][test/string="monospace"]/edit[@name="family"]/string' \ + -v "$font_name" \ + ~/.config/fontconfig/fonts.conf + + ~/.local/share/omarchy/bin/omarchy-restart-waybar + ~/.local/share/omarchy/bin/omarchy-restart-swayosd else echo "Font '$font_name' not found." exit 1 diff --git a/install/development/terminal.sh b/install/development/terminal.sh index 2df35f97..ce2e26f3 100644 --- a/install/development/terminal.sh +++ b/install/development/terminal.sh @@ -2,7 +2,7 @@ yay -S --noconfirm --needed \ wget curl unzip inetutils impala \ - fd eza fzf ripgrep zoxide bat jq \ + fd eza fzf ripgrep zoxide bat jq xmlstarlet \ wl-clipboard fastfetch btop \ man tldr less whois plocate bash-completion \ alacritty diff --git a/migrations/1754509222.sh b/migrations/1754509222.sh new file mode 100644 index 00000000..799cac38 --- /dev/null +++ b/migrations/1754509222.sh @@ -0,0 +1,3 @@ +echo "Add xmlstarlet needed for updating fonts via Omarchy menu" + +yay -Sy --noconfirm --needed xmlstarlet