- hypr/apps.lua - hypr/autostart.lua - hypr/envs.lua - hypr/hyprland.lua - hypr/hyprsunset.conf - hypr/input.lua - hypr/looknfeel.lua - hypr/omasettings.lua - hypr/xdph.conf - omarchy/branding/about.txt - omarchy/branding/screensaver.txt - omarchy/extensions/omarchy-menu.jsonc - omarchy/hooks/battery-low.d/play-warning-sound.sample - omarchy/hooks/font-set.d/show-font-notification.sample - omarchy/hooks/post-boot.d/weather.sample - omarchy/hooks/post-update.d/install-voxtype.hook - omarchy/hooks/post-update.d/setup-agent.hook - omarchy/hooks/post-update.d/setup-fingerprint.hook - omarchy/hooks/post-update.d/show-update-notification.sample - omarchy/hooks/pre-refresh-pacman.d/add-custom-repo.sample - omarchy/hooks/theme-set.d/show-theme-notification.sample - omarchy/shell.json - omarchy/shell.toml - omarchy/theme.name - omarchy/themes/azure-glow/README.md - omarchy/themes/azure-glow/alacritty.toml - omarchy/themes/azure-glow/btop.theme - omarchy/themes/azure-glow/hyprland.conf - omarchy/themes/azure-glow/hyprlock.conf - omarchy/themes/azure-glow/icons.theme - … 269 more
25 lines
871 B
Bash
25 lines
871 B
Bash
#!/bin/bash
|
|
|
|
# This hook is called by `omarchy refresh pacman` AFTER the channel template
|
|
# is copied to /etc/pacman.conf and BEFORE `pacman -Syyuu` runs. Use it to
|
|
# layer customizations onto the freshly-written pacman.conf so they're
|
|
# respected by the upgrade — common cases are adding a custom repository
|
|
# (e.g. CachyOS, Chaotic-AUR, an internal company repo) or extra IgnorePkg
|
|
# lines.
|
|
#
|
|
# The hook runs as the invoking user with a warm sudo cache.
|
|
#
|
|
# To put it into use, remove .sample from this file name.
|
|
|
|
# Example: add an Include line above [core] for a custom repo.
|
|
# Maintain the repo entries in /etc/pacman.d/custom-repos.conf yourself.
|
|
|
|
CONF=/etc/pacman.conf
|
|
SNIPPET=/etc/pacman.d/custom-repos.conf
|
|
MARKER="Include = $SNIPPET"
|
|
|
|
[[ -r $SNIPPET ]] || exit 0
|
|
grep -qxF "$MARKER" "$CONF" && exit 0
|
|
|
|
sudo sed -i "0,/^\[core\]/s||$MARKER\n\n[core]|" "$CONF"
|