(chore) update paths for scripts and patches

This commit is contained in:
2026-04-13 22:13:32 +02:00
parent a88c12b85d
commit 45362b9d05
5 changed files with 4 additions and 4 deletions

8
scripts/remove-ssh.bash Executable file
View File

@@ -0,0 +1,8 @@
#!/bin/bash
dbus-monitor --session "type='signal',interface='org.gnome.ScreenSaver'" |
while read x; do
case "$x" in
*"boolean true"*) echo SCREEN_LOCKED; ssh-add -D;;
*"boolean false"*) echo SCREEN_UNLOCKED;;
esac
done

View File

@@ -0,0 +1,10 @@
[Unit]
Description=Remove SSH keys on lock
[Service]
Type=simple
Environment=SSH_AUTH_SOCK=/tmp/agent.sock
ExecStart=%h/.dots/scripts/remove-ssh.bash
[Install]
WantedBy=default.target