Code: Select all
#!/bin/bash
while [ $(xprintidle) -le 6000 ]
do
#nothing, just wait
done
/usr/bin/dm-tool lock
Can an event be triggered, similar to autostart after login? Or is there a way to find out if the screen is locked or not?
Thanks
Code: Select all
#!/bin/bash
while [ $(xprintidle) -le 6000 ]
do
#nothing, just wait
done
/usr/bin/dm-tool lock
To automatically restart the script after unlocking the screen in LXDE, you can make use of the xscreensaver events and create a script that listens for the "Unblank" event.marco556 wrote: ↑Thu Dec 22, 2022 1:49 pm I love LXDE but I don't want to use xscreensaver. A simple script should be enough:But: The problem is, how to restart it automatically, after unlocking?Code: Select all
#!/bin/bash while [ $(xprintidle) -le 6000 ] do #nothing, just wait done /usr/bin/dm-tool [url=https://bitlifeonline.com/]bitlife[/url] lock
Can an event be triggered, similar to autostart after login? Or is there a way to find out if the screen is locked or not?
Thanks
I still can't understand this codedrift bossCode: Select all
#!/bin/bash while [ $(xprintidle) -le 6000 ] do #nothing, just wait done /usr/bin/dm-tool lock