Add omazed package
This commit is contained in:
@@ -27,6 +27,7 @@ limine-snapper-sync
|
|||||||
macbook12-spi-driver-dkms
|
macbook12-spi-driver-dkms
|
||||||
makima-bin
|
makima-bin
|
||||||
nautilus-open-any-terminal
|
nautilus-open-any-terminal
|
||||||
|
omazed
|
||||||
once-bin
|
once-bin
|
||||||
pinta
|
pinta
|
||||||
python-terminaltexteffects
|
python-terminaltexteffects
|
||||||
|
|||||||
@@ -0,0 +1,14 @@
|
|||||||
|
pkgbase = omazed
|
||||||
|
pkgdesc = Live theme switching for Zed in Omarchy - automatically synchronize your Zed editor theme with your Omarchy system theme
|
||||||
|
pkgver = 2.0.0
|
||||||
|
pkgrel = 2
|
||||||
|
url = https://github.com/aps6/omazed
|
||||||
|
install = omazed.install
|
||||||
|
arch = any
|
||||||
|
license = MIT
|
||||||
|
makedepends = git
|
||||||
|
depends = bash
|
||||||
|
source = omazed-2.0.0.tar.gz::https://github.com/aps6/omazed/archive/refs/tags/v2.0.0.tar.gz
|
||||||
|
sha256sums = 3ac6233b246af86aad869789755141827dc8973c6dd7e9046dc2adbe3a2e4750
|
||||||
|
|
||||||
|
pkgname = omazed
|
||||||
@@ -0,0 +1,25 @@
|
|||||||
|
pkgname=omazed
|
||||||
|
pkgver=2.0.0
|
||||||
|
pkgrel=2
|
||||||
|
pkgdesc="Live theme switching for Zed in Omarchy - automatically synchronize your Zed editor theme with your Omarchy system theme"
|
||||||
|
arch=('any')
|
||||||
|
url="https://github.com/aps6/omazed"
|
||||||
|
license=('MIT')
|
||||||
|
depends=('bash')
|
||||||
|
makedepends=('git')
|
||||||
|
backup=()
|
||||||
|
install=omazed.install
|
||||||
|
source=("$pkgname-$pkgver.tar.gz::https://github.com/aps6/$pkgname/archive/refs/tags/v$pkgver.tar.gz")
|
||||||
|
sha256sums=('3ac6233b246af86aad869789755141827dc8973c6dd7e9046dc2adbe3a2e4750')
|
||||||
|
|
||||||
|
package() {
|
||||||
|
cd "$srcdir/$pkgname-$pkgver"
|
||||||
|
|
||||||
|
# Install main scripts
|
||||||
|
install -Dm755 omazed "$pkgdir/usr/bin/omazed"
|
||||||
|
install -Dm755 omazed-generator.sh "$pkgdir/usr/bin/omazed-generator.sh"
|
||||||
|
install -Dm644 omazed-theme.tpl "$pkgdir/usr/bin/omazed-theme.tpl"
|
||||||
|
|
||||||
|
# Install documentation
|
||||||
|
install -Dm644 README.md "$pkgdir/usr/share/doc/$pkgname/README.md"
|
||||||
|
}
|
||||||
@@ -0,0 +1,44 @@
|
|||||||
|
post_install() {
|
||||||
|
echo ""
|
||||||
|
echo "==> Omazed installed successfully!"
|
||||||
|
echo ""
|
||||||
|
echo "🚀 To complete setup, run:"
|
||||||
|
echo " omazed setup"
|
||||||
|
echo ""
|
||||||
|
echo " This will:"
|
||||||
|
echo " • Set up omarchy hook integration (or systemd fallback)"
|
||||||
|
echo " • Set the Zed theme once on first run"
|
||||||
|
echo ""
|
||||||
|
echo "Then change your Omarchy theme and watch Zed follow along!"
|
||||||
|
echo ""
|
||||||
|
}
|
||||||
|
|
||||||
|
post_upgrade() {
|
||||||
|
echo ""
|
||||||
|
echo "==> Omazed updated to $(pacman -Q omazed | cut -d' ' -f2)"
|
||||||
|
echo ""
|
||||||
|
echo " Complete the update!"
|
||||||
|
echo ""
|
||||||
|
echo " To complete this update, run:"
|
||||||
|
echo ""
|
||||||
|
echo " omazed setup"
|
||||||
|
echo ""
|
||||||
|
echo " This will:"
|
||||||
|
echo " • Set the Zed theme once on first run"
|
||||||
|
echo " • Migrate to omarchy hooks automatically"
|
||||||
|
echo ""
|
||||||
|
echo "If your wish to remove the old bundled themes then run:"
|
||||||
|
echo "rm -f ~/.config/zed/themes/{catppuccin,catppuccin-latte,everforest,flexoki-light,gruvbox,kanagawa,matte-black,nord,osaka-jade,ristretto,rose-pine,tokyo-night,ethereal,hackerman}.json"
|
||||||
|
echo ""
|
||||||
|
}
|
||||||
|
|
||||||
|
post_remove() {
|
||||||
|
echo ""
|
||||||
|
echo "==> Omazed removed."
|
||||||
|
echo ""
|
||||||
|
echo "Preserved files:"
|
||||||
|
echo " • Generated theme at ~/.config/zed/themes/omazed.json (preserved)"
|
||||||
|
echo ""
|
||||||
|
echo "Thank you for using Omazed!"
|
||||||
|
echo ""
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user