GithubHelp home page GithubHelp logo

change-gdm-background's People

Contributors

266-750balloons avatar duckimann avatar mendhak avatar thiggy01 avatar zachwingrave avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

change-gdm-background's Issues

Pointing to a soft link

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

keep slideshow and just remove the blur

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

Oh no! Something went wrong

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 ?

Add support to control font colors

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:

  • One new parameter, to specify the font HEX color. for example ./change-gdm-background someVeryLightPicture.jpg --font-color #545050

or

  • Two new flags:
    • -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 #343434

support for Ubuntu 21.10 (Impish Indri)

Hi @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.

Error for this change-gdm-background

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
root@cubic:
# ./change-gdm-background /usr/share/wallpapers/myfile.jpg
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
No changes were applied.
rm: cannot remove '/tmp/gdm3-theme': No such file or directory
root@cubic:
# cd /tmp/ls
-bash: cd: /tmp/ls: No such file or directory
root@cubic:~# cd /tmp/
root@cubic:/tmp# ls
root@cubic:/tmp#

File permission

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.

Ubuntu 21.04 Support

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?

Not logging in again

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?

Crash/Relogin loop after applying

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.

Add support to multi-screen

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.

"Oh no! Something went wrong"

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.

  1. Create a bootable Ubuntu live USB stick and boot into it and use "Try ubuntu" (if your real system is 21.10 then use 21.10 for the USB stick as well)
  2. Encrypt/mount (depends on what you have) your SSD/HDD
  3. Go into the right folder within your SSD/HDD cd /mount/yourSSDHDD.../usr/share/gnome-shell/theme/Yaru
  4. Copy the fresh gnome-shell-theme.gresource: cp /usr/share/gnome-shell/theme/Yaru/gnome-shell-theme.gresource ./
  5. 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.

Change backgroudn color?

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!

Let us buy you a Ko-Fi

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.

Multimonitor support

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?

Missing License

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.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.