Ubuntu 20.04でロック画面テーマをカスタマイズする方法


2

this answerの指示に従って、ログイン画面のgnomeシェルテーマをYaru-darkに変更しました。再起動後にログオンすると、暗いカレンダーとシステムメニューに気づきました。ただし、Super + Lでコンピュータをロックすると、ロック画面に白いカレンダーとシステムメニューが表示されるので、それらも暗くしたいと思います。

これまでに見たすべての回答は、Ubuntu 18.04に関するものです。これは、私が持っていない/usr/share/gnome-shell/ubuntu.cssに関するものだからです。私は/usr/share/gnome-shell/gnome-shell-theme.gresourceを持っています が、それを私の暗いテーマのgresourceに変更しても、ロック画面に明るいシェルが表示されます。他のいくつかの回答は、私がどちらも持っていない/usr/share/gnome-shell/theme/gdm3.cssを参照しています(そのディレクトリにある唯一のcssファイルはgnome-classic.cssです)。

Ubuntu 20.04のロック画面のテーマを制御するcssファイルまたはgresourceファイルを知りたいのですが。

A screenshot of my white system menu from the lock screen

1

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": ["[email protected]", "[email protected]", "[email protected]"]
}

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": ["[email protected]", "[email protected]", "[email protected]"]
}

enter image description here

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


0

How to Change Lock Screen Background Wallpaper in Ubuntu 20.04 Leave a comment, please.

1.) Open terminal by pressing Ctrl+Alt+T on keyboard. When it opens, run command to make sure gir1.2-clutter-1.0 library is installed:

sudo apt install gir1.2-clutter-1.0

2.) Then in web browser go to extensions.gnome.org/extension/1476/unlock-dialog-background/.

Click on the toggle and confirm on the next pop-up to install the extension.

Don’t see the toggle? Do following steps, then refresh the web page.

Click the link text “click here to install browser extension” and follow the pop-ups to install the browser extension: shell browser extension Then open terminal and run command:

sudo apt install chrome-gnome-shell

3.) Launch either Extensions utility or Gnome Tweaks > Extensions (install it via Ubuntu Software), go to the extension settings page, and finally set a picture for lock screen background.

That’s All. Enjoy! I hope you find this helpful.