Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
How to lock screen before suspend ? does this script work ?
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Installing Gentoo
View previous topic :: View next topic  
Author Message
LegionOfHell
Apprentice
Apprentice


Joined: 16 Mar 2019
Posts: 235
Location: Toronto, Canada

PostPosted: Thu Jun 18, 2020 5:04 pm    Post subject: How to lock screen before suspend ? does this script work ? Reply with quote

does the following script work ?

Code:
#!/bin/bash
sleep 1
xtrlock
sleep 3
s2ram
Back to top
View user's profile Send private message
fedeliallalinea
Bodhisattva
Bodhisattva


Joined: 08 Mar 2003
Posts: 24533
Location: here

PostPosted: Thu Jun 18, 2020 5:15 pm    Post subject: Reply with quote

Can help this?
_________________
Questions are guaranteed in life; Answers aren't.
Back to top
View user's profile Send private message
charles17
Advocate
Advocate


Joined: 02 Mar 2008
Posts: 3488

PostPosted: Thu Jun 18, 2020 7:10 pm    Post subject: Reply with quote

Code:
su -c s2ram && vlock -na
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Installing Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum