Score:0

How do you change Ubuntu 21.04 lock screen image?

bo flag

After searching, I couldn't figure out how to effectively change the lock screen image.

From the search results I have found, I think that I have to extract the .gresource from /usr/share/gnome-shell/theme/Yaru/gnome-shell-theme.gresource edit the lockDialogGroup ID in extracted file gdm3.css and then recompile.

Here's where I encountered the problem; I couldn't figure out how to get the XML file needed to recompile the .gresource.

Score:0
in flag

To change the lock screen image, you'll need to have the libglib2.0-dev package installed and you'll likely also want to take a look at the work Pratap Kumar has already done to do this for Ubuntu 20.04. The bits you'll be interested in are down near the end of the file.


Note: Pratap's solution says it will only work on 20.04 but it does work just fine with 21.04 if you change this line:

if [ "$codename" == "focal" ] && [ "$osname" == '"Ubuntu"' ]

To this:

if [ "$codename" == "focal" ] || [ "$codename" == "groovy" ] || [ "$codename" == "hirsute" ]

Then you can more easily update your background following these steps

R1D3R175 avatar
bo flag
Wow didn't think that this solution could work, my actual thought was "if it was an XML for 20.04, there could be some chances that it wont work in 21.04. Dont risk." Thanks a lot!!
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.