dotfiles/.local/bin/scripts/save

6 lines
140 B
Plaintext
Raw Normal View History

2023-04-12 06:35:48 +00:00
#!/bin/sh -e
2023-09-11 23:16:35 +00:00
# Put system to sleep after specified number of seconds
2024-09-15 14:42:56 +00:00
mpc pause || mpdr
$(which timer || sleep) "${@:-30}"
2023-04-12 06:35:48 +00:00
systemctl suspend