Add omarchy-doctor checks

This commit is contained in:
Ryan Hughes
2025-09-28 00:45:37 -04:00
parent 57a977a51d
commit 9dcc6f0aec
14 changed files with 321 additions and 165 deletions

View File

@@ -1,18 +1,13 @@
#!/bin/bash
OMARCHY_DESCRIPTION="Omarchy Font"
# Installation function
omarchy_install() {
# Omarchy logo in a font for Waybar use
mkdir -p ~/.local/share/fonts
cp ~/.local/share/omarchy/config/omarchy.ttf ~/.local/share/fonts/
fc-cache
# Omarchy logo in a font for Waybar use
mkdir -p ~/.local/share/fonts
cp ~/.local/share/omarchy/config/omarchy.ttf ~/.local/share/fonts/
fc-cache
}
# Verification function
omarchy_verify() {
# Check if fonts directory exists
[[ -d ~/.local/share/fonts ]] || add_error "Fonts directory missing"
# Check if Omarchy font is installed
[[ -f ~/.local/share/fonts/omarchy.ttf ]] || add_error "Omarchy font missing"
}
[[ -d ~/.local/share/fonts ]] || add_error "Fonts directory missing"
[[ -f ~/.local/share/fonts/omarchy.ttf ]] || add_error "Omarchy font missing"
}