summaryrefslogtreecommitdiff
path: root/.config/i3/i3lock_script.sh
blob: c81fe68ff2db9bc66675109e607f6f177af2b3c2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#!/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