mirror of
https://github.com/Mastermindzh/dotfiles.git
synced 2024-11-23 15:24:18 +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
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
# check if locked
|
# check if locked
|
||||||
if !(pgrep -x "i3lock" > /dev/null)
|
if ! pgrep -x "i3lock" >/dev/null; then
|
||||||
then
|
echo "not locked, locking"
|
||||||
bash ~/.config/i3/scripts/i3lock.sh --suspend
|
bash ~/.config/i3/scripts/lock.sh --suspend
|
||||||
fi
|
fi
|
||||||
|
|
||||||
systemctl suspend
|
systemctl suspend
|
Loading…
Reference in New Issue
Block a user