dotfiles/.local/bin/scripts/save

6 lines
140 B
Bash
Executable File

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