5 lines
140 B
Bash
Executable file
5 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
|