去掉Firefox 57+讨厌的title bar方法之一
Tofloor
poster avatar
153******66
deepin
2017-12-18 20:49
Author
1. 准备材料
        wmctrl
2. 备份firefox
        cd /opt/firefox/ ; mv firefox firefox-browser
3. 创建脚本
        touch firefox;
         #!/bin/bash

/opt/firefox/firefox-browser $1 & # 这里路径需要改成和你上面备份的路径一直
sleep 2;
F_W_ID=$(wmctrl -l |grep 'Firefox'|awk '{print $1}');
python -c 'from gtk.gdk import window_foreign_new, window_process_all_updates; w = window_foreign_new(int("'$F_W_ID'", 16)); w.set_decorations(0); window_process_all_updates()'

4. 给予执行权限
        chmod u+x /opt/firefox/firefox


完毕


附上截图



缺点: 无法最大, 最小化 如果要关闭浏览器 右上角 可以关闭 或者Ctrl+F4

Reply Favorite View the author
All Replies
avatar
moriwuhen
deepin
2017-12-18 21:51
#1
等更好方案,或者等官方自己解决,不然仍然chrome好了。
Reply View the author
avatar
cosecant
deepin
2017-12-18 22:12
#2
还是丑啊
Reply View the author
avatar
Elegantpower
deepin
2017-12-18 22:44
#3
默认火狐算了
Reply View the author
avatar
153******66
deepin
2017-12-18 22:58
#4
https://bbs.deepin.org/post/150357
等更好方案,或者等官方自己解决,不然仍然chrome好了。

实验版本里面 有增加一个title bar 的选项 但是不论勾不勾选 title bar 都无任何变化. 他们占坑 目测始终要填
Reply View the author
avatar
153******66
deepin
2017-12-18 22:59
#5

旁边没有 最大 最小 关闭 三个按钮 看着确实有些别扭. 不过想想 在没有其他更简单的解决方案之前. 这个算是临时的过渡方案了, 起码 不用看见那个讨厌的title bar了
Reply View the author
avatar
rekols
deepin
2017-12-18 23:11
#6
Reply View the author
avatar
cosecant
deepin
2017-12-19 00:46
#7
https://bbs.deepin.org/post/150357
旁边没有 最大 最小 关闭 三个按钮 看着确实有些别扭. 不过想想 在没有其他更简单的解决方案之前. 这个算 ...

我都换回56了
Reply View the author
avatar
153******66
deepin
2017-12-19 16:58
#8

其实我也有想法的. 退回去, 插件又可以用了不说. 也不用对着这讨厌的title bar .
Reply View the author
avatar
昨夜的星辰
deepin
2017-12-19 21:48
#9
chrome装个插件太费事了,google访问不了。感觉firefox更好一些,国内装插件方便的多,运行也不错。主要是装个鼠标手势的插件是真的方便
Reply View the author