davvil / pdfpc

A presenter console with multi-monitor support for PDF files.
http://davvil.github.com/pdfpc/
GNU General Public License v2.0
210 stars 20 forks source link

set window roles #46

Closed tg-x closed 11 years ago

tg-x commented 11 years ago

set window roles so that wms supporting it can match on it and apply the desired configuration

davvil commented 11 years ago

Merging, but I would be interested to know in which cases you want to use it. It seems to me that if you need this, there is some problems with the window placement logic.

tg-x commented 11 years ago

I'm using herbstluftwm, which already manages windows the way I want it, thus there's no need to rely on the window placement of pdfpc, but windows need to be distinguishable in order to be able to configure them.

herbstluftwm uses multiple tags (workspaces), physical monitors merely display one of the tags. For this reason I assigned a separate tag for the two windows, which can then be displayed on the appropriate monitor:

hc rule class='Pdfpc' windowrole='presenter' tag=6
hc rule class='Pdfpc' windowrole='presentation' tag=7