2018-07-02 22:42:48 +02:00
|
|
|
#!/usr/bin/env bash
|
|
|
|
|
|
|
|
# check if locked
|
2024-04-09 18:45:06 +02:00
|
|
|
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
|
|
|
|
|
2024-04-09 18:45:06 +02:00
|
|
|
systemctl suspend
|