28 reviews
- Rated 5 out of 5
- Rated 5 out of 5
- Rated 5 out of 5
- Rated 5 out of 5
- Rated 5 out of 5
- Rated 5 out of 5
- Rated 5 out of 5
- Rated 4 out of 5
- Rated 5 out of 5
- Rated 5 out of 5
- Rated 5 out of 5
- Rated 5 out of 5
- Rated 5 out of 5
- Rated 5 out of 5
- Rated 5 out of 5Debian9 Gnome3 wayland firefox57.04 不能用,我按(http://eleveni386.7axu.com/blog/post/admin/Linux%E7%94%A8%E6%88%B7%E5%8E%BB%E6%8E%89Firefox-57-%E8%AE%A8%E5%8E%8C%E7%9A%84Title-bar)改了,OK!
install_hide_firefox_titlebar:
#!/bin/bash
# date: 2017-11-17
# license: GPLv3 https://www.gnu.org/licenses/gpl-3.0.txt
# author: nanpuyue https://blog.nanpuyue.com
echo 'install: ~/.mozilla/native-messaging-hosts/hide_titlebar.json'
[[ -d ~/.mozilla/native-messaging-hosts ]] || mkdir -p ~/.mozilla/native-messaging-hosts
cat > ~/.mozilla/native-messaging-hosts/hide_titlebar.json << EOF
{
"name": "hide_titlebar",
"description": "Hide the Firefox titlebar.",
"path": "$HOME/.local/bin/hide-firefox-titlebar.sh",
"type": "stdio",
"allowed_extensions": ["hide-titlebar@nanpuyue.com"]
}
EOF
echo 'install: ~/.local/bin/hide-firefox-titlebar.sh'
[[ -d ~/.local/bin ]] || mkdir -p ~/.local/bin
cat > ~/.local/bin/hide-firefox-titlebar.sh << "EOF"
#!/bin/bash
# date: 2017-11-17
# license: GPLv3 https://www.gnu.org/licenses/gpl-3.0.txt
# author: nanpuyue https://blog.nanpuyue.com
python - <from gtk.gdk import window_foreign_new, window_process_all_updates
import os
F_W_ID_List=os.popen("wmctrl -l|grep 'Firefox'").readlines()
id_list=[]
for iF_W_ID in F_W_ID_List:
w = window_foreign_new(int(iF_W_ID[:10], 16))
w.set_decorations(0)
window_process_all_updates()
EOF
chmod +x ~/.local/bin/hide-firefox-titlebar.sh
echo 'done'Developer response
posted 7 years ago - Rated 5 out of 5
- Rated 3 out of 5I have already installed the script from the Github and I also run the 2. script (generated to ~/.local/bin directory) with the "-x" option), but it doesn't work.
How can I fix the problem ?
I use Firefox 57 (Quantum) on Linux Mint Debian Edition with Xfce desktop environment. (The xdotool package was installed after first run of the sh file generated to ~/.local/bin directory. After that I run this script again with success.)
Can You help me with some tips / advices to make this addon workable on my system ? (If you give me a mail-address we could talk about that there.)
Thx. - Rated 5 out of 5