mirror of
https://github.com/Mastermindzh/dotfiles.git
synced 2025-07-26 12:13:22 +02:00
suspend might come in useful
This commit is contained in:
9
i3/scripts/suspend.sh
Normal file
9
i3/scripts/suspend.sh
Normal file
@@ -0,0 +1,9 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
# check if locked
|
||||
if !(pgrep -x "i3lock" > /dev/null)
|
||||
then
|
||||
bash ~/.config/i3/scripts/i3lock.sh
|
||||
fi
|
||||
|
||||
systemctl suspend
|
Reference in New Issue
Block a user