dotfiles/.config/i3/i3lock_script.sh

17 lines
381 B
Bash
Executable File

#!/bin/bash
#
# | '__/ _ \ / _` / __| Roger González
# | | | (_) | (_| \__ \ https://rogs.me
# |_| \___/ \__, |___/ https://git.rogs.me
# |___/
#
keepassxc --lock
if pidof openvpn; then
notify-send "Shutting down VPN"
pkexec --user root killall openvpn
fi
scrot /tmp/screen.png
xwobf -s 11 /tmp/screen.png
i3lock -i /tmp/screen.png
rm /tmp/screen.png