Enable display configuration. The config file (miral::MirRunner::display_config_file()) is located via the XDG Base Directory Specification. Vis: ($XDG_CONFIG_HOME or $HOME/.config followed by $XDG_CONFIG_DIRS)
More...
#include <display_configuration.h>
Enable display configuration. The config file (miral::MirRunner::display_config_file()) is located via the XDG Base Directory Specification. Vis: ($XDG_CONFIG_HOME or $HOME/.config followed by $XDG_CONFIG_DIRS)
- Note
- From MirAL 3.8 will monitor the configuration file or, if none found, for the creation of a file in $XDG_CONFIG_HOME or $HOME/.config. Changes to this file will be reloaded. In addition, the selected layout may be overridden using a corresponding file: display_config_file() + "-layout" which will also be monitored and changes reloaded
◆ DisplayConfiguration() [1/2]
miral::DisplayConfiguration::DisplayConfiguration |
( |
MirRunner const & |
mir_runner | ) |
|
|
explicit |
◆ ~DisplayConfiguration()
miral::DisplayConfiguration::~DisplayConfiguration |
( |
| ) |
|
◆ DisplayConfiguration() [2/2]
◆ add_output_attribute()
void miral::DisplayConfiguration::add_output_attribute |
( |
std::string const & |
key | ) |
|
Enable a custom output attribute in the .display YAML.
◆ layout_option()
Provide the default 'display-layout' configuration option.
◆ list_layouts()
auto miral::DisplayConfiguration::list_layouts |
( |
| ) |
-> std::vector< std::string > |
List all layouts found in the config file.
◆ operator()()
void miral::DisplayConfiguration::operator() |
( |
mir::Server & |
server | ) |
const |
◆ operator=()
◆ select_layout()
void miral::DisplayConfiguration::select_layout |
( |
std::string const & |
layout | ) |
|
Select a layout from the configuration.
The documentation for this class was generated from the following file:
Copyright © 2012-2023
Canonical Ltd.
Generated on Tue 2 May 10:01:24 UTC 2023
This documentation is licensed under the GPL version 2 or 3.