summaryrefslogtreecommitdiff
path: root/.config/i3/i3lock_script.sh
diff options
context:
space:
mode:
Diffstat (limited to '.config/i3/i3lock_script.sh')
-rwxr-xr-x.config/i3/i3lock_script.sh5
1 files changed, 5 insertions, 0 deletions
diff --git a/.config/i3/i3lock_script.sh b/.config/i3/i3lock_script.sh
index 4af57b56..c81fe68f 100755
--- a/.config/i3/i3lock_script.sh
+++ b/.config/i3/i3lock_script.sh
@@ -5,6 +5,11 @@
# |_| \___/ \__, |___/ 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