dotfiles/.local/bin/scripts/save

5 lines
122 B
Bash
Executable File

#!/bin/sh -e
# Put system to sleep after specified number of seconds
$(which timer || sleep) "${@:-10}"
systemctl suspend