aboutsummaryrefslogtreecommitdiff
path: root/xsuspend
blob: fbc400c50c4ffa0880477e21a54e5e9c574708eb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#!/bin/bash
#
# Activate software suspend
#

# Avoid sensitive stuff to remain on clipboard
echo $RANDOM | xclip

# Lock the screen
xlock

# Wait
sleep 2

# Suspend
sudo pm-suspend