commit 407c941386e474ccb1b6c47a3b6c43e1012ffbb2 parent 1acbf3c181df72cb6d403753fdd56c8fd35aa0fd Author: Damian Myrda <damian@prime8.dev> Date: Thu, 19 Feb 2026 18:08:57 -0600 move g14-volume-sync to scripts directory and update link.sh Diffstat:
| M | link.sh | | | 18 | +++++++++++++++--- |
| R | programs/systemd/g14-volume-sync -> scripts/g14-volume-sync | | | 0 |
2 files changed, 15 insertions(+), 3 deletions(-)
diff --git a/link.sh b/link.sh @@ -3,6 +3,7 @@ set -euo pipefail SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)" PROGRAMS_DIR="$SCRIPT_DIR/programs" +SCRIPTS_DIR="$SCRIPT_DIR/scripts" CONFIG_DIR="$HOME/.config" # Detect OS and run appropriate script @@ -134,12 +135,23 @@ if [ -d "$PROGRAMS_DIR/systemd" ]; then fi # Systemd user services -mkdir -p "$HOME/.local/bin" -link_config "$PROGRAMS_DIR/systemd/g14-volume-sync" "$HOME/.local/bin/g14-volume-sync" -chmod +x "$HOME/.local/bin/g14-volume-sync" link_config "$PROGRAMS_DIR/systemd/user/g14-volume-sync.service" "$CONFIG_DIR/systemd/user/g14-volume-sync.service" link_config "$PROGRAMS_DIR/systemd/user/1password-ssh-agent.service" "$CONFIG_DIR/systemd/user/1password-ssh-agent.service" systemctl --user daemon-reload systemctl --user enable --now g14-volume-sync.service 2>/dev/null || true +# Scripts +mkdir -p "$HOME/.local/bin" +find "$SCRIPTS_DIR" -type f -executable | while IFS= read -r script; do + script_name=$(basename "$script") + dest_file="$HOME/.local/bin/$script_name" + echo " → Linking script: $script_name" + if [ -L "$dest_file" ] || [ -f "$dest_file" ]; then + echo " → Removing existing $dest_file" + rm -f "$dest_file" + fi + ln -s "$script" "$dest_file" + echo " ✅ Linked $dest_file" +done + echo "✅ Config symlinks complete!" diff --git a/programs/systemd/g14-volume-sync b/scripts/g14-volume-sync