petits-scripts-persos/lock_and_suspend

4 lines
163 B
Plaintext
Raw Normal View History

2022-02-10 08:05:07 +00:00
#!/bin/sh
# Lock screen and suspend if enabled in config file
2023-01-24 22:56:39 +00:00
i3lock -e -c 000000 -u && [ "$(cat "$XDG_RUNTIME_DIR/enable_suspend")" != off ] && systemctl suspend