[sway] Add helper script to lock screen once Yubikey is unplugged

This commit is contained in:
Sebastian Schulze 2020-02-23 22:43:55 +01:00
parent cf88c1107e
commit 8853ed1a07
Signed by: bascht
GPG Key ID: 5BCB1D3B4D38A35A
1 changed files with 7 additions and 0 deletions

View File

@ -0,0 +1,7 @@
#!/bin/bash
SWAYSOCK=$(ls /run/user/1000/sway-ipc.1000.*.sock)
export SWAYSOCK
swaymsg exec blur-lock
swaymsg exec -- 'notify-send -t 2000 -u low "Yubikey unplugged, locking screen"'