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
聶文龍 閱讀(1039)
評論(1) 編輯 收藏 引用