QR decode support (zbarimg) with searchable payload + preview panel; restructure repo root as installable omarchy plugin; plain-text safety for QR payloads
This commit is contained in:
+5
-3
@@ -1,21 +1,23 @@
|
||||
#!/bin/bash
|
||||
# Install the tank.clipboard Omarchy shell plugin from this repo.
|
||||
#
|
||||
# - symlinks plugin/ into ~/.config/omarchy/plugins/tank.clipboard
|
||||
# - symlinks the repo root (the plugin folder) into ~/.config/omarchy/plugins/tank.clipboard
|
||||
# - rescans + enables it (shell.json gets plugins[] entry; the built-in
|
||||
# omarchy.clipboard is recorded in disabledPlugins[] and routed here)
|
||||
# - rebinds ALT+SHIFT+V from vicinae to this picker (backs up bindings.conf)
|
||||
set -euo pipefail
|
||||
|
||||
REPO_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
|
||||
PLUGIN_DIR="$REPO_DIR/plugin"
|
||||
PLUGIN_DIR="$REPO_DIR"
|
||||
PLUGINS_DIR="$HOME/.config/omarchy/plugins"
|
||||
PLUGIN_ID="tank.clipboard"
|
||||
BINDINGS="$HOME/.config/hypr/bindings.conf"
|
||||
|
||||
echo "==> Symlinking plugin into $PLUGINS_DIR/$PLUGIN_ID"
|
||||
echo "==> Linking plugin into $PLUGINS_DIR/$PLUGIN_ID"
|
||||
mkdir -p "$PLUGINS_DIR"
|
||||
ln -sTfn "$PLUGIN_DIR" "$PLUGINS_DIR/$PLUGIN_ID"
|
||||
# On other machines, install directly from git instead:
|
||||
# omarchy plugin add <this-repo-git-url> --enable
|
||||
chmod +x "$PLUGIN_DIR"/capture.py "$PLUGIN_DIR"/paste-entry.sh "$PLUGIN_DIR"/open-entry.sh
|
||||
|
||||
echo "==> Rescanning shell plugins"
|
||||
|
||||
Reference in New Issue
Block a user