ICode9

精准搜索请尝试: 精确搜索
首页 > 其他分享> 文章详细

修改Debian登录窗口背景图片

2020-12-05 17:01:40  阅读:259  来源: 互联网

标签:shell gnome 登录 svg toggle gresource theme Debian 背景图片


仅记录以便日后使用:

  1. 执行gresource-export.sh,将资源文件备份到$HOME/shell-theme目录
  2. 将导出的$HOME/shell-theme/theme中的所有文件,保存到gnome-shell-theme.gresource.xml中
  3. 将想要更新的背景图片放到$HOME/shell-theme/theme下命名为login-background.png,并在xml中增加该文件信息
  4. 修改导出的gnome-shell.css文件,将lockDialog改为以下内容:
#lockDialogGroup {
  background: url(login-background.png);
  background-size: 1920px 1080px;
  background-repeat: no-repeat; }
  1. 在$HOME/shell-theme/theme目录下执行glib-compile-resources gnome-shell-theme.gresource.xml,生成新的gnome-shell-theme.gresource
  2. 将新的gnome-shell-theme.gresource复制到/usr/share/gnome-shell/下并重启系统即可
  3. 最终效果:在这里插入图片描述

gresource-export.sh内容:

#!/bin/sh
gst=/usr/share/gnome-shell/gnome-shell-theme.gresource
workdir=${HOME}/shell-theme

for r in `gresource list $gst`; do
	r=${r#\/org\/gnome\/shell/}
	if [ ! -d $workdir/${r%/*} ]; then
	  mkdir -p $workdir/${r%/*}
	fi
done

for r in `gresource list $gst`; do
        gresource extract $gst $r >$workdir/${r#\/org\/gnome\/shell/}
done

gnome-shell-theme.gresource.xml内容:

<?xml version="1.0" encoding="UTF-8"?>
<gresources>
  <gresource prefix="/org/gnome/shell/theme">
    <file>calendar-arrow-left.svg</file>
    <file>calendar-arrow-right.svg</file>
    <file>calendar-today.svg</file>
    <file>checkbox-focused.svg</file>
    <file>checkbox-off-focused.svg</file>
    <file>checkbox-off.svg</file>
    <file>checkbox.svg</file>
    <file>close-window-active.svg</file>
    <file>close-window-hover.svg</file>
    <file>close-window.svg</file>
    <file>corner-ripple-ltr.png</file>
    <file>corner-ripple-rtl.png</file>
    <file>dash-placeholder.svg</file>
    <file>gnome-shell.css</file>
    <file>gnome-shell-high-contrast.css</file>
    <file>icons/message-indicator-symbolic.svg</file>
    <file>key-enter.svg</file>
    <file>key-hide.svg</file>
    <file>key-layout.svg</file>
    <file>key-shift-latched-uppercase.svg</file>
    <file>key-shift.svg</file>
    <file>key-shift-uppercase.svg</file>
    <file>login-background.png</file>
    <file>no-events.svg</file>
    <file>noise-texture.png</file>
    <file>no-notifications.svg</file>
    <file>pad-osd.css</file>
    <file>page-indicator-active.svg</file>
    <file>page-indicator-checked.svg</file>
    <file>page-indicator-hover.svg</file>
    <file>page-indicator-inactive.svg</file>
    <file>process-working.svg</file>
    <file>toggle-off-hc.svg</file>
    <file>toggle-off-intl.svg</file>
    <file>toggle-off-us.svg</file>
    <file>toggle-on-hc.svg</file>
    <file>toggle-on-intl.svg</file>
    <file>toggle-on-us.svg</file>
  </gresource>
</gresources>

标签:shell,gnome,登录,svg,toggle,gresource,theme,Debian,背景图片
来源: https://blog.csdn.net/BlueSkyansion/article/details/110698515

本站声明: 1. iCode9 技术分享网(下文简称本站)提供的所有内容,仅供技术学习、探讨和分享;
2. 关于本站的所有留言、评论、转载及引用,纯属内容发起人的个人观点,与本站观点和立场无关;
3. 关于本站的所有言论和文字,纯属内容发起人的个人观点,与本站观点和立场无关;
4. 本站文章均是网友提供,不完全保证技术分享内容的完整性、准确性、时效性、风险性和版权归属;如您发现该文章侵犯了您的权益,可联系我们第一时间进行删除;
5. 本站为非盈利性的个人网站,所有内容不会用来进行牟利,也不会利用任何形式的广告来间接获益,纯粹是为了广大技术爱好者提供技术内容和技术思想的分享性交流网站。

专注分享技术,共同学习,共同进步。侵权联系[81616952@qq.com]

Copyright (C)ICode9.com, All Rights Reserved.

ICode9版权所有