dotfiles/i3/scripts/suspend.sh

10 lines
176 B
Bash
Raw Normal View History

2018-07-02 22:42:48 +02:00
#!/usr/bin/env bash
# check if locked
if ! pgrep -x "i3lock" >/dev/null; then
echo "not locked, locking"
bash ~/.config/i3/scripts/lock.sh --suspend
2018-07-02 22:42:48 +02:00
fi
systemctl suspend