dannyedel / dspdfviewer

Dual-Screen PDF Viewer for latex-beamer
http://dspdfviewer.danny-edel.de
GNU General Public License v2.0
218 stars 27 forks source link

Improve i3 support, and generalize desktop support in the process #161

Open dannyedel opened 8 years ago

dannyedel commented 8 years ago

Motivation: I use it myself

What should it do

This can be generalized to "Desktop environment support modules", and move the Window-Movement code away from the PDFViewerWindow class.

DE Support Modules should support the following functions:

Make sure the interface is clean, that is near-impossible to use incorrectly. (No raw pointers etc.)

clawoflight commented 6 years ago

May I question why this is here? It probably makes sense for other DEs, but for i3 specifically, this is trivial to do:

I simply assign workspace 10 to always be on the output I use for presentations, and assign the dspdfviewer window to always be on that workspace. Job done, literally 2 lines, one of which I had already before using dspdfviewer. Has the nice advantage that it doesn't break if I open dspdfviewer before connecting to the projector :)

workspace $ws10 output DP2 # VGA output
assign [title="DS PDF Viewer - Audience Window"] $ws10