個人用です。

SDDMからログインする時の壁紙の表示について

参考URL:https://wiki.calculate-linux.org/calculate_decorat...
デスクトップへのログイン時、SDDMでパスワード入力しEnterを押すと一瞬fehが割り込んで別の画像が表示される。
ログインスプラッシュの背景とfehの背景を同じにしないと一瞬別画像に切り替わるため違和感がある。
fehの画像は
/etc/calculate/ini.envを編集することで変更できる。

fehの壁紙の変更

Mythemeというディレクトリを作成
#mkdir /usr/share/themes/Mytheme
作成したディレクトリに壁紙に使いたいjpgを入れる

/etc/calculate/ini.env

#cp ini.env.example ini.env

ini.envを編集する

[theme]
# Login screen image. Preferred size 4266x2048
; dm-splash-background = /usr/share/themes/Calculate/dm-splash.jpg
上記を以下のように設定する
[theme]
# Login screen image. Preferred size 4266x2048
 dm-splash-background = /usr/share/themes/Mytheme/SDDMと同じ画像.jpg
コメント;を外すこと
編集したら以下のコマンドを発行する。
#cl-setup-themes

スプラッシュを変更している場合は

~/.local/share/plasma/look-and-feel/テーマ名/contents/splash/images/
の背景画像を変更する。

fehが割り込まないようにする

この方法が一番手っ取り早い
SDDMの背景、スプラッシュの背景、デスクトップの背景をKDEの設定から変えるだけで良い

/usr/share/calculate/xdm/login.d/00initの以下の部分をコメントアウトする。
	if [[ -f /usr/share/wallpapers/dm-background.png ]]
	then
		feh --no-fehbg --bg-scale /usr/share/wallpapers/dm-background.png
	else
		local bg_color="30648b"
		xsetroot -solid rgb:${bg_color:0:2}/${bg_color:2:2}/${bg_color:4:2}
	fi

永続するには

Templatesの使い方に従って/var/calculate/templates/merge/00initを作成し、その内容を以下のようにする
# Calculate mergepkg(sys-apps/calculate-utils)!= path=/usr/share/calculate/xdm/login.d
#! /bin/sh
# Copyright 2010-2016 Mir Calculate. http://www.calculate-linux.org
#
#  Licensed under the Apache License, Version 2.0 (the "License");
#  you may not use this file except in compliance with the License.
#  You may obtain a copy of the License at
#
#      http://www.apache.org/licenses/LICENSE-2.0
#
#  Unless required by applicable law or agreed to in writing, software
#  distributed under the License is distributed on an "AS IS" BASIS,
#  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
#  See the License for the specific language governing permissions and
#  limitations under the License.

run_script() {
	# set background color
#	if [[ -f /usr/share/wallpapers/dm-background.png ]]
#	then
#		feh --no-fehbg --bg-scale /usr/share/wallpapers/dm-background.png
#	else
#		local bg_color="30648b"
#		xsetroot -solid rgb:${bg_color:0:2}/${bg_color:2:2}/${bg_color:4:2}
#	fi

	/sbin/modprobe ecryptfs

	if [[ "`ps axeo command | grep 'xdm/xdm --logout' | grep -v grep | \
		sed -n -r 's/.* USER=([^ ]+) .*/\1/p'`" == "$USER" ]];
	then
		xmessage -buttons "" "Please wait to ending previous session" &
		XMESPID=$!
		while [[ "`ps axeo command | grep 'xdm/xdm --logout' | grep -v grep | \
			sed -n -r 's/.* USER=([^ ]+) .*/\1/p'`" == "$USER" ]]
		do
			sleep 1
		done
		kill -9 $XMESPID &>/dev/null
	fi
	return 0
}

コメントをかく


「http://」を含む投稿は禁止されています。

利用規約をご確認のうえご記入下さい

管理人/副管理人のみ編集できます