The command line and INI options provide a way to control the initial window state (maximized, fullscreen etc.) and options to hide the status and menu bars. I find the menu bar very handy since provides a place to access less commonly needed actions that don't warrant space in the VCP, but its easy to enable/disable depending on preference.
F11 can always be used to toggle the full screen state of the VCP.
Code:
Monokrome Plasma - A QtPyVCP based Virtual Control Panel for LinuxCNC.
Usage:
monokrome-plasma --ini INI [options]
monokrome-plasma --install
monokrome-plasma (-h | --help)
monokrome-plasma (-v | --version)
monokrome-plasma (-i | --info)
Required Arguments:
--ini INI Path to INI file, relative to ~/linuxcnc/configs.
Commands:
--install Installs LinuxCNC configs, data files etc. in the correct
locations. This should always be run after updating.
Display Options:
--theme THEME The Qt theme to use, defaults to system theme.
--stylesheet STYLESHEET
Path to QSS file containing styles to be applied
to specific Qt and/or QtPyVCP widget classes.
--size WIDTHxHEIGHT Initial size of the window in pixels.
--position XPOSxYPOS
Initial position of the window, specified as the
coordinates of the top left corner of the window
relative to the top left corner of the screen.
--fullscreen BOOL Flag to start with window fullscreen.
--maximize BOOL Flag to start with window maximized.
--hide-menu-bar Hides the menu bar, if present.
--hide-status-bar Hides the status bar, if present.
--hide-cursor Hide the mouse cursor.
--confirm-exit BOOL Whether to show dialog to confirm exit.
Application Options:
--log-level=(DEBUG | INFO | WARN | ERROR | CRITICAL)
Sets the log level. Default INFO.
--config-file PATH Specify the YML config file relative to $CONFIG_DIR.
--log-file PATH Specify the log file relative to $CONFIG_DIR.
--qt-api (pyqt5 | pyqt | pyside2 | pyside)
Specify the Qt Python binding to use.
--perfmon Monitor and log system performance.
--develop Development mode. Enables live reloading of QSS styles.
--command_line_args <args>...
Additional args passed to the QtApplication.
General Options:
-h --help Show this help and exit.
-v --version Show version and exit.
-i --info Show system info and exit.
Note:
When specifying Monokrome Plasma in the INI using [DISPLAY]DISPLAY=monokrome-plasma [...]
the --ini parameter will be passed by the linuxcnc startup script so does
not need to be specified.
All the Display command line options can be set in the INI instead if desired.
Code:
[DISPLAY]
...
FULLSCREEN = true
HIDE_MENU_BAR = true
HIDE_CURSOR = true
CONFIRM_EXIT = false
...
We can change what the defaults are if you like, its very easy.
Cheers,
Kurt