mirror of
https://github.com/Mastermindzh/dotfiles.git
synced 2024-11-25 08:13:34 +01:00
10 lines
176 B
Bash
10 lines
176 B
Bash
#!/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
|
|
fi
|
|
|
|
systemctl suspend
|