Edit the file /usr/share/xsessions/ubuntu-communitheme-snap.desktop
and change the "ubuntu-communitheme" text to "myct" (change anything, not necessarily "myct") in the line starting with Exec=
sudo -H gedit /usr/share/xsessions/ubuntu-communitheme-snap.desktop
![enter image description here](https://i.stack.imgur.com/a97Xp.png)
[Desktop Entry]
Name=Ubuntu with communitheme snap
Comment=This session logs you into Ubuntu
Exec=env GNOME_SHELL_SESSION_MODE=myct /snap/communitheme/current/session
TryExec=/snap/communitheme/current/session
Type=Application
DesktopNames=communitheme:ubuntu:GNOME
X-Ubuntu-Gettext-Domain=gnome-session-3.0
create a file named myct.json in the directory /usr/share/gnome-shell/modes/
with below content.
![enter image description here](https://i.stack.imgur.com/IMaol.png)
{
"parentMode": "user",
"stylesheetName": "myct.css",
"enabledExtensions": ["ubuntu-dock@ubuntu.com", "ubuntu-appindicators@ubuntu.com"]
}
Create a text file named myct.css
in the directory /usr/share/gnome-shell/theme/
sudo touch /usr/share/gnome-shell/theme/myct.css
Open the file and paste the below content
sudo -H gedit /usr/share/gnome-shell/theme/myct.css
Content:
@import url("/snap/communitheme/current/share/gnome-shell/theme/Communitheme/gnome-shell.css");
#lockDialogGroup {
background-color: magenta; }
Reboot and then lock the screen to see your preferred color.
![enter image description here](https://i.stack.imgur.com/94NLi.png)
![enter image description here](https://i.stack.imgur.com/GVkEj.gif)
to achieve the requirements in the Question for default Ubuntu 18.04
need to edit the below files:
- for changing grub color:
/usr/share/plymouth/themes/ubuntu-logo/ubuntu-logo.grub
- for plymouth color:
/usr/share/plymouth/themes/ubuntu-logo/ubuntu-logo.script
- for login-screen background color:
/usr/share/gnome-shell/theme/ubuntu.css
ubuntu-logo.grub
my file content. replace the values to 0,0,0,0;
for black
if background_color 66,48,228,0.5; then
clear
fi
ubuntu-logo.script
some of my file content. replace the values to (0, 0, 0);
for black
Window.SetBackgroundTopColor (0.16, 0.00, 0.12); # Nice colour on top of the screen fading to
Window.SetBackgroundBottomColor (0, 1.02, 1.02); # an equally nice colour on the bottom
ubuntu.css
my file edited content at around line number 1814
#lockDialogGroup {
background-color: #000000; }
after editing the files, save & close all files..
then run sudo update-grub
Reboot to see the change.
Best Answer