mirror of
https://github.com/basecamp/omarchy.git
synced 2026-02-17 15:25:37 +00:00
Add omarchy-doctor checks
This commit is contained in:
21
install/checks/firewall.sh
Normal file
21
install/checks/firewall.sh
Normal file
@@ -0,0 +1,21 @@
|
|||||||
|
OMARCHY_DESCRIPTION="Firewall Configuration"
|
||||||
|
|
||||||
|
omarchy_verify() {
|
||||||
|
# Check if UFW is enabled
|
||||||
|
sudo ufw status | grep -q "Status: active" || add_error "UFW firewall not active"
|
||||||
|
|
||||||
|
# Check if UFW service is enabled
|
||||||
|
systemctl is-enabled ufw &>/dev/null || add_error "UFW service not enabled"
|
||||||
|
|
||||||
|
# Check default policies - they're on one line as "Default: deny (incoming), allow (outgoing), deny (routed)"
|
||||||
|
sudo ufw status verbose | grep -q "Default:.*deny (incoming)" || add_error "UFW default incoming policy not set to deny"
|
||||||
|
sudo ufw status verbose | grep -q "Default:.*allow (outgoing)" || add_error "UFW default outgoing policy not set to allow"
|
||||||
|
|
||||||
|
# Check specific rules are present
|
||||||
|
sudo ufw status numbered | grep -q "53317/udp" || add_error "LocalSend UDP port 53317 not allowed"
|
||||||
|
sudo ufw status numbered | grep -q "53317/tcp" || add_error "LocalSend TCP port 53317 not allowed"
|
||||||
|
sudo ufw status numbered | grep -q "22/tcp" || add_error "SSH port 22 not allowed"
|
||||||
|
|
||||||
|
# Check Docker DNS rule
|
||||||
|
sudo ufw status numbered | grep -q "allow-docker-dns" || add_error "Docker DNS rule not configured"
|
||||||
|
}
|
||||||
9
install/checks/gnome-theme.sh
Normal file
9
install/checks/gnome-theme.sh
Normal file
@@ -0,0 +1,9 @@
|
|||||||
|
OMARCHY_DESCRIPTION="GNOME Theme Settings"
|
||||||
|
|
||||||
|
omarchy_verify() {
|
||||||
|
gsettings get org.gnome.desktop.interface gtk-theme &>/dev/null || add_error "Cannot access GTK theme setting"
|
||||||
|
gsettings get org.gnome.desktop.interface color-scheme &>/dev/null || add_error "Cannot access color scheme setting"
|
||||||
|
gsettings get org.gnome.desktop.interface icon-theme &>/dev/null || add_error "Cannot access icon theme setting"
|
||||||
|
|
||||||
|
[[ -d /usr/share/icons ]] || add_error "Icon themes directory missing"
|
||||||
|
}
|
||||||
13
install/checks/power-profiles.sh
Normal file
13
install/checks/power-profiles.sh
Normal file
@@ -0,0 +1,13 @@
|
|||||||
|
OMARCHY_DESCRIPTION="Power Profile & Battery Settings"
|
||||||
|
|
||||||
|
omarchy_verify() {
|
||||||
|
if ls /sys/class/power_supply/BAT* &>/dev/null; then
|
||||||
|
current_profile=$(powerprofilesctl get 2>/dev/null)
|
||||||
|
[[ "$current_profile" == "balanced" ]] || add_error "Power profile not set to balanced for battery device"
|
||||||
|
|
||||||
|
systemctl --user is-enabled omarchy-battery-monitor.timer &>/dev/null || add_error "Battery monitor timer not enabled"
|
||||||
|
else
|
||||||
|
current_profile=$(powerprofilesctl get 2>/dev/null)
|
||||||
|
[[ "$current_profile" == "performance" ]] || add_error "Power profile not set to performance for AC device"
|
||||||
|
fi
|
||||||
|
}
|
||||||
@@ -17,6 +17,4 @@ omarchy_verify() {
|
|||||||
local perms=$(stat -c %a /etc/gnupg/dirmngr.conf)
|
local perms=$(stat -c %a /etc/gnupg/dirmngr.conf)
|
||||||
[[ "$perms" == "644" ]] || add_error "GPG dirmngr.conf has incorrect permissions: $perms (should be 644)"
|
[[ "$perms" == "644" ]] || add_error "GPG dirmngr.conf has incorrect permissions: $perms (should be 644)"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
pgrep -x dirmngr >/dev/null || add_error "GPG dirmngr is not running"
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,8 +1,13 @@
|
|||||||
KEYRING_DIR="$HOME/.local/share/keyrings"
|
OMARCHY_DESCRIPTION="GNOME Keyring Default Setup"
|
||||||
KEYRING_FILE="Default_keyring.keyring"
|
|
||||||
DEFAULT_FILE="default"
|
|
||||||
|
|
||||||
cat << EOF | tee "$KEYRING_FILE"
|
omarchy_install() {
|
||||||
|
KEYRING_DIR="$HOME/.local/share/keyrings"
|
||||||
|
KEYRING_FILE="$KEYRING_DIR/Default_keyring.keyring"
|
||||||
|
DEFAULT_FILE="$KEYRING_DIR/default"
|
||||||
|
|
||||||
|
mkdir -p "$KEYRING_DIR"
|
||||||
|
|
||||||
|
cat << EOF > "$KEYRING_FILE"
|
||||||
[keyring]
|
[keyring]
|
||||||
display-name=Default keyring
|
display-name=Default keyring
|
||||||
ctime=$(date +%s)
|
ctime=$(date +%s)
|
||||||
@@ -11,10 +16,32 @@ lock-on-idle=false
|
|||||||
lock-after=false
|
lock-after=false
|
||||||
EOF
|
EOF
|
||||||
|
|
||||||
cat << EOF | tee "$DEFAULT_FILE"
|
cat << EOF > "$DEFAULT_FILE"
|
||||||
Default_keyring
|
Default_keyring
|
||||||
EOF
|
EOF
|
||||||
|
|
||||||
chmod 700 "$KEYRING_DIR"
|
chmod 700 "$KEYRING_DIR"
|
||||||
chmod 600 "$KEYRING_FILE"
|
chmod 600 "$KEYRING_FILE"
|
||||||
chmod 644 "$DEFAULT_FILE"
|
chmod 644 "$DEFAULT_FILE"
|
||||||
|
}
|
||||||
|
|
||||||
|
omarchy_verify() {
|
||||||
|
local KEYRING_DIR="$HOME/.local/share/keyrings"
|
||||||
|
|
||||||
|
[[ -d "$KEYRING_DIR" ]] || add_error "Keyring directory missing"
|
||||||
|
if [[ -d "$KEYRING_DIR" ]]; then
|
||||||
|
local dir_perms=$(stat -c %a "$KEYRING_DIR")
|
||||||
|
[[ "$dir_perms" == "700" ]] || add_warning "Keyring directory has permissions $dir_perms (should be 700)"
|
||||||
|
fi
|
||||||
|
|
||||||
|
[[ -f "$KEYRING_DIR/Default_keyring.keyring" ]] || add_error "Default keyring file missing"
|
||||||
|
if [[ -f "$KEYRING_DIR/Default_keyring.keyring" ]]; then
|
||||||
|
local file_perms=$(stat -c %a "$KEYRING_DIR/Default_keyring.keyring")
|
||||||
|
[[ "$file_perms" == "600" ]] || add_warning "Keyring file has permissions $file_perms (should be 600)"
|
||||||
|
fi
|
||||||
|
|
||||||
|
[[ -f "$KEYRING_DIR/default" ]] || add_error "Default keyring selection file missing"
|
||||||
|
if [[ -f "$KEYRING_DIR/default" ]]; then
|
||||||
|
grep -q "Default_keyring" "$KEYRING_DIR/default" || add_error "Default keyring not set as default"
|
||||||
|
fi
|
||||||
|
}
|
||||||
|
|||||||
@@ -1,11 +1,15 @@
|
|||||||
#!/bin/bash
|
|
||||||
|
|
||||||
# Description for doctor
|
|
||||||
OMARCHY_DESCRIPTION="Limine Bootloader & Snapper Configuration"
|
OMARCHY_DESCRIPTION="Limine Bootloader & Snapper Configuration"
|
||||||
|
|
||||||
|
should_run() {
|
||||||
|
command -v limine &>/dev/null
|
||||||
|
}
|
||||||
|
|
||||||
# Installation function
|
# Installation function
|
||||||
omarchy_install() {
|
omarchy_install() {
|
||||||
if command -v limine &>/dev/null; then
|
should_run || return 0
|
||||||
|
|
||||||
|
sudo pacman -S --noconfirm --needed limine-snapper-sync limine-mkinitcpio-hook
|
||||||
|
|
||||||
sudo tee /etc/mkinitcpio.conf.d/omarchy_hooks.conf <<EOF >/dev/null
|
sudo tee /etc/mkinitcpio.conf.d/omarchy_hooks.conf <<EOF >/dev/null
|
||||||
HOOKS=(base udev plymouth keyboard autodetect microcode modconf kms keymap consolefont block encrypt filesystems fsck btrfs-overlayfs)
|
HOOKS=(base udev plymouth keyboard autodetect microcode modconf kms keymap consolefont block encrypt filesystems fsck btrfs-overlayfs)
|
||||||
EOF
|
EOF
|
||||||
@@ -83,7 +87,6 @@ term_background_bright: 24283b
|
|||||||
|
|
||||||
EOF
|
EOF
|
||||||
|
|
||||||
sudo pacman -S --noconfirm --needed limine-snapper-sync limine-mkinitcpio-hook
|
|
||||||
|
|
||||||
# Match Snapper configs if not installing from the ISO
|
# Match Snapper configs if not installing from the ISO
|
||||||
if [[ -z ${OMARCHY_CHROOT_INSTALL:-} ]]; then
|
if [[ -z ${OMARCHY_CHROOT_INSTALL:-} ]]; then
|
||||||
@@ -102,40 +105,94 @@ EOF
|
|||||||
sudo sed -i 's/^NUMBER_LIMIT_IMPORTANT="10"/NUMBER_LIMIT_IMPORTANT="5"/' /etc/snapper/configs/{root,home}
|
sudo sed -i 's/^NUMBER_LIMIT_IMPORTANT="10"/NUMBER_LIMIT_IMPORTANT="5"/' /etc/snapper/configs/{root,home}
|
||||||
|
|
||||||
chrootable_systemctl_enable limine-snapper-sync.service
|
chrootable_systemctl_enable limine-snapper-sync.service
|
||||||
|
|
||||||
|
echo "Re-enabling mkinitcpio hooks..."
|
||||||
|
|
||||||
|
# Restore the specific mkinitcpio pacman hooks
|
||||||
|
if [ -f /usr/share/libalpm/hooks/90-mkinitcpio-install.hook.disabled ]; then
|
||||||
|
sudo mv /usr/share/libalpm/hooks/90-mkinitcpio-install.hook.disabled /usr/share/libalpm/hooks/90-mkinitcpio-install.hook
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Add UKI entry to UEFI machines to skip bootloader showing on normal boot
|
if [ -f /usr/share/libalpm/hooks/60-mkinitcpio-remove.hook.disabled ]; then
|
||||||
if [[ -n $EFI ]] && efibootmgr &>/dev/null && ! efibootmgr | grep -q Omarchy &&
|
sudo mv /usr/share/libalpm/hooks/60-mkinitcpio-remove.hook.disabled /usr/share/libalpm/hooks/60-mkinitcpio-remove.hook
|
||||||
|
fi
|
||||||
|
|
||||||
|
echo "mkinitcpio hooks re-enabled"
|
||||||
|
|
||||||
|
sudo limine-update
|
||||||
|
|
||||||
|
if [[ -n $EFI ]] && efibootmgr &>/dev/null; then
|
||||||
|
# Remove the archinstall-created Limine entry
|
||||||
|
while IFS= read -r bootnum; do
|
||||||
|
sudo efibootmgr -b "$bootnum" -B >/dev/null 2>&1
|
||||||
|
done < <(efibootmgr | grep -E "^Boot[0-9]{4}\*? Arch Linux Limine" | sed 's/^Boot\([0-9]\{4\}\).*/\1/')
|
||||||
|
fi
|
||||||
|
|
||||||
|
if [[ -n $EFI ]] && efibootmgr &>/dev/null &&
|
||||||
! cat /sys/class/dmi/id/bios_vendor 2>/dev/null | grep -qi "American Megatrends" &&
|
! cat /sys/class/dmi/id/bios_vendor 2>/dev/null | grep -qi "American Megatrends" &&
|
||||||
! cat /sys/class/dmi/id/bios_vendor 2>/dev/null | grep -qi "Apple"; then
|
! cat /sys/class/dmi/id/bios_vendor 2>/dev/null | grep -qi "Apple"; then
|
||||||
|
|
||||||
|
uki_file=$(find /boot/EFI/Linux/ -name "omarchy*.efi" -printf "%f\n" 2>/dev/null | head -1)
|
||||||
|
|
||||||
|
if [[ -n "$uki_file" ]]; then
|
||||||
sudo efibootmgr --create \
|
sudo efibootmgr --create \
|
||||||
--disk "$(findmnt -n -o SOURCE /boot | sed 's/p\?[0-9]*$//')" \
|
--disk "$(findmnt -n -o SOURCE /boot | sed 's/p\?[0-9]*$//')" \
|
||||||
--part "$(findmnt -n -o SOURCE /boot | grep -o 'p\?[0-9]*$' | sed 's/^p//')" \
|
--part "$(findmnt -n -o SOURCE /boot | grep -o 'p\?[0-9]*$' | sed 's/^p//')" \
|
||||||
--label "Omarchy" \
|
--label "Omarchy" \
|
||||||
--loader "\\EFI\\Linux\\$(cat /etc/machine-id)_linux.efi"
|
--loader "\\EFI\\Linux\\$uki_file"
|
||||||
|
fi
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
# Verification function
|
|
||||||
omarchy_verify() {
|
omarchy_verify() {
|
||||||
# Only verify if limine is installed
|
should_run || return 2
|
||||||
if command -v limine &>/dev/null; then
|
|
||||||
# Check limine configuration files
|
|
||||||
[[ -f /etc/mkinitcpio.conf.d/omarchy_hooks.conf ]] || add_error "Omarchy mkinitcpio hooks config missing"
|
[[ -f /etc/mkinitcpio.conf.d/omarchy_hooks.conf ]] || add_error "Omarchy mkinitcpio hooks config missing"
|
||||||
[[ -f /etc/default/limine ]] || add_error "Limine default config missing"
|
[[ -f /etc/default/limine ]] || add_error "Limine default config missing"
|
||||||
[[ -f /boot/limine.conf ]] || add_error "Limine boot config missing"
|
[[ -f /boot/limine.conf ]] || add_error "Limine boot config missing"
|
||||||
|
|
||||||
# Check if limine packages are installed
|
|
||||||
pacman -Q limine-snapper-sync &>/dev/null || add_error "limine-snapper-sync not installed"
|
pacman -Q limine-snapper-sync &>/dev/null || add_error "limine-snapper-sync not installed"
|
||||||
pacman -Q limine-mkinitcpio-hook &>/dev/null || add_error "limine-mkinitcpio-hook not installed"
|
pacman -Q limine-mkinitcpio-hook &>/dev/null || add_error "limine-mkinitcpio-hook not installed"
|
||||||
|
|
||||||
# Check snapper configs if not in chroot
|
|
||||||
if [[ -z ${OMARCHY_CHROOT_INSTALL:-} ]]; then
|
if [[ -z ${OMARCHY_CHROOT_INSTALL:-} ]]; then
|
||||||
sudo snapper list-configs 2>/dev/null | grep -q "root" || add_error "Snapper root config not created"
|
sudo snapper list-configs 2>/dev/null | grep -q "root" || add_error "Snapper root config not created"
|
||||||
sudo snapper list-configs 2>/dev/null | grep -q "home" || add_error "Snapper home config not created"
|
sudo snapper list-configs 2>/dev/null | grep -q "home" || add_error "Snapper home config not created"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Check if service is enabled
|
|
||||||
systemctl is-enabled limine-snapper-sync.service &>/dev/null || add_error "limine-snapper-sync service not enabled"
|
systemctl is-enabled limine-snapper-sync.service &>/dev/null || add_error "limine-snapper-sync service not enabled"
|
||||||
|
|
||||||
|
if [[ -f /boot/limine.conf ]]; then
|
||||||
|
grep -q "^/+Omarchy" /boot/limine.conf || add_error "Omarchy boot entry not found in limine.conf"
|
||||||
|
|
||||||
|
awk '
|
||||||
|
/^\/\+Omarchy/ { in_omarchy=1 }
|
||||||
|
in_omarchy && /^[[:space:]]+kernel_cmdline:/ { found=1 }
|
||||||
|
in_omarchy && /^\/[^\/+]/ { in_omarchy=0 }
|
||||||
|
END { if (!found) exit 1 }
|
||||||
|
' /boot/limine.conf || add_error "Omarchy boot entry missing kernel_cmdline"
|
||||||
|
fi
|
||||||
|
|
||||||
|
if command -v efibootmgr &>/dev/null && sudo efibootmgr &>/dev/null; then
|
||||||
|
local omarchy_count=$(sudo efibootmgr | grep -c "^Boot[0-9]*\* Omarchy")
|
||||||
|
if [[ $omarchy_count -eq 0 ]]; then
|
||||||
|
add_error "No Omarchy EFI boot entry found"
|
||||||
|
elif [[ $omarchy_count -gt 1 ]]; then
|
||||||
|
add_warning "Multiple Omarchy EFI boot entries found ($omarchy_count)"
|
||||||
|
fi
|
||||||
|
|
||||||
|
local limine_count=$(sudo efibootmgr | grep -c "^Boot[0-9]*\* Limine")
|
||||||
|
if [[ $limine_count -eq 0 ]]; then
|
||||||
|
add_warning "No Limine EFI boot entry found"
|
||||||
|
elif [[ $limine_count -gt 1 ]]; then
|
||||||
|
add_warning "Multiple Limine EFI boot entries found ($limine_count)"
|
||||||
|
fi
|
||||||
|
|
||||||
|
local boot_current=$(sudo efibootmgr | grep "^BootCurrent:" | awk '{print $2}')
|
||||||
|
if [[ -n "$boot_current" ]]; then
|
||||||
|
if ! sudo efibootmgr | grep "^Boot${boot_current}\* Omarchy" &>/dev/null; then
|
||||||
|
local current_boot=$(sudo efibootmgr | grep "^Boot${boot_current}\*" | sed 's/^Boot[0-9]*\* //' | cut -d' ' -f1)
|
||||||
|
add_warning "BootCurrent is not Omarchy (currently: $current_boot)"
|
||||||
|
fi
|
||||||
|
fi
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,4 +1,13 @@
|
|||||||
|
OMARCHY_DESCRIPTION="Plymouth Boot Splash Theme"
|
||||||
|
|
||||||
|
omarchy_install() {
|
||||||
if [ "$(plymouth-set-default-theme)" != "omarchy" ]; then
|
if [ "$(plymouth-set-default-theme)" != "omarchy" ]; then
|
||||||
sudo cp -r "$HOME/.local/share/omarchy/default/plymouth" /usr/share/plymouth/themes/omarchy/
|
sudo cp -r "$HOME/.local/share/omarchy/default/plymouth" /usr/share/plymouth/themes/omarchy/
|
||||||
sudo plymouth-set-default-theme omarchy
|
sudo plymouth-set-default-theme omarchy
|
||||||
fi
|
fi
|
||||||
|
}
|
||||||
|
|
||||||
|
omarchy_verify() {
|
||||||
|
[[ "$(plymouth-set-default-theme)" == "omarchy" ]] || add_error "Plymouth theme not set to omarchy"
|
||||||
|
[[ -d /usr/share/plymouth/themes/omarchy ]] || add_error "Omarchy Plymouth theme not installed"
|
||||||
|
}
|
||||||
|
|||||||
@@ -1,3 +1,6 @@
|
|||||||
|
OMARCHY_DESCRIPTION="SDDM Display Manager Configuration"
|
||||||
|
|
||||||
|
omarchy_install() {
|
||||||
sudo mkdir -p /etc/sddm.conf.d
|
sudo mkdir -p /etc/sddm.conf.d
|
||||||
|
|
||||||
if [ ! -f /etc/sddm.conf.d/autologin.conf ]; then
|
if [ ! -f /etc/sddm.conf.d/autologin.conf ]; then
|
||||||
@@ -12,3 +15,20 @@ EOF
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
chrootable_systemctl_enable sddm.service
|
chrootable_systemctl_enable sddm.service
|
||||||
|
}
|
||||||
|
|
||||||
|
omarchy_verify() {
|
||||||
|
[[ -d /etc/sddm.conf.d ]] || add_error "SDDM config directory missing"
|
||||||
|
|
||||||
|
[[ -f /etc/sddm.conf.d/autologin.conf ]] || add_error "SDDM autologin config missing"
|
||||||
|
|
||||||
|
if [[ -f /etc/sddm.conf.d/autologin.conf ]]; then
|
||||||
|
grep -q "^User=$USER" /etc/sddm.conf.d/autologin.conf || add_error "SDDM autologin user not configured"
|
||||||
|
|
||||||
|
grep -q "^Session=hyprland-uwsm" /etc/sddm.conf.d/autologin.conf || add_error "SDDM session not set to hyprland-uwsm"
|
||||||
|
|
||||||
|
grep -q "^Current=breeze" /etc/sddm.conf.d/autologin.conf || add_warning "SDDM theme not set to breeze"
|
||||||
|
fi
|
||||||
|
|
||||||
|
systemctl is-enabled sddm.service &>/dev/null || add_error "SDDM service not enabled"
|
||||||
|
}
|
||||||
|
|||||||
@@ -1,18 +1,27 @@
|
|||||||
#!/bin/bash
|
OMARCHY_DESCRIPTION="Base Packages"
|
||||||
|
|
||||||
# Installation function
|
|
||||||
omarchy_install() {
|
omarchy_install() {
|
||||||
# Install all base packages
|
# Install all base packages
|
||||||
mapfile -t packages < <(grep -v '^#' "$OMARCHY_INSTALL/omarchy-base.packages" | grep -v '^$')
|
mapfile -t packages < <(grep -v '^#' "$OMARCHY_INSTALL/omarchy-base.packages" | grep -v '^$')
|
||||||
sudo pacman -S --noconfirm --needed "${packages[@]}"
|
sudo pacman -S --noconfirm --needed "${packages[@]}"
|
||||||
}
|
}
|
||||||
|
|
||||||
# Verification function
|
|
||||||
omarchy_verify() {
|
omarchy_verify() {
|
||||||
# Check if package list exists
|
|
||||||
[[ -f "$OMARCHY_INSTALL/omarchy-base.packages" ]] || add_error "Base packages list missing"
|
[[ -f "$OMARCHY_INSTALL/omarchy-base.packages" ]] || add_error "Base packages list missing"
|
||||||
|
|
||||||
# Check if some key base packages are installed
|
# Check if all base packages are installed
|
||||||
command -v bash >/dev/null 2>&1 || add_error "Bash not installed"
|
if [[ -f "$OMARCHY_INSTALL/omarchy-base.packages" ]]; then
|
||||||
command -v sudo >/dev/null 2>&1 || add_error "Sudo not installed"
|
mapfile -t packages < <(grep -v '^#' "$OMARCHY_INSTALL/omarchy-base.packages" | grep -v '^$')
|
||||||
|
|
||||||
|
local missing_packages=()
|
||||||
|
for package in "${packages[@]}"; do
|
||||||
|
if ! pacman -Q "$package" &>/dev/null; then
|
||||||
|
missing_packages+=("$package")
|
||||||
|
fi
|
||||||
|
done
|
||||||
|
|
||||||
|
if [[ ${#missing_packages[@]} -gt 0 ]]; then
|
||||||
|
add_error "Missing base packages: ${missing_packages[*]}"
|
||||||
|
fi
|
||||||
|
fi
|
||||||
}
|
}
|
||||||
@@ -1,6 +1,5 @@
|
|||||||
#!/bin/bash
|
OMARCHY_DESCRIPTION="Omarchy Font"
|
||||||
|
|
||||||
# Installation function
|
|
||||||
omarchy_install() {
|
omarchy_install() {
|
||||||
# Omarchy logo in a font for Waybar use
|
# Omarchy logo in a font for Waybar use
|
||||||
mkdir -p ~/.local/share/fonts
|
mkdir -p ~/.local/share/fonts
|
||||||
@@ -8,11 +7,7 @@ omarchy_install() {
|
|||||||
fc-cache
|
fc-cache
|
||||||
}
|
}
|
||||||
|
|
||||||
# Verification function
|
|
||||||
omarchy_verify() {
|
omarchy_verify() {
|
||||||
# Check if fonts directory exists
|
|
||||||
[[ -d ~/.local/share/fonts ]] || add_error "Fonts directory missing"
|
[[ -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"
|
[[ -f ~/.local/share/fonts/omarchy.ttf ]] || add_error "Omarchy font missing"
|
||||||
}
|
}
|
||||||
@@ -1,6 +1,5 @@
|
|||||||
#!/bin/bash
|
OMARCHY_DESCRIPTION="Icons"
|
||||||
|
|
||||||
# Installation function
|
|
||||||
omarchy_install() {
|
omarchy_install() {
|
||||||
# Copy all bundled icons to the applications/icons directory
|
# Copy all bundled icons to the applications/icons directory
|
||||||
ICON_DIR="$HOME/.local/share/applications/icons"
|
ICON_DIR="$HOME/.local/share/applications/icons"
|
||||||
@@ -8,12 +7,9 @@ omarchy_install() {
|
|||||||
cp ~/.local/share/omarchy/applications/icons/*.png "$ICON_DIR/"
|
cp ~/.local/share/omarchy/applications/icons/*.png "$ICON_DIR/"
|
||||||
}
|
}
|
||||||
|
|
||||||
# Verification function
|
|
||||||
omarchy_verify() {
|
omarchy_verify() {
|
||||||
# Check if icons directory exists
|
|
||||||
[[ -d "$HOME/.local/share/applications/icons" ]] || add_error "Icons directory missing"
|
[[ -d "$HOME/.local/share/applications/icons" ]] || add_error "Icons directory missing"
|
||||||
|
|
||||||
# Check if any icons were copied
|
|
||||||
local icon_count=$(find "$HOME/.local/share/applications/icons" -name "*.png" 2>/dev/null | wc -l)
|
local icon_count=$(find "$HOME/.local/share/applications/icons" -name "*.png" 2>/dev/null | wc -l)
|
||||||
[[ $icon_count -gt 0 ]] || add_error "No icons found in icons directory"
|
[[ $icon_count -gt 0 ]] || add_error "No icons found in icons directory"
|
||||||
}
|
}
|
||||||
@@ -1,14 +1,11 @@
|
|||||||
#!/bin/bash
|
OMARCHY_DESCRIPTION="LazyVim"
|
||||||
|
|
||||||
# Installation function
|
|
||||||
omarchy_install() {
|
omarchy_install() {
|
||||||
if [[ ! -d "$HOME/.config/nvim" ]]; then
|
if [[ ! -d "$HOME/.config/nvim" ]]; then
|
||||||
omarchy-lazyvim-setup
|
omarchy-lazyvim-setup
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
# Verification function
|
|
||||||
omarchy_verify() {
|
omarchy_verify() {
|
||||||
# Check if neovim config exists
|
|
||||||
[[ -d "$HOME/.config/nvim" ]] || add_error "Neovim config directory missing"
|
[[ -d "$HOME/.config/nvim" ]] || add_error "Neovim config directory missing"
|
||||||
}
|
}
|
||||||
@@ -1,6 +1,5 @@
|
|||||||
#!/bin/bash
|
OMARCHY_DESCRIPTION="TUIs"
|
||||||
|
|
||||||
# Installation function
|
|
||||||
omarchy_install() {
|
omarchy_install() {
|
||||||
ICON_DIR="$HOME/.local/share/applications/icons"
|
ICON_DIR="$HOME/.local/share/applications/icons"
|
||||||
|
|
||||||
@@ -8,9 +7,7 @@ omarchy_install() {
|
|||||||
omarchy-tui-install "Docker" "lazydocker" tile "$ICON_DIR/Docker.png"
|
omarchy-tui-install "Docker" "lazydocker" tile "$ICON_DIR/Docker.png"
|
||||||
}
|
}
|
||||||
|
|
||||||
# Verification function
|
|
||||||
omarchy_verify() {
|
omarchy_verify() {
|
||||||
# Check if TUI desktop files were created
|
|
||||||
[[ -f "$HOME/.local/share/applications/Disk Usage.desktop" ]] || add_error "Disk Usage TUI not installed"
|
[[ -f "$HOME/.local/share/applications/Disk Usage.desktop" ]] || add_error "Disk Usage TUI not installed"
|
||||||
[[ -f "$HOME/.local/share/applications/Docker.desktop" ]] || add_error "Docker TUI not installed"
|
[[ -f "$HOME/.local/share/applications/Docker.desktop" ]] || add_error "Docker TUI not installed"
|
||||||
}
|
}
|
||||||
@@ -1,6 +1,5 @@
|
|||||||
#!/bin/bash
|
OMARCHY_DESCRIPTION="Webapps"
|
||||||
|
|
||||||
# Installation function
|
|
||||||
omarchy_install() {
|
omarchy_install() {
|
||||||
omarchy-webapp-install "HEY" https://app.hey.com HEY.png
|
omarchy-webapp-install "HEY" https://app.hey.com HEY.png
|
||||||
omarchy-webapp-install "Basecamp" https://launchpad.37signals.com Basecamp.png
|
omarchy-webapp-install "Basecamp" https://launchpad.37signals.com Basecamp.png
|
||||||
@@ -17,10 +16,19 @@ omarchy_install() {
|
|||||||
omarchy-webapp-install "Zoom" https://app.zoom.us/wc/home Zoom.png "omarchy-webapp-handler-zoom %u" "x-scheme-handler/zoommtg;x-scheme-handler/zoomus"
|
omarchy-webapp-install "Zoom" https://app.zoom.us/wc/home Zoom.png "omarchy-webapp-handler-zoom %u" "x-scheme-handler/zoommtg;x-scheme-handler/zoomus"
|
||||||
}
|
}
|
||||||
|
|
||||||
# Verification function
|
|
||||||
omarchy_verify() {
|
omarchy_verify() {
|
||||||
# Check if some key webapp desktop files were created
|
# Check all webapps - use warnings since these are optional
|
||||||
[[ -f "$HOME/.local/share/applications/HEY.desktop" ]] || add_error "HEY webapp not installed"
|
[[ -f "$HOME/.local/share/applications/HEY.desktop" ]] || add_warning "HEY webapp not installed"
|
||||||
[[ -f "$HOME/.local/share/applications/WhatsApp.desktop" ]] || add_error "WhatsApp webapp not installed"
|
[[ -f "$HOME/.local/share/applications/Basecamp.desktop" ]] || add_warning "Basecamp webapp not installed"
|
||||||
[[ -f "$HOME/.local/share/applications/ChatGPT.desktop" ]] || add_error "ChatGPT webapp not installed"
|
[[ -f "$HOME/.local/share/applications/WhatsApp.desktop" ]] || add_warning "WhatsApp webapp not installed"
|
||||||
|
[[ -f "$HOME/.local/share/applications/Google Photos.desktop" ]] || add_warning "Google Photos webapp not installed"
|
||||||
|
[[ -f "$HOME/.local/share/applications/Google Contacts.desktop" ]] || add_warning "Google Contacts webapp not installed"
|
||||||
|
[[ -f "$HOME/.local/share/applications/Google Messages.desktop" ]] || add_warning "Google Messages webapp not installed"
|
||||||
|
[[ -f "$HOME/.local/share/applications/ChatGPT.desktop" ]] || add_warning "ChatGPT webapp not installed"
|
||||||
|
[[ -f "$HOME/.local/share/applications/YouTube.desktop" ]] || add_warning "YouTube webapp not installed"
|
||||||
|
[[ -f "$HOME/.local/share/applications/GitHub.desktop" ]] || add_warning "GitHub webapp not installed"
|
||||||
|
[[ -f "$HOME/.local/share/applications/X.desktop" ]] || add_warning "X webapp not installed"
|
||||||
|
[[ -f "$HOME/.local/share/applications/Figma.desktop" ]] || add_warning "Figma webapp not installed"
|
||||||
|
[[ -f "$HOME/.local/share/applications/Discord.desktop" ]] || add_warning "Discord webapp not installed"
|
||||||
|
[[ -f "$HOME/.local/share/applications/Zoom.desktop" ]] || add_warning "Zoom webapp not installed"
|
||||||
}
|
}
|
||||||
Reference in New Issue
Block a user