I like the way Foxit Reader can change the color of both pdf text background and font; I have books in pdf format that I need to read on the laptop and I want to control the colors of text area. (I have other options to achieve the same purpose - more here) but I would prefer to use Foxit Reader instead of Adobe Reader (not supported anymore, albeit installable on my system) and Master PDF Editor (more of an editor than a reader).
Foxit Reader doesn't follow system theming on Linux for the moment, but that wouldn't be such a big problem for me if it had a full-screen option. But it lacks that too. There is no such option within the program and its window doesn't enter full-screen mode with F11 as other program's windows do.
I am especially interested in Xfwm4 in Xfce, but I would like to know if other window managers can force full-screen on an application that doesn't cover that aspect itself.
How come the window manager cannot force full-screen on any window? Can that limitation be overcome? Is there a difference between window managers when it comes to that?
If the application itself does not have "native" full screen state, the most you can do is maximize and undecorate, which will maximize and remove any window title and window border (the latter usually is already removed in maximized state).
User control on the size of how programs are launched in Linux unfortunately is limited in most common stacking window managers. In many cases, an application itself determines the size of its windows. If you are lucky, the application provides a command line option to start maximized or full screen.
A way to control how windows are resized, is to use an old utility
devilspie
or its equally capable successordevilspie2
. Both are available in the standard Ubuntu PPA's. These utilities run as a daemon. On startup, they read configuration files in which the user defines actions that should be performed on newly created windows that meet specific criteria. As such, it can be defined that a "Foxit Reader" that has been created should be maximized.Once properly set up, you essentially forget that
devilspie
(ordevilspie2
) is running. However, setting up takes editing configuration files to create rules in a specific syntax. You then need to make the rules sufficiently fine such that for example dialogs of the application also are not being maximized. Moreover, documentation of both tools is sparse. Finally, these tools will run only on Xorg, and not on the Wayland display server. At this stage, Ubuntu still defaults to using Xorg.Information on each of the tools can be found on the following websites:
Both utilities work equally well. They have a different syntax - Devilspie2 uses Lua. Which you want to use is a matter of preference.