summaryrefslogtreecommitdiff
path: root/.config/i3/i3lock_script.sh
blob: 5418f545a0b68a2497ba05a3f9ec73aa75505247 (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"
    pritunl-client stop r1e5vfvldadchscs
fi
scrot /tmp/screen.png
xwobf -s 11 /tmp/screen.png
i3lock -i /tmp/screen.png
rm /tmp/screen.png