dotfiles/bin/executable_yubikey-lock-screen

8 lines
185 B
Bash
Executable File

#!/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"'