LoginSignup
23
18

More than 5 years have passed since last update.

[Ubuntu 18.04] ログイン画面の背景を変える

Last updated at Posted at 2018-04-29

はじめに

デスクトップの背景やロック画面は簡単に変えられますが、ログイン画面は少し特殊なのでまとめました。

デフォルトだとこんな感じです。
Screenshot from 2018-04-29 20-00-40.png

方法

まず、画像を用意します。(形式はpngかjpg)
ログイン画面の背景は全ユーザー共通なので、システムの背景画像フォルダ/usr/share/backgrounds/に置いておくのが適切でしょう。

$ sudo cp <用意した画像のPath> /usr/share/backgrounds/

次に、sudo viなどで設定ファイル/etc/alternatives/gdm3.css#lockDialogGroupを変更します。
デフォルトだとこうなっています。

/etc/alternatives/gdm3.css
/* <<< 省略 >>> */

#lockDialogGroup {                                                               
  background: #2c001e url(resource:///org/gnome/shell/theme/noise-texture.png); 
  background-repeat: repeat; }

/* <<< 省略 >>> */

これを以下のように変更してください。

/etc/alternatives/gdm3.css
/* <<< 省略 >>> */

#lockDialogGroup {
  background: #2c001e url(file:///usr/share/backgrounds/<用意した画像のファイル名>);         
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center; }

/* <<< 省略 >>> */

再起動で反映されます。

23
18
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
23
18