PDA

View Full Version : [ubuntu] GDM Theme Manager



the++abe
August 29th, 2018, 03:42 PM
Hey guys, hopefully you are doing well :) I want to change my login screen and lock screen "the greeter" from what Ubuntu is forcing me to use to something else more specifically to my preferred theme, which is Equilex-Compact, but so far I have found no application for doing this task and it sounds like there is no way for doing this.
It be great if you guys get this problem solved for me :)
Thanks

Frogs Hair
August 29th, 2018, 04:12 PM
Hello and Welcome !

I've not tested this, but it may be worth a try. See the screen-shots. There is a .deb package link.

https://github.com/juhaku/loginized

the++abe
August 29th, 2018, 04:24 PM
Thanks dude, I've tried this, it does not change the theme, this only has the "default" option in theme section, I was hoping for some option for my preferred theme..But nothing, I see the files "gnome-shell.css" and "gnome-shell-theme.gresource.xml" in the folder of Equilex theme but I have no idea where should I move these files to..In order to get rid of this Ubuntu greeter :)
Thanks a lot man for trying to help .

Frogs Hair
August 29th, 2018, 04:42 PM
The panel is auto started with a script in usr/share/gdm/ greeter/applications though I have no idea how to change the default .

logix2
August 29th, 2018, 06:17 PM
It works fine for me, here's a screenshot with a list of themes displayed by Loginized: https://i.imgur.com/1SyPmGD.png Not all themes support theming GDM - you may want to read the Loginized wiki (https://github.com/juhaku/loginized/wiki/Help) for more about that.

the++abe
August 29th, 2018, 09:59 PM
It does not work, after a fresh installation of Ubuntu, I tried this, what the wiki says about compiling the folder "gnome-shell" and the folder "gnome-shell" does exist in Equilux Theme, but I would only receive error.
this was the command line which I used
loginized-cli compile /usr/share/themes/Equilux-compact/gnome-shell/ /usr/share/themes/Equilux-compact/gnome-shell/

and this is the error which I received.

/usr/bin/loginized-cli:line 162:/usr/share/themes/Equilux/gnome-shell/gnome-shell-theme.gresource.xml:Permission denied
/usr/bin/loginized-cli:line 164: glib-compile-resources: command not found
cp: cannot stat'/usr/share/themes/Equilux/gnome-shell/gnome-shell-theme.gresource':No such file or directory


and yeah I ran the app from Terminal to check and see of there is any dependency required, there were 3 and I downloaded them before doing this..But nothing worked.

Frogs Hair
August 30th, 2018, 01:22 AM
You need elevated permission to create the gnome shell folder in usr/share/themes/Equilux. You can use
sudo-H nautilus and navigate to the theme folder to add the new directory.

the++abe
August 30th, 2018, 08:39 AM
Okay I should have added that "gnome-shell" folder does indeed exist in the theme's folder, so there is no need for creating a new folder there, but that was a good command line for a noob like me :D I could do anything after running it, thanks a lot, but it could not do much since the folder already existed, then I got grumpy and changed gnome-shell-theme.gresource.xml" file which already existed that folder to gnome-shell-theme.gresource" and after that restarted the machine and opened Loginized and Loginized recognized the them...I chose the theme and restarted and the system never came up :)

the++abe
August 30th, 2018, 04:02 PM
I have found the way
sudo apt install libglib2.0-dev libxml2-utils (needed packages)
sudo cp -av /usr/share/gnome-shell/gnome-shell-theme.gresource{,~} (backup previous)
sudo cp -av /usr/share/gnome-shell/theme/ubuntu.css{,~} (backup previous)
Select a GTK+ theme to decide which variant to install. (gnome tweaks)
GTK_THEME=$(gsettings get org.gnome.desktop.interface gtk-theme | sed "s/'//g")
cd /usr/share/themes/${GTK_THEME}/gnome-shell
sudo glib-compile-resources --target=/usr/share/gnome-shell/gnome-shell-theme.gresource gnome-shell-theme.gresource.xml
sudo cp -v gnome-shell.css /usr/share/gnome-shell/theme/ubuntu.css (all the above to compile and replace current theme)
Press ALT+F2 and type rt, and press ENTER, or simply reboot.
If you want to revert changes, refer to the above link.
EDIT: Extra info. Every time the gdm package is updated, you must repeat the above procedure.