You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
There is no command to generate a default "$HOME/.config/monitors.xml". A script cannot be written that manages mate-display-properties (the Apply button is not pre-selected for example).
Solution: mate-display-properties --make-monitors.xml to generate a default "$HOME/.config/monitors.xml" file. The screen resolution can then be modified (regardless of the values) via Bash:
variable_name="width"; variable_value="1920"; sed -i "s/$variable_name.*$variable_name/$variable_name>$variable_value<\/$variable_name/g" "$HOME/.config/monitors.xml"
variable_name="height"; variable_value="1080"; sed -i "s/$variable_name.*$variable_name/$variable_name>$variable_value<\/$variable_name/g" "$HOME/.config/monitors.xml"
Notes
xrandr will temporarily change the screen resolution with: screen_resolution="1920x1080"; xrandr --output "$(xrandr --listactivemonitors | tail -1 | awk '{ print $NF }')" --mode "$screen_resolution" Also, it to ~/.bashrc to make it permanently will interfere with "$HOME/.config/monitors.xml" that is generated by mate-display-properties
Actual behaviour
"$HOME/.config/monitors.xml" is generated
Steps to reproduce the behaviour
Run mate-display-properties. Click on the Apply button
MATE general version
1.26.0
Package version
1.26.0
Linux Distribution
Ubuntu MATE 22.04
Link to bugreport of your Distribution (requirement)
Not applicable as this is a feature request.
The text was updated successfully, but these errors were encountered:
Expected behaviour
There is no command to generate a default "$HOME/.config/monitors.xml". A script cannot be written that manages mate-display-properties (the Apply button is not pre-selected for example).
Solution:
mate-display-properties --make-monitors.xml
to generate a default "$HOME/.config/monitors.xml" file. The screen resolution can then be modified (regardless of the values) via Bash:Notes
xrandr will temporarily change the screen resolution with:
screen_resolution="1920x1080"; xrandr --output "$(xrandr --listactivemonitors | tail -1 | awk '{ print $NF }')" --mode "$screen_resolution"
Also, it to ~/.bashrc to make it permanently will interfere with "$HOME/.config/monitors.xml" that is generated by mate-display-propertiesActual behaviour
"$HOME/.config/monitors.xml" is generated
Steps to reproduce the behaviour
MATE general version
1.26.0
Package version
1.26.0
Linux Distribution
Ubuntu MATE 22.04
Link to bugreport of your Distribution (requirement)
Not applicable as this is a feature request.
The text was updated successfully, but these errors were encountered: