Skip to content

Instantly share code, notes, and snippets.

@francoism90
Created October 16, 2021 10:51
Show Gist options
  • Save francoism90/c6f2790dc522d6e39cac28cd233b9afe to your computer and use it in GitHub Desktop.
Save francoism90/c6f2790dc522d6e39cac28cd233b9afe to your computer and use it in GitHub Desktop.
Autosuspend system
[Unit]
Description=Suspend system
[Service]
Type=oneshot
ExecStart=/usr/bin/systemctl suspend
[Unit]
Description=Automatically suspend on a schedule
[Timer]
OnCalendar=Mon..Fri 01:30
OnCalendar=Sat,Sun 04:30
Persistent=true
[Install]
WantedBy=timers.target
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment