[bin] Fix swaysocket of Yubikey unplug script

This commit is contained in:
Sebastian Schulze 2021-01-26 12:23:45 +01:00
parent 1c7d32381b
commit f8ecd36247
Signed by: bascht
GPG Key ID: 5BCB1D3B4D38A35A
1 changed files with 1 additions and 1 deletions

View File

@ -1,6 +1,6 @@
#!/bin/bash
SWAYSOCK=$(ls /run/user/1000/sway-ipc.1000.*.sock)
SWAYSOCK=$(ls /run/user/1000/sway-ipc.1000.$(pidof sway).sock)
export SWAYSOCK
swaymsg exec -- 'notify-send -t 2000 -u low "Yubikey plugged in, reloading pcsd. User: ${USER}"'