blob: 111c1fee4c095484b579d897835f23db0c406178 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
#!/bin/bash
#
# Hibernate computer
#
# Avoid sensitive stuff to remain on clipboard
echo $RANDOM | xclip
# Lock the screen
xlock
# Wait
sleep 2
# Hibernate
sudo s2disk
|