aboutsummaryrefslogtreecommitdiff
path: root/xsuspend
blob: c0c82a9e6426641117bc5e0371adc2dd28ce2c5d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#!/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
systemctl suspend