i have a laptop with a resolution of 1600x900 and for teaching i often use a beamer with the normal 1024x768.
Now i want to use the Monitor and the beamer with a cloned screen. But when i maximise, the programs should maximise for the presentation screen shown by the beamer. The rest of the screen will be used for additional programs, like thunar, shell, notes, ... not shown to the audience.
For the screen setup i use arandr and this works perfectly and also provides a script to change common settings, like beamer and laptop or just laptop, easily and fast from the shell (xrandr commands can be saved and after that executed).
To maximise programs just to the size of the beamer, that is shown to the audience, i use the margins option from workspaces within the normal settings dialog of xfce4.10 (ubuntu 13.10 normal installation). So i can quickly show any programm and use the full space of the small beamer screens.
Now i have 3 problems.
- maximise according to the beamer resolution 1024x768 works not fully, because there is a maximum margin of 400px on the right, but i would need 576px. Where can i change that?
- is it possible to do this by a shell script, so i can change to normal behaviour without margins or back to audience with beamer and margins easily and fast (add this to my shell script with xrandr command from arandr)
- can the composite manager of xfce4.10 zoom in to a area of the screen to emphasize some content?
thanks for this incredible fast and functional display manager, it is so much fun to work with (debian users will know soon )
Last edited by xfce_dual (2013-11-06 19:10:29)
I came nearer to a solution.
The configuration file is in the home directory .config/xfce4/xfconf/xfce-perchannel-xml/xfwm4.xml
If i change there eg <property name="margin_right" type="int" value="0"/> to <property name="margin_right" type="int" value="576"/> and restart xfce by log out and log in at least the 400px margin on the right is there (more px still required).
Now i think i can change this dynamically with sed .
- how can i load the changed configuration files into xfce without log out and log in?
I managed to change the margins dynamically with
sed --in-place /margin_right/s/0/576/ /home/jalmer/.config/xfce4/xfconf/xfce-perchannel-xml/xfwm4.xml
sed --in-place /margin_top/s/0/132/ /home/jalmer/.config/xfce4/xfconf/xfce-perchannel-xml/xfwm4.xml
how can i load this new configuration without log out & log in?
xfconf-query -c xfwm4 -p /general/margin_right -s 576 xfconf-query -c xfwm4 -p /general/margin_top -s 132
xfconf-query -c xfwm4 -p /general/margin_right -s 0 xfconf-query -c xfwm4 -p /general/margin_top -s 0
Last edited by ToZ (2013-11-07 11:36:30)
thanks, works perfectly.
But still the settings manager shows under workspaces margin a right margin of 400px. And that's also the true value for the margin.
At home i have an external Monitor with 1920x1080 and there the maximum margin on the right is 480px.
Looks like more than one fourth is not possible.
Can this be changed in some configuration files?
Last edited by xfce_dual (2013-11-07 14:39:59)