summaryrefslogtreecommitdiff
path: root/archive/bin/idlesshclear
blob: 8cfcf8f45162c163873ef77ec767357eb4e2e83b (plain)
1
2
3
4
5
6
7
8
#!/bin/sh

while true; do
    if [ $(xprintidle) -ge 300000 ]; then
        ssh-add -D 2>/dev/null
    fi
    sleep 300
done