The solution is to use the gnome-shell-theme.gresource
file from the Adapta-Nokto theme.
EDIT: I updated this solution to create a link to the Adapta-Nokto gnome-shell-theme.gresource
theme file, instead of copying it. This way, the Lock screen will always use the most recent version of the Adapta-Nokto theme, whenever it is updated.
Open a terminal, and change to the gnome-shell
directory.
cd /usr/share/gnome-shell/
Backup the original gnome-shell-theme.gresource
file. The following command will only create the backup, if the current file is not a link (created using step 3).
if ! [[ -h gnome-shell-theme.gresource ]]; then sudo mv gnome-shell-theme.gresource gnome-shell-theme.gresource.original; fi
Link to the Adapta-Nokto theme's gnome-shell-theme.gresource
file.
sudo ln -frs /usr/share/themes/Adapta-Nokto/gnome-shell/gnome-shell-theme.gresource gnome-shell-theme.gresource
Reboot to enable the new Lock screen. (Just loging-out and logging-back-in is not sufficient to enable the new Lock screen, because you are repeatedly taken back to the Login screen after you enter your password).
Note: if the gnome-shell-common
package is updated at a future time, you may need to execute steps 1 thru 3 again to re-enable the Adapta-Nokto Lock screen theme.
Reference: Materia GDM Theme
In a fresh install of Ubuntu 20.04,
the default shell theme.. and lock screen both are configured to use the css file
Yaru/gnome-shell.css
which is inside the /usr/share/gnome-shell/theme/Yaru/gnome-shell-theme.gresource
this is configured in the file /usr/share/gnome-shell/modes/ubuntu.json
{
"parentMode": "user",
"stylesheetName": "Yaru/gnome-shell.css",
"themeResourceName": "theme/Yaru/gnome-shell-theme.gresource",
"debugFlags": ["backtrace-crashes-all"],
"enabledExtensions": ["ubuntu-dock@ubuntu.com", "ubuntu-appindicators@ubuntu.com", "desktop-icons@csoriano"]
}
So, you can pointout what ever .gresource
file you want to use and the corresponding gnome-shell.css
for example, If I want Yaru-dark theme, I can simply point out like this by editing the file /usr/share/gnome-shell/modes/ubuntu.json
Take Backup of the file /usr/share/gnome-shell/modes/ubuntu.json
before editing
{
"parentMode": "user",
"stylesheetName": "Yaru-dark/gnome-shell.css",
"themeResourceName": "theme/Yaru/gnome-shell-theme.gresource",
"debugFlags": ["backtrace-crashes-all"],
"enabledExtensions": ["ubuntu-dock@ubuntu.com", "ubuntu-appindicators@ubuntu.com", "desktop-icons@csoriano"]
}
Please note that Default shell theme and lock screen uses same file.. so If you want Yaru shell theme for the desktop session.. you need to install it as a local theme which is another topic.
I have not tried with full path of the .gresource
file.. in the line
"themeResourceName": "theme/Yaru/gnome-shell-theme.gresource",
this means.. theme/Yaru/gnome-shell-theme.gresource
is a relative path of the base /usr/share/gnome-shell
Best Answer
for Arc-Theme, in Ubuntu 18.04.
Ubuntu 18.04 change Login Screen theme (not wallpaper) following this Answer and Warnings in it.
I have tried to change login & lock screen themes same as
User Shell
ThemeArc-Theme
when you download the arc-theme from https://github.com/horst3180/arc-theme github. simplfy it like below
this Arc-Theme is lacking content for some keys for Onscreen-Keyboard.
so, i have adapted that from default file
/usr/share/gnome-shell/theme/ubuntu.css
copy the lines 1549 to 1566 from
/usr/share/gnome-shell/theme/ubuntu.css
and paste under line number 1708 in/usr/share/themes/Arc-Theme/gnome-shell/gnome-shell.css
save the file & close.
now run the below command:
Example:
now copy the 3 folders common-assets, dark-assets & light-assets from
/usr/share/themes/Arc-Theme/gnome-shell/
to/usr/share/gnome-shell/theme/
now copy paste all the content from
/usr/share/themes/Arc-Theme/gnome-shell/gnome-shell.css
to/usr/share/gnome-shell/theme/ubuntu.css
file replacing the data in ubuntu.css file.save the file, close & shutdown
fresh start the system to see the change.
Lock Screen animation:
Login Screen Pictures: