Xfce Forum

Sub domains
 

You are not logged in.

#1 2013-11-06 19:00:40

xfce_dual
Member
Registered: 2013-11-06
Posts: 5

xfce and dual monitor clone view with margin settings

Hi

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).

Monitor Setup

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 smile)

J. Almer

Last edited by xfce_dual (2013-11-06 19:10:29)

Offline

#2 2013-11-07 10:57:13

xfce_dual
Member
Registered: 2013-11-06
Posts: 5

Re: xfce and dual monitor clone view with margin settings

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 .

Another question

- how can i load the changed configuration files into xfce without log out and log in?

Offline

#3 2013-11-07 11:18:28

xfce_dual
Member
Registered: 2013-11-06
Posts: 5

Re: xfce and dual monitor clone view with margin settings

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?

Offline

#4 2013-11-07 11:35:34

ToZ
Administrator
From: Canada
Registered: 2011-06-02
Posts: 10,932

Re: xfce and dual monitor clone view with margin settings

Try this:

xfconf-query -c xfwm4 -p /general/margin_right -s 576
xfconf-query -c xfwm4 -p /general/margin_top -s 132

To reset:

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)


Please remember to mark your thread [SOLVED] to make it easier for others to find
--- How To Ask For Help | FAQ | Developer Wiki  |  Community | Contribute ---

Offline

#5 2013-11-07 11:44:39

xfce_dual
Member
Registered: 2013-11-06
Posts: 5

Re: xfce and dual monitor clone view with margin settings

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)

Offline

#6 2013-11-10 18:40:13

xfce_dual
Member
Registered: 2013-11-06
Posts: 5

Re: xfce and dual monitor clone view with margin settings

I've found an older post in  ubuntuforums.org, which says, that margins.c says:

wmax = gdk_screen_width () / 4;
hmax = gdk_screen_height () / 4;

Do i have to compile the whole xfce4-Desktop to change this restriction?

Offline

Board footer

Powered by FluxBB