Update to 0.12.1

This commit is contained in:
Stewart Wong 2026-01-01 08:24:26 +00:00
parent 3e18f4753a
commit 72e8156244
2 changed files with 3 additions and 62 deletions

View file

@ -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

View file

@ -1,6 +1,6 @@
# Maintainer: Stewart Wong <siwei.wong@gmail.com>
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 <<HELP
Usage: hamr [OPTIONS] [COMMAND]
Hamr - Extensible launcher for Wayland compositors
Commands:
(none) Start hamr daemon (use in autostart)
toggle Toggle hamr open/close
plugin <name> 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 <name>" >&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"