I found this technique to turn a calc window into a “sticky”, which means, to empty it of all interface and decorations, leaving only a movable and resizeable rectangle of cells, on an XFCE desktop.
I don’t know any other Linux desktop environment that can go this far with this but if you know one, give an answer.
This trick works pretty well. It takes 3 minutes to set it up for the first time but then it only takes a few seconds. Note that it currently has a minor regression bug, though it’s not so problematic and easy to work around.
If you know a solution you think is better or more stable, please give an answer too.
sudo apt-get install python-gtk2
cat > ~/hide-window-decoration
(while 2. is still hanging):
import gtk.gdk w = gtk.gdk.window_foreign_new( gtk.gdk.get_default_root_window().property_get("_NET_ACTIVE_WINDOW") ) w.set_decorations( (w.get_decorations()+1)%2 ) # toggle between 0 and 1 gtk.gdk.window_process_all_updates() gtk.gdk.flush()
Ctrl+D (validates previous command, creating the file)
make created file executable
assign a keyboard shortcut to that script (e.g. Super + H)
With all LibreOffice windows closed (imperative):
- open ~/.config/libreoffice/4/user/registrymodifications.xcu :
falseon that line
- Tools > Customize > Keyboard:
Col1 : Options > Col2 : Options > Col3 : Your shortcut of choice (e.g. Ctrl+Alt+U)
- in View menu, disable Status Bar
- in Tools > options > LibreOffice Calc > View > Window, uncheck these :
- ☐ headers
- ☐ scroll bars
- ☐ sheet tabs
- Ctrl + Shift + J (Fullscreen)
- Alt + Space > Leave Fullscreen (it doesn’t actually leave it within LibreOffice, because XFCE is awesome like that)
When you want to show the interface back again: Ctrl + Shift + J
- Super + H (or whatever you assigned to the hide-window-decoration script): pressing the shortcut once initiates it, then each press switches the decoration on and off. So you have to press it twice to hide the decoration the first time you use it on any window.
Note: the modifier is the one set in XFCE’s “Window Manager Tweaks”, Accessibility tab.
- Modifier + LMB drag : move window
- Modifier + RMB drag : resize window
- Alt + space > Always on Top
- Alt + space > Always on Visible Workspace: This is currently necessary because of the bug mentioned at the top.