Logs active

This commit is contained in:
2025-12-12 20:32:14 +01:00
parent 4c0740fd21
commit 486a28f165
2 changed files with 4 additions and 13 deletions

View File

@@ -58,16 +58,4 @@ while read -r line; do
mate-screensaver-command --lock 2>/dev/null # Double Tap
restart_agent
fi
done
```
### Die Integration
Damit deine Terminals den neuen Agent immer finden, muss das Environment dynamisch geladen werden.
In deiner `.bashrc`:
```bash
# Lade Agent-Info, falls vorhanden
if [ -f ~/.ssh/agent-environment ]; then
source ~/.ssh/agent-environment
fi
done

View File

@@ -4,6 +4,9 @@
# Dieses Script startet den ssh-agent neu, wenn der Bildschirm gesperrt wird
#
LOG_FILE="$HOME/.ssh-agent-screenlock.log"
SOCKET_PATH="$HOME/.ssh/agent.sock"
# Check for existing instance
pid_file="$HOME/.ssh-agent-watchdog.pid"
if [ -f "$pid_file" ]; then