From 8853ed1a07e5bfbf778c1224d07e88809c999994 Mon Sep 17 00:00:00 2001 From: Sebastian Schulze Date: Sun, 23 Feb 2020 22:43:55 +0100 Subject: [PATCH] [sway] Add helper script to lock screen once Yubikey is unplugged --- bin/executable_yubikey-lock-screen | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100755 bin/executable_yubikey-lock-screen diff --git a/bin/executable_yubikey-lock-screen b/bin/executable_yubikey-lock-screen new file mode 100755 index 0000000..783f918 --- /dev/null +++ b/bin/executable_yubikey-lock-screen @@ -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"'