执行以下命令
gsettings set org.gnome.desktop.wm.preferences button-layout ':minimize,maximize,close'
看到了吧,最小化/最大化/关闭按钮在标题栏中居右了吧!
move window titles to the center of the title bar
Yes there is a way, open up your terminal and go to the folder /usr/share/themes/YourTheme/metacity-1/
in my case that would be Ambience
cd /usr/share/themes/Ambiance/metacity-1/
in this folder should be a file called metacity-theme-1.xml, open this file in your favorite editor, you need sudo rights though!
search for this part
<draw_ops name="draw_title_text_normal">
<title color="#333" x="10" y="(((height - title_height) / 2) `max` 0)+1"/>
<title color="#333" x="10" y="(((height - title_height) / 2) `max` 0)-1"/>
<title color="#333" x="9" y="(((height - title_height) / 2) `max` 0)"/>
<title color="#333" x="11" y="(((height - title_height) / 2) `max` 0)"/>
<title color="#dfdbd2" x="10" y="(((height - title_height) / 2) `max` 0)"/>
</draw_ops>
and replace all the x="" numbers with
((width - title_width) / 2) max 0
so it'll look like this at the end
<draw_ops name="draw_title_text_normal">
<title color="#333" x="((width - title_width) / 2) `max` 0" y="(((height - title_height) / 2) `max` 0)+1"/>
<title color="#333" x="((width - title_width) / 2) `max` 0" y="(((height - title_height) / 2) `max` 0)-1"/>
<title color="#333" x="((width - title_width) / 2) `max` 0" y="(((height - title_height) / 2) `max` 0)"/>
<title color="#333" x="((width - title_width) / 2) `max` 0" y="(((height - title_height) / 2) `max` 0)"/>
<title color="#dfdbd2" x="((width - title_width) / 2) `max` 0" y="(((height - title_height) / 2) `max` 0)"/>
</draw_ops>
save the changes, logout and login again, and the titles are centered!
分享到:
相关推荐
ubuntu登陆窗口主题,炫酷的ubuntu登录界面。
ubuntu网络配置ubuntu网络配置ubuntu网络配置
Ubuntu16.04 + Qt5.7.1,qml实现的简易图标按钮控件。
ubuntu C++资料ubuntu C++资料ubuntu C++资料ubuntu C++资料ubuntu C++资料ubuntu C++资料ubuntu C++资料ubuntu C++资料ubuntu C++资料ubuntu C++资料ubuntu C++资料ubuntu C++资料
ubuntu安装python3.9 ubuntu安装python3.9 ubuntu安装python3.9 ubuntu安装python3.9 ubuntu安装python3.9 ubuntu安装python3.9 ubuntu安装python3.9 ubuntu安装python3.9 ubuntu安装python3.9
解决Win10与Ubuntu双系统 开机不能 进入Ubuntu的问题,更换启动项目和顺序的方法
ubuntu 漂亮毛玻璃主题包 HastaLa-Linuxidc.emerald
ubuntu的秘密 ubuntu口袋书 ubuntu的秘密 ubuntu口袋书 ubuntu的秘密 ubuntu口袋书 很有意思的新书
在ubuntu14.04中使用apt-get install得到的deb,包含: openjdk-8-jdk_8u91-b14-0ubuntu4~14.04_amd64.deb openjdk-8-jre_8u91-b14-0ubuntu4~14.04_amd64.deb openjdk-8-jdk-headless_8u91-b14-0ubuntu4~14.04_amd64...
关于ubuntu的各种桌面特效的详细设置
ubuntu 解包打包 img
窗口置顶快捷隐藏小工具(偷懒神器),把视频或网页缩小后放到桌面一角,ctrl + Q 隐藏,Ctrl + E 显示,上班看片小工具
ubuntu server 10.0.4 安装
Ubuntu教程Ubuntu教程Ubuntu教程
ubuntu升级到12.04后,自带的计算器窗口大小变的不可调整,很不方便。笔者找到了旧版本(10.04上)的计算器(5.28.2)安装包,安装到12.04上,使用起来很方便。解压后用dpkg -i 命令安装即可。
Ubuntu命令Ubuntu命令Ubuntu命令
ubuntu 16.04 可以方便使用的清理工具 ubuntu-tweak ubuntu 16.04 LTS
适用于ubuntu live server18.04.5版本,食用方法: 1. sudo dpkg -i libnfsidmap2_0.25-5.1_amd64.deb 2. sudo dpkg -i libtirpc1_0.2.5-1.2ubuntu0.1_amd64.deb 3. sudo dpkg -i rpcbind_0.2.3-0.6ubuntu0.18.04.1_...
ubuntu 下实现mplayer播放器的简单demo,参考了相关大神的文档,UI未使用designer设计,使用代码设计界面,初始版本仅供参考。
ubuntu20.4镜像源