#!/bin/sh # Lock screen and suspend if enabled in config file i3lock -e -c 000000 -u && [ "$(cat "$XDG_RUNTIME_DIR/enable_suspend")" != off ] && systemctl suspend