diff --git a/.SRCINFO b/.SRCINFO index 07e48a58a5f8..8930f47741c7 100644 --- a/.SRCINFO +++ b/.SRCINFO @@ -1,6 +1,6 @@ pkgbase = hamr pkgdesc = Extensible launcher for Hyprland and Niri built with Quickshell - pkgver = 0.12.0 + pkgver = 0.12.1 pkgrel = 1 url = https://github.com/Stewart86/hamr arch = any diff --git a/PKGBUILD b/PKGBUILD index 7ee12e047cf9..9ccf497dfdfb 100644 --- a/PKGBUILD +++ b/PKGBUILD @@ -1,6 +1,6 @@ # Maintainer: Stewart Wong pkgname=hamr -pkgver=0.12.0 +pkgver=0.12.1 pkgrel=1 pkgdesc='Extensible launcher for Hyprland and Niri built with Quickshell' arch=('any') @@ -69,66 +69,7 @@ package() { cp *.qml "$pkgdir/etc/xdg/quickshell/$pkgname/" # Install hamr command - install -Dm755 /dev/stdin "$pkgdir/usr/bin/$pkgname" <<'EOF' -#!/bin/bash -set -euo pipefail - -show_help() { - cat < Open a specific plugin directly - -Options: - -h, --help Show this help message - -Examples: - hamr Start hamr daemon - hamr toggle Toggle launcher visibility - hamr plugin clipboard Open clipboard plugin - hamr plugin emoji Open emoji picker - -Keybinding examples (Hyprland): - bind = SUPER, Space, exec, hamr toggle - bind = SUPER, V, exec, hamr plugin clipboard - -Keybinding examples (Niri): - Mod+Space { spawn "hamr" "toggle"; } - Mod+V { spawn "hamr" "plugin" "clipboard"; } -HELP -} - -case "${1:-}" in - -h|--help) - show_help - exit 0 - ;; - toggle) - exec qs ipc -c hamr call hamr toggle - ;; - plugin) - if [[ -z "${2:-}" ]]; then - echo "Error: plugin name required" >&2 - echo "Usage: hamr plugin " >&2 - exit 1 - fi - exec qs ipc -c hamr call hamr plugin "$2" - ;; - "") - exec qs -c hamr - ;; - *) - echo "Error: unknown command '$1'" >&2 - echo "Run 'hamr --help' for usage" >&2 - exit 1 - ;; -esac -EOF + install -Dm755 hamr "$pkgdir/usr/bin/$pkgname" # Install systemd user service (for Niri and other systemd-based compositors) install -Dm644 hamr.service "$pkgdir/usr/lib/systemd/user/hamr.service"