mirror of
https://github.com/Mastermindzh/dotfiles.git
synced 2024-11-23 07:14:30 +01:00
fixed lock screen activation on suspend. Thanks Suayip :*
This commit is contained in:
parent
0a67016b07
commit
dd5f32a6eb
@ -1,9 +1,9 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
# check if locked
|
||||
if !(pgrep -x "i3lock" > /dev/null)
|
||||
then
|
||||
bash ~/.config/i3/scripts/i3lock.sh --suspend
|
||||
if ! pgrep -x "i3lock" >/dev/null; then
|
||||
echo "not locked, locking"
|
||||
bash ~/.config/i3/scripts/lock.sh --suspend
|
||||
fi
|
||||
|
||||
systemctl suspend
|
Loading…
Reference in New Issue
Block a user