随笔 - 298  文章 - 377  trackbacks - 0
<2007年6月>
272829303112
3456789
10111213141516
17181920212223
24252627282930
1234567

常用链接

留言簿(34)

随笔分类

随笔档案

文章档案

相册

收藏夹

搜索

  •  

最新评论

阅读排行榜

评论排行榜

GNOME 3.12 开始使用 GResource 二进制资源文件保存 js/css/svg 等文件,需使用 gresource 解压,使用 glib-compile-resources 封装。

  # vim getshell.sh
  #!/bin/sh
  gs="/usr/share/gnome-shell/gnome-shell-theme.gresource"
  cd shell
  for r in `gresource list $gs`; do
      gresource extract $gs $r > ${r/#\/org\/gnome\/shell\/theme/.}
  done
  ### 修改gnome-shell.css ###
  # wget https://raw.githubusercontent.com/GNOME/gnome-shell/master/data/gnome-shell-theme.gresource.xml
  # glib-compile-resources gnome-shell-theme.gresource.xml


将生成的gnome-shell-theme.gresource 覆盖系统默认的 /usr/share/gnome-shell/gnome-shell-theme.gresource 即可。



下面是隐藏标题栏的两个方法:
方法1(arch是这样),创建 ~/.config/gtk-3.0/gtk.css 文件:

.header-bar.default-decoration {  padding-top: 3px;  padding-bottom: 3px;}.header-bar.default-decoration .button.titlebutton {  padding-top: 2px;  padding-bottom: 2px;}

然后重启Shell

方法2,安装插件 https://extensions.gnome.org/extension/844/maximus-two/

打开 ~/user/share/gnome-shell/extensions/maximus-two/@wilfinitlike.gmail.com/metadata.json 文件增加:

3.14

+3.16

posted on 2016-08-18 22:21 聂文龙 阅读(913) 评论(1)  编辑 收藏 引用

FeedBack:
# re: Gnome3提取gnome-shell.css以及修改和编译 2016-08-18 22:39 聂文龙
#! /bin/sh

gst=/usr/share/gnome-shell/gnome-shell-theme.gresource
cd gnome-shell

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

#! /bin/sh

#change workdir to suit your system
workdir=/tmp/lala
gst=/usr/share/gnome-shell/gnome-shell-theme.gresource
mkdir theme

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



mkdir /tmp/lala
bash -x /tmp/lala.sh
cd /tmp/lala/theme  回复  更多评论
  

只有注册用户登录后才能发表评论。
网站导航: 博客园   IT新闻   BlogJava   知识库   博问   管理