I am trying to create a little script to set random message when i lock the screen of my computer.
So i need to be able to define a message from command line and call it when i will execute the lock screen function.
I find the command to lock the screen : cinnamon-screensaver-command -l
but in the man there is no details about how to define the lock screen message.
If you have some ideas...
cinnamon-screensaver-command now has a "-m" or "--away-message" option for this, so you can just use that. I've got a little shell script that reads something like:
#!/bin/sh
cinnamon-screensaver-command -l -m $(fortune -s)
Collected from the Internet
Please contact [email protected] to delete if infringement.
Comments