Score:0

Can I display lock screen when I unplug the charger?

cn flag

I'm running Ubuntu 22.04.2 LTS and want to display the lock screen when I unplug my charger. Is there a script, plugin or program that will let me do this?

in flag
Welcome to AskUbuntu. To clarify, you would like your notebook to automatically lock when it is disconnected from power? Or are you asking to have the machine wake from sleep/hibernate and show the lock screen when disconnected?
FedKad avatar
cn flag
An endless script running in background can monitor battery status as explained in https://askubuntu.com/a/1412872/855322 and then lock the screen as explained in https://askubuntu.com/a/493331/855322
MalcolmInTheCenter avatar
cn flag
@matigo yes i want it to automatically lock when it is disconnected from power.
I sit in a Tesla and translated this thread with Ai:

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.