petits-scripts-persos/lock_and_suspend
2022-03-11 13:43:31 +01:00

4 lines
162 B
Bash
Executable File

#!/bin/sh
# Lock screen and suspend if enabled in config file
i3lock -e -c 000000 -u && [ -z "$(grep off "/run/user/1000/enable_suspend")" ] && systemctl suspend