Your choices might be:
- Cage, a Wayland-based compositor designed to run a single
application. You might be able to make it run dropbox in background
with a shell script.
xinit
, a command do launch another X
windowing server instance. Best used in a tty like so: xinit office-command $* -- :0 vt$XDG_VTNR
. You can also write a
~/.xinitrc file that specifies commands you want to autorun,
including dropbox.
- Sway with Waybar. It has quite a bit of
a learning curve, but it has excellent tray support, and can make
any kind of window fullscreen at will with
Win + F
. It's also rather user-friendly, for a tiling WM.
If you choose xinit
or Cage, you might want to look at stalonetray
, as a tray is required and optimal for Dropbox.
As for the autostart bit, run sudoedit /usr/share/xsessions/write-and-dropbox.desktop
. An editor will pop up, and you should enter something like:
[Desktop Entry]
Name=Write Mode
Comment=Start Office and Dropbox in stalonetray
Exec=/usr/local/bin/writemode-init
TryExec=/usr/local/bin/writemode-init
Type=Application
Save, then create the aforementioned file with sudoedit /usr/local/bin/writemode-init
and add something like this (depends on what you chose as a solution):
#!/bin/sh
# ^^^ define the interpreter
cage 'sh -c "your-office-app &; stalonetray &; sleep 1; dropbox &;"'
Save it too, then make it executable with sudo chmod +x /usr/local/bin/writemode-init
. Reboot, and now you should be able to select and use "Write Mode" (or whaever you call it) from your login screen. It is recommended to reboot beforehand and test the newly added writemode-init
command in a TTY to make sure it works as intended.
Good luck! :)