from BRAVE AI - some of these may work depending on if you are running a desktop. I assume you are multi-monitor and need this for your DMD screen.
Launch App Fullscreen Linux
There are several methods to launch an application in fullscreen mode on Linux, depending on the application and desktop environment.
For applications that support a command-line flag for fullscreen mode, you can modify the application's desktop file to include the flag. For example, Evince supports the --fullscreen option. To make it launch in fullscreen by default, create a local copy of its desktop file in ~/.local/share/applications/, edit the Exec= line to include --fullscreen %U, and then run update-desktop-database ~/.local/share/applications to apply the changes.
This method works for applications like Evince, but not all applications support such flags.
For applications that do not have a built-in fullscreen option, you can use command-line tools like wmctrl or xdotool to force a window into fullscreen mode after it launches. A common approach is to start the application and then use a command like sleep 1 && wmctrl -r :ACTIVE: -b add,fullscreen to wait a moment and then add the fullscreen property to the active window.
This method can be less smooth for some applications and may require adjusting the sleep time.
Some desktop environments offer built-in features. For instance, in XFCE, if you launch an application, press the default fullscreen shortcut (Alt+F11), and then close the application, the system may remember the fullscreen state and launch the application in fullscreen again on subsequent runs.
You can also use tools like Devilspie or devilspie2 to automatically set specific windows to fullscreen based on their properties.
For terminal-based applications, you can launch them within a full-screen terminal emulator. For example, using gnome-terminal --full-screen --zoom 0.8 -- lazygit will run the lazygit application in a full-screen terminal window.
This approach is useful for applications that are primarily command-line based but benefit from more screen space.
Finally, for a more system-wide or automated approach, you can configure window managers like Openbox to automatically launch specific applications in fullscreen mode by editing the ~/.config/openbox/lubuntu-rc.xml file and adding a rule for the application's window class or name.
This requires identifying the correct window class using the obxprop command.