dotfiles/i3/scripts/suspend.sh

9 lines
141 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
bash ~/.config/i3/scripts/i3lock.sh
fi
systemctl suspend