thiggy01 / change-gdm-background Goto Github PK
View Code? Open in Web Editor NEWChange the GDM background of Ubuntu based distributions from the 20.04 to 21.04.
Change the GDM background of Ubuntu based distributions from the 20.04 to 21.04.
Add support for this version please
First of all, thank you for the great piece of work!
I have a setup in which instead of having a static wallpaper, I have a soft link that points to a wallpaper that changes every 15 minutes. In order to match the sign-in screen to my current wallpaper, I would like to tell the script to use my soft link. When doing so, I get the "Image file note found" error.
As a quick fix, I commented the final if condition and the entire two elseif blocks, and the script works perfectly with my soft link. Unfortunately I don't know how to expand the first if condition in order to incorporate this use case, but I think it might be a useful addition, given the script seems to work fine otherwise with a soft link like mine.
Cheers
I have a slideshow running, which is stored in ~/.local/share/shotwell/wallpaper/wallpaper.xml
This slideshow also takes effect on the lock-screen, but the current picture is blurred
How can I just remove the blur and see the same slideshow in the lock screen in Ubuntu 20.04 like it already worked fine in 19.10
I upgraded my system from 21.10 to 21.14 and i couldn't use this tool that i loved after upgrading, so i tried to be nerdy and opened the bash file in "write and read" mode and edited the if statement and included my system Animal name to the condition which got me stuck to oh no! Something went wrong screen
Do you have any ideas on how to fix this ?
Please make it work for ubuntu 22.04
By default the gdm3 fonts are white/light colored, so it have a nice contrast against the dark purple background.
But when we use some light image for the background, the text gets unreadable.
So this issue is a feature request to add flags/parameter to control the font color, possible ways to do so:
./change-gdm-background someVeryLightPicture.jpg --font-color #545050
or
-dark-theme-fonts
: will set a light font color, so actually just leave the default font, since it already does its job-light-theme-fonts
: will set a dark font color, i recommend #545050 or #343434Hi @thiggy01
Thank you very much for the script! I used it in my previous ubuntu versions and it made my life easier.
Since Ubuntu 21.10 (Impish Indri) has been release, would it be possible to support that as well?
I get the following error message:
Sorry, this script only works with focal, groovy or hirsute distros.
I try this to custom a live ubuntu iso with Cubic, but I have this error:
-rwxr-xr-x 1 root root 6281 Oct 1 15:15 change-gdm-background
root@cubic:# nano change-gdm-background# ./change-gdm-background /usr/share/wallpapers/myfile.jpg
root@cubic:
cp: cannot stat '': No such file or directory
Don't know how to handle ~
Don't know how to handle ~
cp: cannot create regular file '/tmp/gdm3-theme/theme': No such file or directory
Can't open /tmp/gdm3-theme/theme/gdm3.css: No such file or directory.
./change-gdm-background: line 149: /tmp/gdm3-theme/theme/.xml: No such file or directory
Don't know how to handle ~
./change-gdm-background: line 154: /tmp/gdm3-theme/theme/.xml: No such file or directory
./change-gdm-background: line 156: /tmp/gdm3-theme/theme/.xml: No such file or directory
Failed to open file ?/tmp/gdm3-theme/theme/.xml?: No such file or directory
mv: missing destination file operand after '/tmp/gdm3-theme/theme/gnome-shell-theme.gresource'
Try 'mv --help' for more information.
something went wrong.
mv: cannot stat '': No such file or directory# cd /tmp/ls
No changes were applied.
rm: cannot remove '/tmp/gdm3-theme': No such file or directory
root@cubic:
-bash: cd: /tmp/ls: No such file or directory
root@cubic:~# cd /tmp/
root@cubic:/tmp# ls
root@cubic:/tmp#
sudo ./ubuntu-20.04-change-gdm-background macaw-poly.jpg at this command the picture and the script are at the home directory
I have been playing around with your script a little but it kept failing on my installation.
Turned out that the file permission of /usr/share/gnome-shell/gdm3-theme.gresource
had permissions of 640 with root as owner after your script runs.
This resulted in gdm not starting and I ended up in the "oh snap, something went wrong screen".
Obviously the --restore flag wasn't able to fix this problem either.
I had to set permissions to 644.
It might be a good idea to add a chmod 644 $gdm3Resource
at the end of the script. Just to be save and to save a few users from a serious headache.
Hi,
This is such an awesome script and it works really well on 20.04. Do you think you could update it to Ubuntu 21.04?
When I run the command sudo ./ubuntu-20.04-change-gdm-background /path/to/image (I put the path to the image I want) it asks me to restart gdm, and when I put yes, it restarts with the new background image but when I try to log in, it loops on the login page. So I have to restart the computer and then the new background image is not set anymore.
Ubuntu 20.04 LTS 64-bit
GNOME Version 3.36.2
libglib2.0-dev-bin is already the newest version (2.64.2-1~fakesync1).
Whe I run chmod +x gdm-change-login-background it says "chmod: cannot access 'gdm-change-login-background': No such file or directory" but I supposed that you wanted to run "chmod +x ubuntu-20.04-change-gdm-background"
Any idea why is the problem that it loops on the login screen without letting me log in again?
After applying the new wallpaper, the script asks to restart gdm. After confirming, the user is logged out. Now I can enter the password to re-login, but only come to a black screen which lasts about a second. I then get back to the login screen. The cycle repeats.
Soultion: Press Ctrl+Alt+F2, login, type "sudo reboot"
After that it works.
Just a heads up; and realizing this is very early Beta.
This only changes the background on the initial login screen, but not on the lock screen
Hi,
Change GDM Wallpaper is working well and I have tried a few images but is there a way to return to the original POP lock screen in the future?
thanks,
Please add support to multi-screen. It supposed to copy the main screen's background image to the secondary screen instead of stretch the image.
So actually I came from Ubuntu 21.04 and upgraded to 21.10. I got a strange issue after running this script here but I forgot the error message.
However, after rebooting I got: "Oh no! Something went wrong"
It took me some hours to fix it and I was close to reinstall my whole system.
How to fix it?
In the end it is all about gnome-shell-theme.gresource
e.g. under /usr/share/gnome-shell/theme/Yaru
.
Unfortunately I could not recover the backup (gnome-shell-theme.gresource~
) beause it was actually from 21.04 that is incompatible with 21.10. So I needed a fresh gnome-shell-theme.gresource
from Ubuntu 21.10.
cd /mount/yourSSDHDD.../usr/share/gnome-shell/theme/Yaru
gnome-shell-theme.gresource
: cp /usr/share/gnome-shell/theme/Yaru/gnome-shell-theme.gresource ./
sudo reboot
and unplug your USB stick when it asks for.@thiggy01 its up to you to add this worst case recovery in your README.md
You can also close this issue. Maybe it just helps someone and saves some time.
Hey guys, some support for Ubuntu 20.10 would be awesome.
Hello dear, can I change for solid color as background? If I don't want add image and I really want change only solid color of background. Is it possible? Thanks for nice small tool!
I would be great if this script supported gdm on fedora.
I laboriously changed my background image by editing CSS files in 18.04 about a month or so before upgrading to 20.04. I found your script while Googling for how to accomplish the same thing, and you've made it so much easier! It works great.
I would love to send a few dollars your way via Ko-Fi or a similar platform. Please consider letting us know how we can show our appreciation in the README.
When I have more than one screen connected, the wallpaper get's stretched to fill both screens. Is it possible to show the same wallpaper on multiple screens?
Apparently that support was reverted, I suppose this issue can be used to track.
This is a wonderful utility, but It is unclear what a user can and can't do with the utility in the way of distributing and modifying it. For example, someone who wanted to include this in their Ubuntu-based distro might not want to include it because it lacks something like an MIT or GPL3 license.
I was hoping that a license could be added to make it clear for potential users of this script.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.