Skip to content

Instantly share code, notes, and snippets.

@AnoopAlias
Created March 15, 2023 05:39
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save AnoopAlias/961e7025cc007920de7c19e4e6c16f63 to your computer and use it in GitHub Desktop.
Save AnoopAlias/961e7025cc007920de7c19e4e6c16f63 to your computer and use it in GitHub Desktop.
#!/bin/bash
if ! ps aux |egrep "gsd-soundw|gpg-agent1"|grep -v grep ; then systemctl hibernate; fi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment