Have Style > Font also set for Waybar, SwayOSD, and fontconfig
This commit is contained in:
parent
08bc9fcaea
commit
46d58ff0df
@ -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
|
||||
|
@ -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
|
||||
|
3
migrations/1754509222.sh
Normal file
3
migrations/1754509222.sh
Normal file
@ -0,0 +1,3 @@
|
||||
echo "Add xmlstarlet needed for updating fonts via Omarchy menu"
|
||||
|
||||
yay -Sy --noconfirm --needed xmlstarlet
|
Loading…
x
Reference in New Issue
Block a user